Function at 0x437240
Capabilities:
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44db18
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
xor ebx, ebx
cmp dword [ebp + 0x4c], ebx
jne 0x43728a
mov eax, 0x80004005
jmp 0x437673
push ebx
call fcn.0043a6c4
mov ecx, dword [ebp + 0x44]
add esp, 4
cmp ecx, edx
jl 0x4372aa
jg 0x4372a3
mov edx, dword [ebp + 0x40]
cmp edx, eax
jbe 0x4372aa
xor eax, eax
jmp 0x437673
push ebx
call fcn.0043a6c4
mov ecx, dword [ebp + 0x10]
add esp, 4
add eax, 0xe10
adc edx, ebx
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x437310
lea ecx, [ecx]
push esi
mov eax, ebp
call fcn.00437980
mov edi, eax
add edi, 0x1c
call fcn.0042a500
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
cmp esi, ecx
jb 0x4372e0
push ebx
mov dword [ebp + 0x38], ebx
call fcn.0043a6c4
add esp, 4
cmp dword [ebp + 0x34], 0x10
jb 0x437327
mov eax, dword [ebp + 0x20]
jmp 0x43732a
lea eax, [ebp + 0x20]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
je 0x437280
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, ecx
lea eax, [esp + 0x1b]
mov dword [esp + 0x48], edx
mov dword [ebp + 0x38], ecx
mov dword [esp + 0x44], 1
mov byte [esp + 0x1b], bl
lea edx, [eax + 1]
jmp 0x437360
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x437360
sub eax, edx
je 0x437370
call fcn.004363a0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
xor esi, esi
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], esi
je 0x43765e
push 4
mov dword [esp + 0x24], ebx
call fcn.0043a715
add esp, 4
cmp eax, ebx
je 0x4373b3
lea ecx, [esp + 0x28]
mov dword [eax], ecx
jmp 0x4373b5
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
push esi
mov eax, ebp
mov dword [esp + 0x88], 1
call fcn.00437980
cmp dword [eax + 0x18], 0x10
jb 0x4373e3
mov eax, dword [eax + 4]
jmp 0x4373e6
add eax, 4
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x4c]
push ecx
push ebx
mov esi, 0xf
push esi
push eax
call sub.DNSAPI.dll_DnsQuery_A
cmp eax, ebx
jne 0x4375b5
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x43752c
cmp word [edi + 8], si
jne 0x437522
mov edx, dword [esp + 0x24]
push edx
mov eax, ebp
call fcn.00437980
cmp dword [eax + 0x18], 0x10
jb 0x437433
mov eax, dword [eax + 4]
jmp 0x437436
add eax, 4
mov ecx, dword [edi + 4]
push ecx
push eax
call fcn.0043a90f
add esp, 8
test eax, eax
jne 0x437522
mov ecx, dword [edi + 0x18]
movzx edx, word [edi + 0x1c]
mov eax, ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x437467
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.004030c0
mov byte [esp + 0x84], 2
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
jne 0x43748f
xor edx, edx
jmp 0x437498
mov edx, dword [esp + 0x3c]
sub edx, ecx
sar edx, 5
mov eax, dword [esp + 0x38]
mov esi, eax
sub esi, ecx
sar esi, 5
cmp esi, edx
mov esi, eax
jae 0x4374cf
mov byte [esp + 0x1c], bl
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 1
push eax
lea ecx, [esp + 0x5c]
call fcn.004059a0
add esp, 0x10
add esi, 0x20
mov dword [esp + 0x38], esi
jmp 0x4374f1
cmp ecx, eax
jbe 0x4374d8
call fcn.004392c0
mov eax, dword [esp + 0x28]
push esi
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x78]
push ecx
lea eax, [esp + 0x38]
call fcn.004050c0
mov byte [esp + 0x84], 1
cmp dword [esp + 0x68], 0x10
jb 0x43750d
mov edx, dword [esp + 0x54]
push edx
call fcn.004393c9
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov esi, 0xf
mov edi, dword [edi]
cmp edi, ebx
jne 0x437412
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
xor esi, esi
sar eax, 5
test eax, eax
jbe 0x4375b5
lea ecx, [ecx]
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.00404f20
cmp dword [eax], 0xd
jne 0x437563
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.00404f20
add eax, 4
cmp dword [eax + 0x14], ebx
jne 0x437575
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
inc esi
sar ecx, 5
cmp esi, ecx
jb 0x437540
jmp 0x4375b5
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.00404f20
mov edx, dword [esp + 0x24]
mov esi, eax
push edx
mov eax, ebp
add esi, 4
call fcn.00437980
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push esi
mov ecx, eax
call fcn.00402d80
call fcn.004175f0
test eax, eax
je 0x4375ad
call fcn.004308a0
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4375c9
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov dword [esp + 0x20], ebx
mov dword [esp + 0x84], 0xffffffff
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x43761b
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x43760e
add esi, 0x1c
cmp dword [esi], 0x10
jb 0x4375f8
mov eax, dword [esi - 0x14]
push eax
call fcn.004393c9
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x20
lea ecx, [esi - 0x1c]
cmp ecx, edi
jne 0x4375e7
mov edx, dword [esp + 0x34]
push edx
call fcn.004393c9
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.004393c9
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ecx
jb 0x437399
mov eax, dword [esp + 0x40]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
mov dword [ebp + 0x48], ebx
add eax, 0x80004005
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00438dc1
add esp, 0x74
ret 4