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

Disassembly:
push 0xffffffffffffffff
push 0x44fb88
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x3c], edi
cmp dword [edi + 0x40], ebx
jne 0x404d0f
lea eax, [esp + 0x20]
push eax
call fcn.0042af60
mov dword [esp + 0x88], ebx
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0x1c], ebx
jb 0x404a76
mov eax, dword [edi + 4]
jmp 0x404a79
lea eax, [edi + 4]
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
mov ebp, 0xf
push ebp
push eax
call sub.DNSAPI.dll_DnsQuery_A
mov esi, eax
call fcn.004177a0
mov ecx, eax
mov eax, 0x86d90545
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xf3
jle 0x404ac5
push 0xf3
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00435810
call fcn.00404470
cmp esi, ebx
jne 0x404cd7
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404ae0
sub eax, edx
je 0x404af0
call fcn.00418970
cmp esi, ebx
je 0x404b87
cmp word [esi + 8], bp
jne 0x404b7d
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.00402d10
push eax
call fcn.0043a90f
add esp, 8
test eax, eax
jne 0x404b7d
mov ecx, dword [esi + 0x18]
movzx edx, word [esi + 0x1c]
mov eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404b32
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004030c0
lea ebx, [esp + 0x40]
lea edi, [esp + 0x20]
mov byte [esp + 0x88], 1
call fcn.00404fb0
mov byte [esp + 0x88], 0
cmp dword [esp + 0x5c], 0x10
jb 0x404b77
mov eax, dword [esp + 0x48]
push eax
call fcn.004393c9
add esp, 4
mov edi, dword [esp + 0x3c]
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x404af8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404b9b
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x88], 2
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
xor esi, esi
sar ecx, 5
test ecx, ecx
jbe 0x404c2a
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.00404f20
cmp dword [eax], 0x11
jne 0x404be3
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.00404f20
add eax, 4
cmp dword [eax + 0x14], ebx
jne 0x404bf5
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
inc esi
sar edx, 5
cmp esi, edx
jb 0x404bc0
jmp 0x404c10
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.00404f20
push 0xffffffffffffffff
add eax, 4
push ebx
push eax
lea ecx, [esp + 0x6c]
call fcn.00402d80
cmp dword [esp + 0x74], ebx
jne 0x404c7d
cmp dword [esp + 0x78], 0x10
jb 0x404c2a
mov eax, dword [esp + 0x64]
push eax
call fcn.004393c9
add esp, 4
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x64], bl
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
cmp eax, ebx
je 0x404c5a
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.00405a90
mov eax, dword [esp + 0x34]
push eax
call fcn.004393c9
add esp, 0xc
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004393c9
add esp, 4
mov eax, 0x80004005
jmp 0x404d11
mov eax, dword [esp + 0x64]
mov esi, 0x10
cmp dword [esp + 0x78], esi
jae 0x404c90
lea eax, [esp + 0x64]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
jne 0x404caa
cmp dword [esp + 0x78], esi
jb 0x404c2a
mov edx, dword [esp + 0x64]
push edx
jmp 0x404c22
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [edi + 0x40], eax
cmp eax, ebx
jne 0x404ce7
cmp dword [esp + 0x78], esi
jb 0x404ccb
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004393c9
add esp, 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
lea esi, [esp + 0x20]
call fcn.00404ed0
mov eax, 0x80004005
jmp 0x404d11
cmp dword [esp + 0x78], esi
jb 0x404cfa
mov edx, dword [esp + 0x64]
push edx
call fcn.004393c9
add esp, 4
lea esi, [esp + 0x20]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00404ed0
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00438dc1
add esp, 0x78
ret