Function at 0x10064e90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c587c
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xc0]
call fcn.10071720
mov dword [ebp - 4], 0
mov dword [ebp - 0x90], 0
jmp 0x10064ef8
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + 0xc]
call fcn.1006c840
cmp dword [ebp - 0x90], eax
jae 0x10065246
mov ecx, dword [ebp - 0x90]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10063540
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], edx
lea ecx, [ebp - 0x28]
call fcn.10005e50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x30], 0
jne 0x10065166
mov ecx, dword [ebp - 0x8c]
add ecx, 0x18
call fcn.10021b60
movzx ecx, al
test ecx, ecx
jne 0x10065035
lea ecx, [ebp - 0xcc]
call fcn.1004a660
mov byte [ebp - 4], 2
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0x104]
call fcn.1002a8a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x8c]
add ecx, 0x18
call fcn.10007050
push eax
lea ecx, [ebp - 0x58]
call fcn.10005de0
mov byte [ebp - 4], 4
lea edx, [ebp - 0xa8]
push edx
push 0x7d0
push 0
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.10007050
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.1002bbb0
add esp, 4
push eax
lea ecx, [ebp - 0x104]
call fcn.1002a960
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10005f30
lea ecx, [ebp - 0xcc]
call fcn.1000f7f0
movzx edx, al
test edx, edx
jne 0x10065012
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004d4d0
push eax
lea ecx, [ebp - 0x28]
call fcn.10008f10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.1002a8e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10017280
jmp 0x10065166
mov dword [ebp - 0xec], 0
xor eax, eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xe8], 2
mov dword [ebp - 0xec], 1
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xe4], 1
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0xec]
push edx
push 0
mov ecx, dword [ebp - 0x9c]
call fcn.10007050
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0xffffffff
je 0x10065166
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
jmp 0x100650e5
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 0
je 0x10065150
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
movzx eax, word [edx]
cmp eax, 2
jne 0x1006514e
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x40]
call fcn.10005de0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10008f10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10005f30
jmp 0x10065150
jmp 0x100650d6
cmp dword [ebp - 0x98], 0
je 0x10065166
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0x30], 1
jne 0x10065184
mov eax, dword [ebp - 0x8c]
add eax, 0x18
push eax
lea ecx, [ebp - 0x28]
call fcn.10008f10
lea ecx, [ebp - 0x28]
call fcn.10021b60
movzx ecx, al
test ecx, ecx
jne 0x10065235
mov ecx, dword [ebp - 0x9c]
call fcn.10007050
push eax
push 0x100d5068
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.10009150
add esp, 0xc
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xb0]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.10005c80
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xc0]
call fcn.1000ab80
mov ecx, eax
call fcn.10006000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.10005f30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.10005f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005f30
jmp 0x10064ee9
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10061fe0
mov edx, dword [ebp - 0xa4]
or edx, 1
mov dword [ebp - 0xa4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1000ab60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret 8