{"type": "func", "start": 10370824, "end": 10371056, "name": "BIO_sock_info", "pseudocode": "// \n// BIO_sock_info from 0x9e3f08 to 0x9e3ff0 (232 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7914c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:22 +0000\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 0x9e3f08 to 0x9e3ff0 (232 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7914c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:22 +0000\n; \nCMP             R1, #0                                                 ; +0x0, 0x9e3f08\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x9e3f0c\nSUB             SP, SP, #0x14                                          ; +0x8, 0x9e3f10\nBNE             loc_9E3F7C                                             ; +0xc, 0x9e3f14\nMOV             R3, #0x70 ; 'p'                                        ; +0x10, 0x9e3f18\nMOV             R5, R0                                                 ; +0x14, 0x9e3f1c\nADD             R4, SP, #0x14+var_4                                    ; +0x18, 0x9e3f20\nLDR             R0, [R2]                                               ; +0x1c, 0x9e3f24\nSTR             R3, [R4,#-4]!                                          ; +0x20, 0x9e3f28\nBL              BIO_ADDR_sockaddr_noconst                              ; +0x24, 0x9e3f2c\nMOV             R2, R4; socklen_t *                                    ; +0x28, 0x9e3f30\nMOV             R1, R0; struct sockaddr *                              ; +0x2c, 0x9e3f34\nMOV             R0, R5; int                                            ; +0x30, 0x9e3f38\nBL              getsockname                                            ; +0x34, 0x9e3f3c\nCMN             R0, #1                                                 ; +0x38, 0x9e3f40\nBEQ             loc_9E3FA8                                             ; +0x3c, 0x9e3f44\nLDR             R3, [SP,#0x14+var_8]                                   ; +0x40, 0x9e3f48\nCMP             R3, #0x70 ; 'p'                                        ; +0x44, 0x9e3f4c\nMOVLS           R0, #1                                                 ; +0x48, 0x9e3f50\nBLS             loc_9E3FA0                                             ; +0x4c, 0x9e3f54\nLDR             R3, =0x171                                             ; +0x50, 0x9e3f58\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x54, 0x9e3f5c\nLDR             R3, =(aCryptoBioBSock - 0x9E3F78); \"crypto/bio/b_sock.c\" ; +0x58, 0x9e3f60\nMOV             R0, #0x20 ; ' '                                        ; +0x5c, 0x9e3f64\nMOV             R1, #0x8D                                              ; +0x60, 0x9e3f68\nMOV             R2, #0x85                                              ; +0x64, 0x9e3f6c\nADD             R3, PC, R3; \"crypto/bio/b_sock.c\"                      ; +0x68, 0x9e3f70\nBL              ERR_put_error                                          ; +0x6c, 0x9e3f74\nB               loc_9E3F9C                                             ; +0x70, 0x9e3f78\nLDR             R3, =0x177                                             ; +0x74, 0x9e3f7c\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x78, 0x9e3f80\nLDR             R3, =(aCryptoBioBSock - 0x9E3F9C); \"crypto/bio/b_sock.c\" ; +0x7c, 0x9e3f84\nMOV             R0, #0x20 ; ' '                                        ; +0x80, 0x9e3f88\nMOV             R1, #0x8D                                              ; +0x84, 0x9e3f8c\nMOV             R2, #0x8C                                              ; +0x88, 0x9e3f90\nADD             R3, PC, R3; \"crypto/bio/b_sock.c\"                      ; +0x8c, 0x9e3f94\nBL              ERR_put_error                                          ; +0x90, 0x9e3f98\nMOV             R0, #0                                                 ; +0x94, 0x9e3f9c\nADD             SP, SP, #0x14                                          ; +0x98, 0x9e3fa0\nPOP             {R4,R5,PC}                                             ; +0x9c, 0x9e3fa4\nBL              __errno                                                ; +0xa0, 0x9e3fa8\nLDR             R4, =(aCryptoBioBSock - 0x9E3FBC); \"crypto/bio/b_sock.c\" ; +0xa4, 0x9e3fac\nMOV             R1, #0x16C                                             ; +0xa8, 0x9e3fb0\nADD             R4, PC, R4; \"crypto/bio/b_sock.c\"                      ; +0xac, 0x9e3fb4\nMOV             R3, R4                                                 ; +0xb0, 0x9e3fb8\nLDR             R2, [R0]                                               ; +0xb4, 0x9e3fbc\nSTR             R1, [SP,#0x14+var_14]                                  ; +0xb8, 0x9e3fc0\nMOV             R0, #2                                                 ; +0xbc, 0x9e3fc4\nMOV             R1, #0x10                                              ; +0xc0, 0x9e3fc8\nBL              ERR_put_error                                          ; +0xc4, 0x9e3fcc\nLDR             R2, =0x16D                                             ; +0xc8, 0x9e3fd0\nSTR             R2, [SP,#0x14+var_14]                                  ; +0xcc, 0x9e3fd4\nMOV             R3, R4                                                 ; +0xd0, 0x9e3fd8\nMOV             R0, #0x20 ; ' '                                        ; +0xd4, 0x9e3fdc\nMOV             R1, #0x8D                                              ; +0xd8, 0x9e3fe0\nMOV             R2, #0x84                                              ; +0xdc, 0x9e3fe4\nBL              ERR_put_error                                          ; +0xe0, 0x9e3fe8\nB               loc_9E3F9C                                             ; +0xe4, 0x9e3fec", "xrefs": ["<???> @ 0x7914c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}