{"type": "func", "start": 8187184, "end": 8187456, "name": "BIO_get_host_ip", "pseudocode": "// \n// BIO_get_host_ip from 0x7ced30 to 0x7cee40 (272 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5f5fc\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_get_host_ip(const char *a1, void *a2)\n{\n  int v4; // r5\n  int v6; // r0\n  const char *v7; // r0\n  const char *v8; // r0\n  struct addrinfo *v9; // [sp+8h] [bp-8h] BYREF\n  size_t v10; // [sp+Ch] [bp-4h] BYREF\n\n  v9 = nullptr;\n  if ( BIO_sock_init() != 1 )\n    return 0;\n  v6 = BIO_lookup(a1, nullptr, 0, 2u, 1, &v9);\n  v4 = v6;\n  if ( v6 )\n  {\n    if ( BIO_ADDRINFO_family((int)v9) == 2 )\n    {\n      v7 = (const char *)BIO_ADDRINFO_address((int)v9);\n      BIO_ADDR_rawaddress(v7, nullptr, &v10);\n      if ( v10 != 4 )\n        OPENSSL_die(\"assertion failed: l == 4\", \"crypto/bio/b_sock.c\", 50);\n      v8 = (const char *)BIO_ADDRINFO_address((int)v9);\n      BIO_ADDR_rawaddress(v8, a2, &v10);\n      v4 = 1;\n    }\n    else\n    {\n      v4 = 0;\n      ERR_put_error(32, 106, 107, \"crypto/bio/b_sock.c\", 45);\n    }\n    BIO_ADDRINFO_free(v9);\n  }\n  else\n  {\n    ERR_add_error_data(2, \"host=\", a1);\n  }\n  return v4;\n}", "assembly": "; \n; BIO_get_host_ip from 0x7ced30 to 0x7cee40 (272 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5f5fc\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\nPUSH            {R4-R8,LR}                                             ; +0x0, 0x7ced30\nMOV             R4, #0                                                 ; +0x4, 0x7ced34\nSUB             SP, SP, #0x10                                          ; +0x8, 0x7ced38\nMOV             R7, R0                                                 ; +0xc, 0x7ced3c\nMOV             R8, R1                                                 ; +0x10, 0x7ced40\nSTR             R4, [SP,#0x10+var_8]                                   ; +0x14, 0x7ced44\nBL              BIO_sock_init                                          ; +0x18, 0x7ced48\nCMP             R0, #1                                                 ; +0x1c, 0x7ced4c\nMOV             R6, R0                                                 ; +0x20, 0x7ced50\nMOVNE           R5, R4                                                 ; +0x24, 0x7ced54\nBEQ             loc_7CED68                                             ; +0x28, 0x7ced58\nMOV             R0, R5                                                 ; +0x2c, 0x7ced5c\nADD             SP, SP, #0x10                                          ; +0x30, 0x7ced60\nPOP             {R4-R8,PC}                                             ; +0x34, 0x7ced64\nADD             R3, SP, #0x10+var_8                                    ; +0x38, 0x7ced68\nSTR             R0, [SP,#0x10+var_10]; int                             ; +0x3c, 0x7ced6c\nSTR             R3, [SP,#0x10+var_C]; struct addrinfo **               ; +0x40, 0x7ced70\nMOV             R0, R7; int                                            ; +0x44, 0x7ced74\nMOV             R1, R4; int                                            ; +0x48, 0x7ced78\nMOV             R2, R4; int                                            ; +0x4c, 0x7ced7c\nMOV             R3, #2; int                                            ; +0x50, 0x7ced80\nBL              BIO_lookup                                             ; +0x54, 0x7ced84\nSUBS            R5, R0, #0                                             ; +0x58, 0x7ced88\nBEQ             loc_7CEDD0                                             ; +0x5c, 0x7ced8c\nLDR             R0, [SP,#0x10+var_8]                                   ; +0x60, 0x7ced90\nBL              BIO_ADDRINFO_family                                    ; +0x64, 0x7ced94\nCMP             R0, #2                                                 ; +0x68, 0x7ced98\nBEQ             loc_7CEDE8                                             ; +0x6c, 0x7ced9c\nMOV             R3, #0x2D ; '-'                                        ; +0x70, 0x7ceda0\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x74, 0x7ceda4\nLDR             R3, =(aCryptoBioBSock - 0x7CEDC0); \"crypto/bio/b_sock.c\" ; +0x78, 0x7ceda8\nMOV             R0, #0x20 ; ' '                                        ; +0x7c, 0x7cedac\nMOV             R1, #0x6A ; 'j'                                        ; +0x80, 0x7cedb0\nMOV             R2, #0x6B ; 'k'                                        ; +0x84, 0x7cedb4\nADD             R3, PC, R3; \"crypto/bio/b_sock.c\"                      ; +0x88, 0x7cedb8\nMOV             R5, R4                                                 ; +0x8c, 0x7cedbc\nBL              ERR_put_error                                          ; +0x90, 0x7cedc0\nLDR             R0, [SP,#0x10+var_8]                                   ; +0x94, 0x7cedc4\nBL              BIO_ADDRINFO_free                                      ; +0x98, 0x7cedc8\nB               loc_7CED5C                                             ; +0x9c, 0x7cedcc\nLDR             R1, =(aHost_2 - 0x7CEDE4); \"host=\"                     ; +0xa0, 0x7cedd0\nMOV             R2, R7                                                 ; +0xa4, 0x7cedd4\nMOV             R0, #2                                                 ; +0xa8, 0x7cedd8\nADD             R1, PC, R1; \"host=\"                                    ; +0xac, 0x7ceddc\nBL              ERR_add_error_data                                     ; +0xb0, 0x7cede0\nB               loc_7CED5C                                             ; +0xb4, 0x7cede4\nLDR             R0, [SP,#0x10+var_8]                                   ; +0xb8, 0x7cede8\nADD             R5, SP, #0x10+var_4                                    ; +0xbc, 0x7cedec\nBL              BIO_ADDRINFO_address                                   ; +0xc0, 0x7cedf0\nMOV             R1, R4; void *                                         ; +0xc4, 0x7cedf4\nMOV             R2, R5                                                 ; +0xc8, 0x7cedf8\nBL              BIO_ADDR_rawaddress                                    ; +0xcc, 0x7cedfc\nLDR             R3, [SP,#0x10+var_4]                                   ; +0xd0, 0x7cee00\nCMP             R3, #4                                                 ; +0xd4, 0x7cee04\nBNE             loc_7CEE28                                             ; +0xd8, 0x7cee08\nLDR             R0, [SP,#0x10+var_8]                                   ; +0xdc, 0x7cee0c\nBL              BIO_ADDRINFO_address                                   ; +0xe0, 0x7cee10\nMOV             R2, R5                                                 ; +0xe4, 0x7cee14\nMOV             R1, R8; void *                                         ; +0xe8, 0x7cee18\nBL              BIO_ADDR_rawaddress                                    ; +0xec, 0x7cee1c\nMOV             R5, R6                                                 ; +0xf0, 0x7cee20\nB               loc_7CEDC4                                             ; +0xf4, 0x7cee24\nLDR             R0, =(aAssertionFaile_32 - 0x7CEE38); \"assertion failed: l == 4\" ; +0xf8, 0x7cee28\nLDR             R1, =(aCryptoBioBSock - 0x7CEE3C); \"crypto/bio/b_sock.c\" ; +0xfc, 0x7cee2c\nADD             R0, PC, R0; \"assertion failed: l == 4\"                 ; +0x100, 0x7cee30\nADD             R1, PC, R1; \"crypto/bio/b_sock.c\"                      ; +0x104, 0x7cee34\nMOV             R2, #0x32 ; '2'                                        ; +0x108, 0x7cee38\nBL              OPENSSL_die                                            ; +0x10c, 0x7cee3c", "xrefs": ["<???> @ 0x5f5fc"], "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"}