Function at 0x405a60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5237de
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe0], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 0
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x124], 0
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x405b01
mov dword [ebp - 0xe8], 2
jmp 0x405b0b
mov dword [ebp - 0xe8], 1
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x120], eax
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x405b2b
mov dword [ebp - 0xec], 0x11
jmp 0x405b35
mov dword [ebp - 0xec], 6
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x128], 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.00403230
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.004071b0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004071b0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x405bd5
push 0x5810f3
mov ecx, dword [ebp + 8]
call fcn.00407770
mov edx, dword [ebp - 0xe0]
or edx, 1
mov dword [ebp - 0xe0], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00407540
mov eax, dword [ebp + 8]
jmp 0x405e6f
mov byte [ebp - 0xd5], 0
lea ecx, [ebp - 0x6c]
call fcn.00407850
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00407850
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
jmp 0x405c14
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0xdc], edx
cmp dword [ebp - 0xdc], 0
je 0x405da4
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xf0], ecx
cmp dword [ebp - 0xf0], 2
je 0x405c50
cmp dword [ebp - 0xf0], 0x17
je 0x405cf3
jmp 0x405d92
lea ecx, [ebp - 0x6c]
call fcn.00407140
movzx edx, al
test edx, edx
je 0x405cee
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004074b0
lea ecx, [ebp - 0x84]
call fcn.00407140
movzx ecx, al
test ecx, ecx
jne 0x405ca4
mov byte [ebp - 0xd5], 1
lea edx, [ebp - 0xb8]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0xf4]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0xf4]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
jmp 0x405d92
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
test ecx, ecx
jne 0x405d92
push 0x41
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00405a40
add esp, 4
push eax
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 4]
push eax
call fcn.004062b0
add esp, 0x10
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x84]
call fcn.004074b0
lea ecx, [ebp - 0x6c]
call fcn.00407140
movzx edx, al
test edx, edx
jne 0x405d51
mov byte [ebp - 0xd5], 1
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xdc]
mov ecx, 7
mov esi, dword [edx + 0x18]
mov edi, dword [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xf8]
movzx ecx, word [eax + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
movzx edx, byte [ebp - 0xd5]
test edx, edx
je 0x405d9f
jmp 0x405da4
jmp 0x405c05
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea ecx, [ebp - 0x6c]
call fcn.00407140
movzx ecx, al
test ecx, ecx
jne 0x405dde
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
cmp dword [ebp + 0x1c], 0
je 0x405ddc
mov ecx, 7
lea esi, [ebp - 0xb8]
mov edi, dword [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
jmp 0x405df4
cmp dword [ebp + 0x1c], 0
je 0x405df4
mov ecx, 7
lea esi, [ebp - 0xd4]
mov edi, dword [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
test ecx, ecx
jne 0x405e09
lea edx, [ebp - 0x6c]
mov dword [ebp - 0xfc], edx
jmp 0x405e15
lea eax, [ebp - 0x84]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp + 8]
call fcn.004078a0
mov eax, dword [ebp - 0xe0]
or eax, 1
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00407540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00407540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00407540
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret