Function at 0x10014ee0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100639b5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x58], dx
mov edi, ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
push ecx
push 0x18
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], 0x18
call fcn.1000ef80
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x3c]
push 1
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
je 0x10014fb6
cmp eax, 0x7a
jne 0x10014fac
mov edx, dword [ebp - 0x50]
mov ecx, edx
sub ecx, esi
mov esi, dword [ebp - 0x3c]
cmp esi, ecx
jae 0x10014f6a
mov eax, dword [ebp - 0x54]
jmp 0x10014f93
jbe 0x10014f98
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
cmp esi, eax
jbe 0x10014f82
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.1000ef80
jmp 0x10014f98
sub esi, ecx
push esi
push 0
push edx
call fcn.1004f160
mov eax, dword [ebp - 0x50]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x50], eax
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x3c]
push 1
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
je 0x10014fb6
mov esi, 2
jmp 0x10015197
test edi, edi
je 0x10015010
cmp byte [edi], 0
je 0x10015010
lea ecx, [ebp - 0x55]
call fcn.10015340
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10014ff1
mov byte [ebp - 4], al
sub dword [0x100aeddc], 1
jne 0x10014fe8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x3c], 0
jmp 0x10015018
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
sub dword [0x100aeddc], 1
jne 0x10015018
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10015018
mov eax, dword [0x100aedf8]
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x60], edi
cmp dword [esi], edi
jbe 0x10015195
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
sub eax, ecx
sar eax, 2
add esi, 0xc
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
nop dword [eax]
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 0xb
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test eax, eax
je 0x100150fd
push eax
lea ecx, [ebp - 0x48]
call fcn.100152b0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
mov edi, dword [ebp - 0x48]
lea esi, [ebp - 0x10]
sub esi, eax
push esi
push eax
push edi
call fcn.1004f2c0
sar esi, 2
add esp, 0xc
mov dword [ebp - 0x5c], 0
lea eax, [edi + esi*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10015220
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
cmp eax, ecx
je 0x10015133
mov edx, dword [esi - 8]
nop
cmp dword [eax], edx
je 0x1001511d
add eax, 4
cmp eax, ecx
jne 0x10015110
jmp 0x10015133
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi - 4]
jne 0x10015133
mov ax, word [ebp - 0x58]
cmp ax, word [ebp - 0x6c]
je 0x100151c3
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x10015180
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x10015160
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10015213
test ecx, ecx
je 0x1001516b
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x54]
inc edi
add esi, 0x14
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], esi
cmp edi, dword [eax]
jb 0x10015040
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1000dda0
mov eax, esi
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.1004d40a
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1001520c
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x100151ec
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10015213
test ecx, ecx
je 0x100151f7
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov esi, 1
jmp 0x10015197
call fcn.10050f8f
int3