Function at 0x10009920
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100419a5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10067024]
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 - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
mov dword [ebp - 0x3c], 0x18
cmp eax, 0x18
jbe 0x10009988
lea eax, [ecx + 0x18]
mov dword [ebp - 0x44], eax
jmp 0x10009998
jae 0x10009998
push ecx
push 0x18
lea ecx, [ebp - 0x48]
call fcn.10006a10
mov ecx, dword [ebp - 0x48]
push 1
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
je 0x10009a11
cmp eax, 0x7a
jne 0x10009a07
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
sub esi, edx
mov ecx, dword [ebp - 0x3c]
cmp ecx, esi
jae 0x100099c5
lea eax, [edx + ecx]
mov dword [ebp - 0x44], eax
jmp 0x100099f6
jbe 0x100099f6
mov eax, dword [ebp - 0x40]
sub eax, edx
cmp ecx, eax
jbe 0x100099dc
push ecx
push ecx
lea ecx, [ebp - 0x48]
call fcn.10006a10
jmp 0x100099f3
mov eax, dword [ebp - 0x44]
sub ecx, esi
push ecx
push 0
push eax
lea esi, [eax + ecx]
call fcn.1002e160
add esp, 0xc
mov dword [ebp - 0x44], esi
mov edx, dword [ebp - 0x48]
push 1
lea eax, [ebp - 0x3c]
push eax
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
je 0x10009a11
mov esi, 2
jmp 0x10009bd7
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x60], esi
test edi, edi
je 0x10009a74
cmp byte [edi], 0
je 0x10009a74
lea ecx, [ebp - 0x55]
call fcn.1000a620
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10009a52
mov byte [ebp - 4], al
sub dword [0x10068f10], 1
jne 0x10009a49
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x3c], 0
jmp 0x10009a7c
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 [0x10068f10], 1
jne 0x10009a6f
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [ebp - 0x60]
jmp 0x10009a7c
mov eax, dword [0x10068f20]
mov dword [ebp - 0x3c], eax
cmp dword [esi], 0
mov dword [ebp - 0x5c], 0
jbe 0x10009bd5
lea edi, [esi + 0xc]
nop
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x28
movzx eax, ax
push 0x40
mov dword [ebp - 0x68], eax
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 - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
add eax, 0x28
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x54]
push 0x28
push eax
push esi
call fcn.1002e2c0
lea eax, [esi + 0x28]
mov dword [ebp - 0x64], 0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
cmp eax, edx
je 0x10009b73
mov ecx, dword [edi - 8]
nop dword [eax + eax]
cmp dword [eax], ecx
je 0x10009b5d
add eax, 4
cmp eax, edx
jne 0x10009b50
jmp 0x10009b73
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edi - 4]
jne 0x10009b73
mov ax, word [ebp - 0x58]
cmp ax, word [ebp - 0x68]
je 0x10009c0a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10009bc0
mov eax, dword [ebp - 0x4c]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x10009ba0
mov ecx, dword [ecx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10009c9a
test ecx, ecx
je 0x10009bab
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x5c]
add edi, 0x14
mov ecx, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x5c], eax
cmp eax, dword [ecx]
jb 0x10009a90
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x10009c7d
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
cmp eax, 0x1000
jb 0x10009c5d
mov ecx, dword [ecx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10009c9a
jmp 0x10009c5d
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10009c53
mov eax, dword [ebp - 0x4c]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x10009c33
mov ecx, dword [ecx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10009c9a
test ecx, ecx
je 0x10009c3e
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov esi, 1
jmp 0x10009bd7
test ecx, ecx
je 0x10009c68
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, 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.1002c803
mov esp, ebp
pop ebp
ret
call fcn.1003013f
int3