Function at 0x4f1370
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x603386
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x68a300]
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 + 0x14]
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x7c], 0
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], 0
call fcn.004f2d50
mov ebx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004e3d90
mov esi, eax
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x4f13ee
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x4f13f6
mov esi, dword [esi]
test esi, esi
je 0x4f13ff
cmp byte [esi], 0
jne 0x4f1401
xor esi, esi
test ebx, ebx
je 0x4f140a
cmp byte [ebx], 0
jne 0x4f140c
xor ebx, ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
push ebx
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004f6bc0
mov ebx, dword [ebp - 0x84]
add esp, 8
cmp dword [ebp - 0x14], 0x10
movq xmm0, qword [eax]
movq qword [ebx], xmm0
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
jb 0x4f1458
push dword [ebp - 0x28]
call fcn.005ba02a
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4f147b
push dword [ebp - 0x70]
call fcn.005ba02a
add esp, 4
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x84], esi
mov al, byte [ebx + 4]
mov dword [ebp - 4], 2
test al, al
je 0x4f14b5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov ebx, 1
jmp 0x4f1509
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
call fcn.004f2d50
mov edi, eax
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x7c], 2
call fcn.004e3d90
push edi
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x7c], 6
call fcn.004d98b0
mov edi, dword [ebp - 0x74]
add esp, 0x10
mov edx, eax
mov ebx, 0xe
mov dword [edi], 0
mov dword [edi + 4], 0
cmp edi, edx
je 0x4f152e
mov ecx, dword [edi + 4]
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov dword [edx + 4], ecx
mov ecx, dword [edi]
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
mov eax, dword [edx + 8]
or ebx, 0x10
mov dword [edi + 8], eax
mov dword [edx + 8], 0
test bl, 8
je 0x4f157c
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffff7
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], edx
test edx, edx
je 0x4f157c
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f157c
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 0x4f157c
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 4
je 0x4f15a7
and ebx, 0xfffffffb
cmp dword [ebp - 0x2c], 0x10
jb 0x4f1595
push dword [ebp - 0x40]
call fcn.005ba02a
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test bl, 2
je 0x4f15d2
and ebx, 0xfffffffd
cmp dword [ebp - 0x44], 0x10
jb 0x4f15c0
push dword [ebp - 0x58]
call fcn.005ba02a
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x4f160a
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4f160a
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f160a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f160a
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
test esi, esi
je 0x4f1615
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
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.005ba7b4
mov esp, ebp
pop ebp
ret 0x10