Function at 0x10160fd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc78d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10205ac8]
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.100f19e2
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.1006a900
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.1015f9b0
mov esi, dword [ebp - 0x20]
or edi, 0xffffffff
test esi, esi
je 0x1016109b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1016109b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1016109b
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 0x101610b4
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.10074460
cmp byte [ebp - 0x40], 0
mov esi, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
jne 0x101610e4
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 0x101611ad
jg 0x101610e4
cmp eax, 0x3c
jb 0x101611ad
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 0x10161108
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 0x10161123
xor edi, edi
xor eax, eax
jmp 0x10161172
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.101b44b7
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10161170
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x10056c4c
mov dword [eax + 0xc], edi
jmp 0x10161172
xor eax, eax
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x2c]
mov dword [esi + 0x2c], eax
test edi, edi
je 0x101611a1
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x101611a1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x101611a1
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.101b4a00
mov esp, ebp
pop ebp
ret 4