Function at 0x42bec0
Capabilities:
Resolve dns

Disassembly:
push ebp
xor edx, edx
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x2c], 0
mov esi, dword [esp + 0x70]
lea ebx, [esp + 0x30]
mov dword [ebx + eax], edx
mov dword [ebx + eax + 4], edx
add eax, 8
cmp eax, 0x20
jb 0x42bedb
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x42bf98
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0x17
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
sub esp, 0x10
test eax, eax
jne 0x42c0e0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x42c0e0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x42c0e0
mov eax, ebx
jmp 0x42bf53
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x42c0d0
cmp dword [eax + 4], 0x17
jne 0x42bf48
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
mov eax, dword [esp + 0x78]
mov dword [eax], 0x1c
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esp + 0x2c]
mov dword [esp + 0x34], 2
mov edi, dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 0x10
test eax, eax
jne 0x42c030
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x42c030
mov eax, dword [edx + 0x18]
test eax, eax
je 0x42c030
mov eax, edx
jmp 0x42bfeb
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x42c140
cmp dword [eax + 4], 2
jne 0x42bfe0
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x1c]
mov dword [eax], 0x10
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
jmp 0x42bf89
mov dword [esp + 0x34], 0x17
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 0x10
test eax, eax
jne 0x42c070
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x42c070
mov edx, dword [ebx + 0x18]
test edx, edx
jne 0x42bf3d
lea esi, [esi]
nop
mov eax, dword [esp + 0x74]
mov dword [esp + 4], esi
mov edi, 2
mov dword [esp], 2
lea ebx, [eax + 4]
mov dword [esp + 8], ebx
call sym._inet_pton
mov ecx, dword [esp + 0x74]
mov word [ecx], di
test eax, eax
je 0x42c108
mov dword [esp], 2
call dword [0x459154]
mov dword [esp + 8], esi
mov dword [esp + 4], str.ERROR:_failed_to_find_an_ip_address_for_host__s_n
mov dword [esp], eax
call sym._fprintf_4
mov dword [esp], 1
call sym._exit
lea esi, [esi]
nop
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x42c070
lea esi, [esi]
nop
mov dword [esp], 2
call dword [0x459154]
mov dword [esp + 8], esi
mov dword [esp + 4], str.ERROR:_failed_to_find_an_ipv6_address_for_host__s_n
mov dword [esp], eax
call sym._fprintf_4
jmp 0x42c0bc
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
sub esp, 4
test eax, eax
je 0x42c16d
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._memcpy
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x34], 0x17
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 0x10
test eax, eax
jne 0x42c070
jmp 0x42c054
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, str._s:_Unknown_resolver_error_n
sub eax, 0x2af9
cmp eax, 3
ja 0x42c189
mov ebx, dword [eax*4 + 0x463ef4]
mov dword [esp], 2
call dword [0x459154]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._fprintf_4
mov dword [esp], 1
call sym._exit
lea esi, [esi]
lea esi, [esi]