Function at 0x10014f00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063a25
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.1000efa0
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 0x10014fd6
cmp eax, 0x7a
jne 0x10014fcc
mov edx, dword [ebp - 0x50]
mov ecx, edx
sub ecx, esi
mov esi, dword [ebp - 0x3c]
cmp esi, ecx
jae 0x10014f8a
mov eax, dword [ebp - 0x54]
jmp 0x10014fb3
jbe 0x10014fb8
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
cmp esi, eax
jbe 0x10014fa2
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.1000efa0
jmp 0x10014fb8
sub esi, ecx
push esi
push 0
push edx
call fcn.1004f1c0
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 0x10014fd6
mov esi, 2
jmp 0x100151b7
test edi, edi
je 0x10015030
cmp byte [edi], 0
je 0x10015030
lea ecx, [ebp - 0x55]
call fcn.10015360
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10015011
mov byte [ebp - 4], al
sub dword [0x100aeddc], 1
jne 0x10015008
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x3c], 0
jmp 0x10015038
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 0x10015038
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10015038
mov eax, dword [0x100aedf8]
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x60], edi
cmp dword [esi], edi
jbe 0x100151b5
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 0x1001511d
push eax
lea ecx, [ebp - 0x48]
call fcn.100152d0
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.1004f320
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.10015240
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 0x10015153
mov edx, dword [esi - 8]
nop
cmp dword [eax], edx
je 0x1001513d
add eax, 4
cmp eax, ecx
jne 0x10015130
jmp 0x10015153
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi - 4]
jne 0x10015153
mov ax, word [ebp - 0x58]
cmp ax, word [ebp - 0x6c]
je 0x100151e3
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x100151a0
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x10015180
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10015233
test ecx, ecx
je 0x1001518b
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 0x10015060
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1000ddd0
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.1004d46a
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1001522c
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x1001520c
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10015233
test ecx, ecx
je 0x10015217
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 0x100151b7
call fcn.10050fef
int3