Function at 0x41bea0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515cb5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov edi, edx
mov dword [ebp - 0x50], eax
push edi
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
call fcn.0041c160
mov ebx, eax
push edi
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.0041c130
mov ecx, 0x10
mov byte [ebp - 4], 2
cmp dword [ebx + 0x14], ecx
jb 0x41bf09
mov ebx, dword [ebx]
cmp dword [eax + 0x14], ecx
jb 0x41bf12
mov esi, dword [eax]
jmp 0x41bf14
mov esi, eax
test esi, esi
je 0x41bf1d
cmp byte [esi], 0
jne 0x41bf1f
xor esi, esi
test ebx, ebx
je 0x41bf28
cmp byte [ebx], 0
jne 0x41bf2a
xor ebx, ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea edx, [ebp - 0x58]
push edx
push edi
push ebx
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
lea esi, [ebp - 0x64]
call fcn.0041f680
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x54]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
jb 0x41bf66
mov eax, dword [ebp - 0x30]
push eax
call fcn.00469e1a
add esp, 4
xor esi, esi
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
jb 0x41bf88
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00469e1a
add esp, 4
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], 3
cmp dword [ebx], esi
je 0x41bfb0
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
lea edi, [ebp - 0x68]
mov byte [ebp - 4], 4
mov ebx, 1
jmp 0x41bffd
push edi
lea esi, [ebp - 0x4c]
call fcn.0041c160
mov ebx, eax
mov dword [ebp - 4], 5
push edi
lea esi, [ebp - 0x30]
mov dword [ebp - 0x50], 2
call fcn.0041c130
mov ecx, 6
mov dword [ebp - 4], ecx
push eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
push eax
mov ecx, ebx
lea edx, [ebp - 0x74]
call fcn.0041c190
add esp, 8
mov edi, eax
mov dword [ebp - 4], 7
mov ebx, 0xe
mov esi, dword [ebp - 0x5c]
push esi
mov eax, edi
mov dword [ebp - 0x50], ebx
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041ca40
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
or ebx, 0x10
mov dword [ebp - 4], 6
test bl, 8
je 0x41c063
mov edi, dword [ebp - 0x70]
and ebx, 0xfffffff7
mov dword [ebp - 0x50], ebx
test edi, edi
je 0x41c063
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41c063
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c063
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
test bl, 4
je 0x41c08f
and ebx, 0xfffffffb
cmp dword [ebp - 0x1c], 0x10
jb 0x41c07d
mov eax, dword [ebp - 0x30]
push eax
call fcn.00469e1a
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
test bl, 2
je 0x41c0bb
and ebx, 0xfffffffd
cmp dword [ebp - 0x38], 0x10
jb 0x41c0a9
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00469e1a
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 4], 3
test bl, 1
je 0x41c0fd
mov edi, dword [ebp - 0x64]
and ebx, 0xfffffffe
mov dword [ebp - 0x50], ebx
test edi, edi
je 0x41c0fd
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41c0fd
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c0fd
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x41c10b
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret 4