Function at 0x4108e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f975e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x55bc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x7c], 0
push eax
mov dword [ebp - 0x74], 0
call fcn.00411200
mov edi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00410520
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x410954
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x41095c
mov esi, dword [esi]
test esi, esi
je 0x410965
cmp byte [esi], 0
jne 0x410967
xor esi, esi
test edi, edi
je 0x410970
cmp byte [edi], 0
jne 0x410972
xor edi, edi
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
lea eax, [ebp - 0x74]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00411940
mov edi, dword [ebp - 0x80]
mov ecx, eax
add esp, 8
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4109bb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004222e0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x4109e2
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004222e0
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x80], esi
xor ecx, ecx
mov dword [ebp - 4], 1
cmp dword [edi], ecx
mov eax, fcn.00425c80
cmove eax, ecx
test eax, eax
je 0x410a1e
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x8c]
mov ebx, 1
jmp 0x410a6d
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.00411200
mov edi, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
mov dword [ebp - 0x7c], 2
call fcn.00410520
push edi
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0x7c], 6
call fcn.0040f590
add esp, 0x10
mov ecx, eax
mov ebx, 0xe
mov edx, dword [ebp - 0x78]
or ebx, 0x10
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
test bl, 8
je 0x410ac3
mov edi, dword [ebp - 0x94]
and ebx, 0xfffffff7
test edi, edi
je 0x410ac3
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x410ac3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x410ac3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, 4
je 0x410af2
mov eax, dword [ebp - 0x2c]
and ebx, 0xfffffffb
cmp eax, 0x10
jb 0x410ae0
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004222e0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test bl, 2
je 0x410b21
mov eax, dword [ebp - 0x44]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x410b0f
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004222e0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
test bl, 1
je 0x410b51
mov edi, dword [ebp - 0x88]
test edi, edi
je 0x410b51
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x410b51
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x410b51
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test esi, esi
je 0x410b5c
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6b29
mov esp, ebp
pop ebp
ret 0x10