{"type": "func", "start": 10369328, "end": 10369600, "name": "BIO_get_host_ip", "pseudocode": "// \n// BIO_get_host_ip from 0x9e3930 to 0x9e3a40 (272 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7907c\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_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 0x9e3930 to 0x9e3a40 (272 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7907c\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; \nPUSH            {R4-R8,LR}                                             ; +0x0, 0x9e3930\nMOV             R4, #0                                                 ; +0x4, 0x9e3934\nSUB             SP, SP, #0x10                                          ; +0x8, 0x9e3938\nMOV             R7, R0                                                 ; +0xc, 0x9e393c\nMOV             R8, R1                                                 ; +0x10, 0x9e3940\nSTR             R4, [SP,#0x10+var_8]                                   ; +0x14, 0x9e3944\nBL              BIO_sock_init                                          ; +0x18, 0x9e3948\nCMP             R0, #1                                                 ; +0x1c, 0x9e394c\nMOV             R6, R0                                                 ; +0x20, 0x9e3950\nMOVNE           R5, R4                                                 ; +0x24, 0x9e3954\nBEQ             loc_9E3968                                             ; +0x28, 0x9e3958\nMOV             R0, R5                                                 ; +0x2c, 0x9e395c\nADD             SP, SP, #0x10                                          ; +0x30, 0x9e3960\nPOP             {R4-R8,PC}                                             ; +0x34, 0x9e3964\nADD             R3, SP, #0x10+var_8                                    ; +0x38, 0x9e3968\nSTR             R0, [SP,#0x10+var_10]; int                             ; +0x3c, 0x9e396c\nSTR             R3, [SP,#0x10+var_C]; struct addrinfo **               ; +0x40, 0x9e3970\nMOV             R0, R7; int                                            ; +0x44, 0x9e3974\nMOV             R1, R4; int                                            ; +0x48, 0x9e3978\nMOV             R2, R4; int                                            ; +0x4c, 0x9e397c\nMOV             R3, #2; int                                            ; +0x50, 0x9e3980\nBL              BIO_lookup                                             ; +0x54, 0x9e3984\nSUBS            R5, R0, #0                                             ; +0x58, 0x9e3988\nBEQ             loc_9E39D0                                             ; +0x5c, 0x9e398c\nLDR             R0, [SP,#0x10+var_8]                                   ; +0x60, 0x9e3990\nBL              BIO_ADDRINFO_family                                    ; +0x64, 0x9e3994\nCMP             R0, #2                                                 ; +0x68, 0x9e3998\nBEQ             loc_9E39E8                                             ; +0x6c, 0x9e399c\nMOV             R3, #0x2D ; '-'                                        ; +0x70, 0x9e39a0\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x74, 0x9e39a4\nLDR             R3, =(aCryptoBioBSock - 0x9E39C0); \"crypto/bio/b_sock.c\" ; +0x78, 0x9e39a8\nMOV             R0, #0x20 ; ' '                                        ; +0x7c, 0x9e39ac\nMOV             R1, #0x6A ; 'j'                                        ; +0x80, 0x9e39b0\nMOV             R2, #0x6B ; 'k'                                        ; +0x84, 0x9e39b4\nADD             R3, PC, R3; \"crypto/bio/b_sock.c\"                      ; +0x88, 0x9e39b8\nMOV             R5, R4                                                 ; +0x8c, 0x9e39bc\nBL              ERR_put_error                                          ; +0x90, 0x9e39c0\nLDR             R0, [SP,#0x10+var_8]                                   ; +0x94, 0x9e39c4\nBL              BIO_ADDRINFO_free                                      ; +0x98, 0x9e39c8\nB               loc_9E395C                                             ; +0x9c, 0x9e39cc\nLDR             R1, =(aHost_2 - 0x9E39E4); \"host=\"                     ; +0xa0, 0x9e39d0\nMOV             R2, R7                                                 ; +0xa4, 0x9e39d4\nMOV             R0, #2                                                 ; +0xa8, 0x9e39d8\nADD             R1, PC, R1; \"host=\"                                    ; +0xac, 0x9e39dc\nBL              ERR_add_error_data                                     ; +0xb0, 0x9e39e0\nB               loc_9E395C                                             ; +0xb4, 0x9e39e4\nLDR             R0, [SP,#0x10+var_8]                                   ; +0xb8, 0x9e39e8\nADD             R5, SP, #0x10+var_4                                    ; +0xbc, 0x9e39ec\nBL              BIO_ADDRINFO_address                                   ; +0xc0, 0x9e39f0\nMOV             R1, R4; void *                                         ; +0xc4, 0x9e39f4\nMOV             R2, R5                                                 ; +0xc8, 0x9e39f8\nBL              BIO_ADDR_rawaddress                                    ; +0xcc, 0x9e39fc\nLDR             R3, [SP,#0x10+var_4]                                   ; +0xd0, 0x9e3a00\nCMP             R3, #4                                                 ; +0xd4, 0x9e3a04\nBNE             loc_9E3A28                                             ; +0xd8, 0x9e3a08\nLDR             R0, [SP,#0x10+var_8]                                   ; +0xdc, 0x9e3a0c\nBL              BIO_ADDRINFO_address                                   ; +0xe0, 0x9e3a10\nMOV             R2, R5                                                 ; +0xe4, 0x9e3a14\nMOV             R1, R8; void *                                         ; +0xe8, 0x9e3a18\nBL              BIO_ADDR_rawaddress                                    ; +0xec, 0x9e3a1c\nMOV             R5, R6                                                 ; +0xf0, 0x9e3a20\nB               loc_9E39C4                                             ; +0xf4, 0x9e3a24\nLDR             R0, =(aAssertionFaile_32 - 0x9E3A38); \"assertion failed: l == 4\" ; +0xf8, 0x9e3a28\nLDR             R1, =(aCryptoBioBSock - 0x9E3A3C); \"crypto/bio/b_sock.c\" ; +0xfc, 0x9e3a2c\nADD             R0, PC, R0; \"assertion failed: l == 4\"                 ; +0x100, 0x9e3a30\nADD             R1, PC, R1; \"crypto/bio/b_sock.c\"                      ; +0x104, 0x9e3a34\nMOV             R2, #0x32 ; '2'                                        ; +0x108, 0x9e3a38\nBL              OPENSSL_die                                            ; +0x10c, 0x9e3a3c", "xrefs": ["<???> @ 0x7907c"], "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"}