Function at 0x10014400
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bd35
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10088020]
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.1000e3f0
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 0x100144d5
cmp eax, 0x7a
jne 0x100144cb
mov edx, dword [ebp - 0x50]
mov ecx, edx
sub ecx, esi
mov esi, dword [ebp - 0x3c]
cmp esi, ecx
jae 0x1001448a
mov eax, dword [ebp - 0x54]
jmp 0x100144b3
jbe 0x100144b8
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
cmp esi, eax
jbe 0x100144a2
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.1000e3f0
jmp 0x100144b8
sub esi, ecx
push esi
push 0
push edx
call fcn.10046750
mov eax, dword [ebp - 0x50]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x50], eax
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
je 0x100144d5
mov esi, 2
jmp 0x100146b7
test edi, edi
je 0x1001452f
cmp byte [edi], 0
je 0x1001452f
lea ecx, [ebp - 0x55]
call fcn.10014860
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10014510
mov byte [ebp - 4], al
sub dword [0x10089d54], 1
jne 0x10014507
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x3c], 0
jmp 0x10014537
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 0
sub dword [0x10089d54], 1
jne 0x10014537
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10014537
mov eax, dword [0x10089d70]
mov dword [ebp - 0x3c], eax
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x60], 0
cmp dword [edi], 0
jbe 0x100146b5
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
sub eax, ecx
lea esi, [edi + 0xc]
sar eax, 2
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
nop
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 0x1001461d
push eax
lea ecx, [ebp - 0x48]
call fcn.100147d0
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.100468b0
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.10014740
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x54]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
cmp eax, ecx
je 0x10014653
mov edx, dword [esi - 8]
nop
cmp dword [eax], edx
je 0x1001463d
add eax, 4
cmp eax, ecx
jne 0x10014630
jmp 0x10014653
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi - 4]
jne 0x10014653
mov ax, word [ebp - 0x58]
cmp ax, word [ebp - 0x6c]
je 0x100146e3
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x100146a0
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x10014680
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10014733
test ecx, ecx
je 0x1001468b
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 - 0x60]
add esi, 0x14
inc eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
cmp eax, dword [edi]
jb 0x10014560
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1000d340
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.10044a98
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1001472c
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x1001470c
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10014733
test ecx, ecx
je 0x10014717
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 0x100146b7
call fcn.1004872f
int3