Function at 0x404a00
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x44e3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
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 + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], esi
cmp dword [esi + 0x40], ebx
jne 0x404d12
lea eax, [esp + 0x20]
push eax
call fcn.0042b5e0
mov dword [esp + 0x80], ebx
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x18], ebx
jb 0x404a63
mov eax, dword [esi + 4]
jmp 0x404a66
lea eax, [esi + 4]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
mov ebp, 0xf
push ebp
push eax
call sub.DNSAPI.dll_DnsQuery_A
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
shr esi, 0x18
call fcn.0043af41
imul eax, eax, 0x63
add esp, 4
cmp esi, eax
jbe 0x404aa3
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.00406e10
cmp edi, ebx
jne 0x404cda
mov esi, dword [esp + 0x18]
call fcn.004178b0
sub eax, 1
jne 0x404ac3
call fcn.00404410
call fcn.0041a8a0
call fcn.00430df0
test eax, eax
je 0x404ad1
call fcn.00431240
cmp esi, ebx
je 0x404b71
lea esp, [esp]
cmp word [esi + 8], bp
jne 0x404b67
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00402b00
push eax
call fcn.0043b18c
add esp, 8
test eax, eax
jne 0x404b67
movzx eax, word [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x38], eax
mov eax, ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404b20
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00402f50
lea ebx, [esp + 0x38]
lea edi, [esp + 0x20]
mov byte [esp + 0x80], 1
call fcn.00404f60
mov byte [esp + 0x80], 0
cmp dword [esp + 0x54], 0x10
jb 0x404b65
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00439c49
add esp, 4
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x404ae0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404b91
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov dword [esp + 0x18], ebx
call fcn.00404360
mov dword [esp + 0x80], ebx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x80], 4
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
xor esi, esi
sar edx, 5
test edx, edx
jbe 0x404c2a
jmp 0x404bc0
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.00404ed0
cmp dword [eax], 0x11
jne 0x404be3
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.00404ed0
add eax, 4
cmp dword [eax + 0x14], ebx
jne 0x404bf5
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
inc esi
sar eax, 5
cmp esi, eax
jb 0x404bc0
jmp 0x404c10
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.00404ed0
push 0xffffffffffffffff
add eax, 4
push ebx
push eax
lea ecx, [esp + 0x64]
call fcn.00402be0
cmp dword [esp + 0x6c], ebx
jne 0x404c7d
cmp dword [esp + 0x70], 0x10
jb 0x404c2a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00439c49
add esp, 4
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x5c], bl
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebp
cmp eax, ebx
je 0x404c5a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push edx
push ecx
call fcn.00405a90
mov edx, dword [esp + 0x34]
push edx
call fcn.00439c49
add esp, 0xc
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00439c49
add esp, 4
mov eax, 0x80004005
jmp 0x404d14
mov eax, dword [esp + 0x5c]
mov edi, 0x10
cmp dword [esp + 0x70], edi
jae 0x404c90
lea eax, [esp + 0x5c]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
jne 0x404ca3
cmp dword [esp + 0x70], edi
jmp 0x404c1b
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x40], eax
call fcn.004179d0
cmp dword [esi + 0x40], ebx
jne 0x404cea
cmp dword [esp + 0x70], edi
jb 0x404cce
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00439c49
add esp, 4
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea esi, [esp + 0x20]
call fcn.00404e80
mov eax, 0x80004005
jmp 0x404d14
cmp dword [esp + 0x70], edi
jb 0x404cfd
mov edx, dword [esp + 0x5c]
push edx
call fcn.00439c49
add esp, 4
lea esi, [esp + 0x20]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00404e80
xor eax, eax
mov ecx, dword [esp + 0x78]
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.00439641
add esp, 0x70
ret