Function at 0x10019f20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071c35
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100c0040]
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.10011cd0
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 0x10019ff6
cmp eax, 0x7a
jne 0x10019fec
mov edx, dword [ebp - 0x50]
mov ecx, edx
sub ecx, esi
mov esi, dword [ebp - 0x3c]
cmp esi, ecx
jae 0x10019faa
mov eax, dword [ebp - 0x54]
jmp 0x10019fd3
jbe 0x10019fd8
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
cmp esi, eax
jbe 0x10019fc2
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.10011cd0
jmp 0x10019fd8
sub esi, ecx
push esi
push 0
push edx
call fcn.10055bd0
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 0x10019ff6
mov esi, 2
jmp 0x1001a1d7
test edi, edi
je 0x1001a050
cmp byte [edi], 0
je 0x1001a050
lea ecx, [ebp - 0x55]
call fcn.1001a380
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1001a031
mov byte [ebp - 4], al
sub dword [0x100c1fa0], 1
jne 0x1001a028
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x3c], 0
jmp 0x1001a058
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 [0x100c1fa0], 1
jne 0x1001a058
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1001a058
mov eax, dword [0x100c1fbc]
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x60], edi
cmp dword [esi], edi
jbe 0x1001a1d5
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 0x1001a13d
push eax
lea ecx, [ebp - 0x48]
call fcn.1001a2f0
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.10055d30
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.1001a260
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 0x1001a173
mov edx, dword [esi - 8]
nop
cmp dword [eax], edx
je 0x1001a15d
add eax, 4
cmp eax, ecx
jne 0x1001a150
jmp 0x1001a173
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi - 4]
jne 0x1001a173
mov ax, word [ebp - 0x58]
cmp ax, word [ebp - 0x6c]
je 0x1001a203
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1001a1c0
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x1001a1a0
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001a253
test ecx, ecx
je 0x1001a1ab
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 0x1001a080
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10010460
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.10053e7d
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1001a24c
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x1001a22c
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001a253
test ecx, ecx
je 0x1001a237
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 0x1001a1d7
call fcn.100590cf
int3