Function at 0x40dc40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bb36
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x685680]
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 dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 0
push eax
mov ecx, ebx
mov dword [ebp - 0x80], 0
call fcn.0040dfa0
mov edi, eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040df60
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 0x10
jb 0x40dcb8
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x40dcc0
mov esi, dword [esi]
test esi, esi
je 0x40dcc9
cmp byte [esi], 0
jne 0x40dccb
xor esi, esi
test edi, edi
je 0x40dcd4
cmp byte [edi], 0
jne 0x40dcd6
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00411dc0
cmp dword [ebp - 0x14], 0x10
mov edi, dword [ebp - 0x74]
mov ecx, eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
jb 0x40dd18
push dword [ebp - 0x28]
call fcn.004b9997
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40dd3b
push dword [ebp - 0x70]
call fcn.004b9997
add esp, 4
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x84], esi
mov dword [ebp - 4], 2
cmp dword [edi], 0
je 0x40dd6e
xor edi, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 3
lea ebx, [edi + 1]
jmp 0x40ddc2
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0040dfa0
mov edi, eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
mov dword [ebp - 0x78], 2
call fcn.0040df60
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x80]
push edi
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x78], 6
call fcn.0040dfe0
mov edi, dword [ebp - 0x18]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x74], eax
mov ebx, 0xe
mov eax, dword [ebp - 0x7c]
push ecx
mov ecx, eax
mov dword [ebp - 0x78], ebx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0040e780
mov ecx, dword [ebp - 0x74]
or ebx, 0x10
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], eax
test bl, 8
je 0x40de2a
mov edx, dword [ebp - 0x90]
and ebx, 0xfffffff7
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edx
test edx, edx
je 0x40de2a
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40de2a
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x74]
or edx, 0xffffffff
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x40de2a
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 4
je 0x40de55
and ebx, 0xfffffffb
cmp dword [ebp - 0x44], 0x10
jb 0x40de43
push dword [ebp - 0x58]
call fcn.004b9997
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
test bl, 2
je 0x40de80
and ebx, 0xfffffffd
cmp dword [ebp - 0x2c], 0x10
jb 0x40de6e
push dword [ebp - 0x40]
call fcn.004b9997
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x40deb5
test edi, edi
je 0x40deb5
or ebx, 0xffffffff
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x40deb5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x40deb5
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test esi, esi
je 0x40dec0
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x7c]
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.005cd355
mov esp, ebp
pop ebp
ret 0x10