Function at 0x40dd10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x599690]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x40], 0xffffffff
jne 0x40dd62
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x14], 0
jne 0x40df15
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov edx, 2
mov word [ebp - 0x38], dx
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x36], ax
lea ecx, [ebp + 8]
call fcn.004065e0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x24]
call fcn.00412130
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x40de36
lea ecx, [ebp + 8]
call fcn.004065e0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40ddfd
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
je 0x40ddfb
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x24]
call fcn.004121f0
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x44], eax
jmp 0x40ddda
jmp 0x40de34
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004121a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004049f0
mov eax, dword [ebp - 0x60]
jmp 0x40e09d
jmp 0x40de42
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004121f0
mov dword [ebp - 0x48], 0
jmp 0x40de54
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x24]
call fcn.0040b210
cmp dword [ebp - 0x48], eax
jae 0x40ded9
mov edx, dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x24]
call fcn.004121c0
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x10
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00411f50
test eax, eax
je 0x40ded4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x10], 1
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004121a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004049f0
mov eax, dword [ebp - 0x64]
jmp 0x40e09d
jmp 0x40de4b
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004121a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004049f0
mov eax, dword [ebp - 0x68]
jmp 0x40e09d
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x14], 1
je 0x40df3d
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x14], 2
je 0x40df3d
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x14], 3
je 0x40df3d
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x14], 4
jne 0x40e084
mov eax, dword [ebp - 0x7c]
mov dword [eax + 8], 0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x7c]
add ecx, 0xc
call fcn.0040a050
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 4], eax
xor edx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov eax, 2
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x7c]
add ecx, 0x18
call fcn.004065e0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x7c]
movzx edx, word [ecx + 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x56], ax
cmp dword [ebp - 0x54], 0xffffffff
jne 0x40e00d
mov ecx, dword [ebp - 0x7c]
add ecx, 0x18
call fcn.004065e0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40dfd8
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
jmp 0x40e00d
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x30], 1
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004049f0
mov eax, dword [ebp - 0x6c]
jmp 0x40e09d
mov ecx, dword [ebp + 0x14]
push ecx
push 0x10
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00411f50
test eax, eax
jne 0x40e055
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x30], 1
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004049f0
mov eax, dword [ebp - 0x70]
jmp 0x40e09d
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x10], 1
cmp dword [ebp + 0x10], 0
je 0x40e084
mov ecx, dword [ebp - 0x7c]
call fcn.0040e1e0
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004049f0
mov eax, dword [ebp - 0x74]
jmp 0x40e09d
mov dword [ebp - 0x78], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004049f0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00520c7a
mov esp, ebp
pop ebp
ret 0x10