Function at 0x1016cbd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fe23d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10252964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x50], edi
call fcn.100f7183
xorps xmm0, xmm0
mov dword [ebp - 0x48], eax
movups xmmword [ebp - 0x60], xmm0
add esp, 4
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.10074730
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.1016b5b0
mov esi, dword [ebp - 0x20]
or edi, 0xffffffff
test esi, esi
je 0x1016cc9b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1016cc9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1016cc9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x1016ccb4
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.1007ea90
cmp byte [ebp - 0x40], 0
mov esi, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
jne 0x1016cce4
mov eax, dword [ebp - 0x48]
sub eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x4c]
sbb ecx, dword [esi + 0x34]
mov dword [ebp - 0x40], ecx
js 0x1016cdad
jg 0x1016cce4
cmp eax, 0x3c
jb 0x1016cdad
mov eax, dword [ebp - 0x50]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 1
movups xmmword [ebp - 0x24], xmm0
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x40], 0
jb 0x1016cd08
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1016cd23
xor edi, edi
xor eax, eax
jmp 0x1016cd72
mov al, byte [ebp - 0x14]
mov edi, dword [ebp - 0x40]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 1
push 0x10
mov dword [ebp - 4], 3
call fcn.101c1316
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1016cd70
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x100576a0
mov dword [eax + 0xc], edi
jmp 0x1016cd72
xor eax, eax
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x2c]
mov dword [esi + 0x2c], eax
test edi, edi
je 0x1016cda1
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1016cda1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x1016cda1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x28]
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.101c1860
mov esp, ebp
pop ebp
ret 4