Function at 0x43f2f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov eax, ebx
and al, 2
push edi
xor edi, edi
neg al
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
sbb eax, eax
and eax, 0xfbffffef
add eax, 0x4000021
test ebx, 0x200
mov dword [esp + 0x10], eax
je 0x43f339
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x24]
call fcn.0041ac20
mov dword [ebp + 0xc], eax
test bl, 0x40
je 0x43f346
or dword [esp + 0x10], 0x4000
cmp esi, edi
mov dword [esp + 0x14], edi
je 0x43f350
mov dword [esi], edi
test bl, 0x30
je 0x43f361
cmp dword [ebp + 0x18], edi
jne 0x43f361
lea ecx, [esp + 0x28]
mov dword [ebp + 0x18], ecx
mov ebx, dword [ebp + 0xc]
lea edi, [esp + 0x14]
call fcn.0043f7a0
mov ecx, eax
cmp ecx, 1
je 0x43f6fe
mov ebx, dword [ebp + 8]
test bl, bl
jns 0x43f389
mov dword [esp + 0x18], 1
jmp 0x43f39e
mov eax, 0x66666667
imul dword [ebp + 0x10]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor eax, eax
test bl, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], str.RESOLVE:_Cannot_resolve_host_address:__s:__s
je 0x43f3c2
cmp dword [ebp + 0x10], eax
jne 0x43f3c2
mov dword [esp + 0x20], str.RESOLVE:_Cannot_resolve_host_address:__s:__s__I_would_have_retried_this_name_query_if_you_had_specified_the___resolv_retry_option._
test bl, 1
je 0x43f6cc
cmp ecx, 0xffffffff
je 0x43f6cc
test ebx, 0x100
je 0x43f4d4
mov eax, dword [0x5426b0]
test eax, eax
je 0x43f4d4
lea edi, [eax + 0x3c]
xor ebx, ebx
cmp dword [edi], ebx
mov esi, eax
je 0x43f4d4
test byte [eax + 0x5c], 1
jne 0x43f4d4
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x20], ebx
call fcn.004347d0
add esp, 4
test eax, eax
jne 0x43f439
lea ebx, [esp + 0x30]
call fcn.00434490
mov eax, dword [0x5424f0]
mov ecx, dword [0x542500]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
xor ebx, ebx
mov edx, dword [0x5424f0]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [0x5424f4]
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], 0xa
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.00419250
add esp, 4
cmp dword [esi + 0x20dc], ebx
je 0x43f4d4
lea edx, [esp + 0x1c]
push edx
push 0xcec
lea edi, [esp + 0x40]
call fcn.00418ea0
add esp, 8
cmp eax, ebx
je 0x43f4b4
mov ecx, eax
mov eax, esi
call fcn.00415400
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x43f4d4
mov esi, dword [sym.imp.MSVCR80.dll_free]
mov dword [esp + 0x1c], ebx
mov edi, dword [eax]
push eax
call esi
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x43f4c6
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 0x2c]
jmp 0x43f4e0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test esi, esi
mov ebx, eax
je 0x43f538
call fcn.00453190
mov dword [esi], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x43f538
mov edx, dword [esi]
cmp edx, 1
jne 0x43f708
mov eax, edi
and eax, 0xf
cmp eax, dword [0x5426d0]
ja 0x43f530
push edi
call fcn.00408960
add esp, 4
test eax, eax
je 0x43f530
push str.RESOLVE:_Ignored_SIGUSR1_signal_received_during_DNS_resolution_attempt
push edi
call fcn.00408640
add esp, 8
mov dword [esi], 0
jmp 0x43f540
test ebx, ebx
jne 0x43f5f1
cmp dword [esp + 0x18], 0
mov edi, dword [esp + 0x10]
jle 0x43f550
mov edi, 0x4000021
mov ecx, edi
and ecx, 0xf
cmp ecx, dword [0x5426d0]
ja 0x43f5b5
push edi
call fcn.00408960
add esp, 4
test eax, eax
je 0x43f5b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.default.0x43f57a
jmp dword [eax*4 + 0x43f78c]
mov eax, str._HOST_NOT_FOUND__The_specified_host_is_unknown.
jmp 0x43f5a2
mov eax, str._NO_DATA__The_requested_name_is_valid_but_does_not_have_an_IP_address.
jmp 0x43f5a2
mov eax, str._NO_RECOVERY__A_non_recoverable_name_server_error_occurred.
jmp 0x43f5a2
mov eax, str._TRY_AGAIN__A_temporary_error_occurred_on_an_authoritative_name_server.
jmp 0x43f5a2
mov eax, str._unknown_h_errno_value_
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
push edi
call fcn.00408640
add esp, 0x10
mov eax, dword [esp + 0x18]
sub eax, 1
test eax, eax
mov dword [esp + 0x18], eax
jle 0x43f708
mov eax, dword [0x5426b0]
test eax, eax
je 0x43f5e1
push 5
push eax
call fcn.004187f0
add esp, 8
jmp 0x43f4e0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43f4e0
cmp word [ebx + 8], 2
jne 0x43f698
cmp word [ebx + 0xa], 4
jne 0x43f698
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x43f689
cmp dword [eax + 4], 0
je 0x43f689
xor edi, edi
cmp dword [eax], edi
je 0x43f632
add eax, 4
add edi, 1
cmp dword [eax], 0
jne 0x43f622
cmp edi, 2
jge 0x43f644
push 0xd5
push str.._socket.c
call fcn.00408a50
add esp, 8
cmp dword [0x5426d0], 1
jb 0x43f675
push 0x4000021
call fcn.00408960
add esp, 4
test eax, eax
je 0x43f675
mov edx, dword [ebp + 0xc]
push edi
push edx
push str.RESOLVE:_NOTE:__s_resolves_to__d_addresses__choosing_one_by_random
push 0x4000021
call fcn.00408640
add esp, 0x10
call fcn.004079a0
cdq
idiv edi
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x43f708
mov dword [eax], 1
jmp 0x43f708
mov eax, dword [esp + 0x10]
and eax, 0xf
cmp eax, dword [0x5426d0]
ja 0x43f708
mov esi, dword [esp + 0x10]
push esi
call fcn.00408960
add esp, 4
test eax, eax
je 0x43f708
mov ecx, dword [ebp + 0xc]
push ecx
push str.RESOLVE:_Sorry__but_we_only_accept_IPv4_DNS_names:__s
push esi
call fcn.00408640
add esp, 0xc
jmp 0x43f708
mov esi, dword [esp + 0x10]
mov edx, esi
and edx, 0xf
cmp edx, dword [0x5426d0]
ja 0x43f708
push esi
call fcn.00408960
add esp, 4
test eax, eax
je 0x43f708
mov eax, dword [ebp + 0xc]
push eax
push str.RESOLVE:_Cannot_parse_IP_address:__s
push esi
call fcn.00408640
add esp, 0xc
jmp 0x43f708
test esi, esi
je 0x43f708
mov dword [esi], 1
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43f756
mov ecx, dword [eax]
test ecx, ecx
je 0x43f756
mov al, byte [ebp + 8]
xor edi, edi
test al, 0x10
je 0x43f725
mov edi, 0x10
jmp 0x43f72e
test al, 0x20
je 0x43f72e
mov edi, 0x40
mov edx, edi
and edx, 0xf
cmp edx, dword [0x5426d0]
ja 0x43f756
push edi
call fcn.00408960
add esp, 4
test eax, eax
je 0x43f756
push str.RESOLVE:_signal_received_during_DNS_resolution_attempt
push edi
call fcn.00408640
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43f772
mov edi, edi
mov edi, dword [eax]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test edi, edi
mov eax, edi
jne 0x43f760
test byte [ebp + 8], 4
mov eax, dword [esp + 0x14]
je 0x43f783
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret