{"type": "func", "start": 8188680, "end": 8188912, "name": "BIO_sock_info", "pseudocode": "// \n// BIO_sock_info from 0x7cf308 to 0x7cf3f0 (232 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5f6cc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall BIO_sock_info(int a1, int a2)\n{\n  struct sockaddr *v3; // r0\n  _DWORD *v5; // r0\n  unsigned int v6; // [sp+Ch] [bp-8h] BYREF\n\n  if ( a2 )\n  {\n    ERR_put_error(32, 141, 140, \"crypto/bio/b_sock.c\", 375);\n  }\n  else\n  {\n    v6 = 112;\n    BIO_ADDR_sockaddr_noconst();\n    if ( getsockname(a1, v3, (socklen_t *)&v6) == -1 )\n    {\n      v5 = (_DWORD *)_errno();\n      ERR_put_error(2, 16, *v5, \"crypto/bio/b_sock.c\", 364);\n      ERR_put_error(32, 141, 132, \"crypto/bio/b_sock.c\", 365);\n    }\n    else\n    {\n      if ( v6 <= 0x70 )\n        return 1;\n      ERR_put_error(32, 141, 133, \"crypto/bio/b_sock.c\", 369);\n    }\n  }\n  return 0;\n}", "assembly": "; \n; BIO_sock_info from 0x7cf308 to 0x7cf3f0 (232 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5f6cc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nCMP             R1, #0                                                 ; +0x0, 0x7cf308\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x7cf30c\nSUB             SP, SP, #0x14                                          ; +0x8, 0x7cf310\nBNE             loc_7CF37C                                             ; +0xc, 0x7cf314\nMOV             R3, #0x70 ; 'p'                                        ; +0x10, 0x7cf318\nMOV             R5, R0                                                 ; +0x14, 0x7cf31c\nADD             R4, SP, #0x14+var_4                                    ; +0x18, 0x7cf320\nLDR             R0, [R2]                                               ; +0x1c, 0x7cf324\nSTR             R3, [R4,#-4]!                                          ; +0x20, 0x7cf328\nBL              BIO_ADDR_sockaddr_noconst                              ; +0x24, 0x7cf32c\nMOV             R2, R4; socklen_t *                                    ; +0x28, 0x7cf330\nMOV             R1, R0; struct sockaddr *                              ; +0x2c, 0x7cf334\nMOV             R0, R5; int                                            ; +0x30, 0x7cf338\nBL              getsockname                                            ; +0x34, 0x7cf33c\nCMN             R0, #1                                                 ; +0x38, 0x7cf340\nBEQ             loc_7CF3A8                                             ; +0x3c, 0x7cf344\nLDR             R3, [SP,#0x14+var_8]                                   ; +0x40, 0x7cf348\nCMP             R3, #0x70 ; 'p'                                        ; +0x44, 0x7cf34c\nMOVLS           R0, #1                                                 ; +0x48, 0x7cf350\nBLS             loc_7CF3A0                                             ; +0x4c, 0x7cf354\nLDR             R3, =0x171                                             ; +0x50, 0x7cf358\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x54, 0x7cf35c\nLDR             R3, =(aCryptoBioBSock - 0x7CF378); \"crypto/bio/b_sock.c\" ; +0x58, 0x7cf360\nMOV             R0, #0x20 ; ' '                                        ; +0x5c, 0x7cf364\nMOV             R1, #0x8D                                              ; +0x60, 0x7cf368\nMOV             R2, #0x85                                              ; +0x64, 0x7cf36c\nADD             R3, PC, R3; \"crypto/bio/b_sock.c\"                      ; +0x68, 0x7cf370\nBL              ERR_put_error                                          ; +0x6c, 0x7cf374\nB               loc_7CF39C                                             ; +0x70, 0x7cf378\nLDR             R3, =0x177                                             ; +0x74, 0x7cf37c\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x78, 0x7cf380\nLDR             R3, =(aCryptoBioBSock - 0x7CF39C); \"crypto/bio/b_sock.c\" ; +0x7c, 0x7cf384\nMOV             R0, #0x20 ; ' '                                        ; +0x80, 0x7cf388\nMOV             R1, #0x8D                                              ; +0x84, 0x7cf38c\nMOV             R2, #0x8C                                              ; +0x88, 0x7cf390\nADD             R3, PC, R3; \"crypto/bio/b_sock.c\"                      ; +0x8c, 0x7cf394\nBL              ERR_put_error                                          ; +0x90, 0x7cf398\nMOV             R0, #0                                                 ; +0x94, 0x7cf39c\nADD             SP, SP, #0x14                                          ; +0x98, 0x7cf3a0\nPOP             {R4,R5,PC}                                             ; +0x9c, 0x7cf3a4\nBL              __errno                                                ; +0xa0, 0x7cf3a8\nLDR             R4, =(aCryptoBioBSock - 0x7CF3BC); \"crypto/bio/b_sock.c\" ; +0xa4, 0x7cf3ac\nMOV             R1, #0x16C                                             ; +0xa8, 0x7cf3b0\nADD             R4, PC, R4; \"crypto/bio/b_sock.c\"                      ; +0xac, 0x7cf3b4\nMOV             R3, R4                                                 ; +0xb0, 0x7cf3b8\nLDR             R2, [R0]                                               ; +0xb4, 0x7cf3bc\nSTR             R1, [SP,#0x14+var_14]                                  ; +0xb8, 0x7cf3c0\nMOV             R0, #2                                                 ; +0xbc, 0x7cf3c4\nMOV             R1, #0x10                                              ; +0xc0, 0x7cf3c8\nBL              ERR_put_error                                          ; +0xc4, 0x7cf3cc\nLDR             R2, =0x16D                                             ; +0xc8, 0x7cf3d0\nSTR             R2, [SP,#0x14+var_14]                                  ; +0xcc, 0x7cf3d4\nMOV             R3, R4                                                 ; +0xd0, 0x7cf3d8\nMOV             R0, #0x20 ; ' '                                        ; +0xd4, 0x7cf3dc\nMOV             R1, #0x8D                                              ; +0xd8, 0x7cf3e0\nMOV             R2, #0x84                                              ; +0xdc, 0x7cf3e4\nBL              ERR_put_error                                          ; +0xe0, 0x7cf3e8\nB               loc_7CF39C                                             ; +0xe4, 0x7cf3ec", "xrefs": ["<???> @ 0x5f6cc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}