Function at 0x4ed4e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6005b6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x686300]
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.004eeec0
mov ebx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004dfea0
mov esi, eax
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x4ed55e
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x4ed566
mov esi, dword [esi]
test esi, esi
je 0x4ed56f
cmp byte [esi], 0
jne 0x4ed571
xor esi, esi
test ebx, ebx
je 0x4ed57a
cmp byte [ebx], 0
jne 0x4ed57c
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.004f2d40
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 0x4ed5c8
push dword [ebp - 0x28]
call fcn.005b7634
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4ed5eb
push dword [ebp - 0x70]
call fcn.005b7634
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 0x4ed625
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 0x4ed679
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
call fcn.004eeec0
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.004dfea0
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.004d59b0
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 0x4ed69e
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 0x4ed6ec
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffff7
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], edx
test edx, edx
je 0x4ed6ec
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ed6ec
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 0x4ed6ec
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 4
je 0x4ed717
and ebx, 0xfffffffb
cmp dword [ebp - 0x2c], 0x10
jb 0x4ed705
push dword [ebp - 0x40]
call fcn.005b7634
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test bl, 2
je 0x4ed742
and ebx, 0xfffffffd
cmp dword [ebp - 0x44], 0x10
jb 0x4ed730
push dword [ebp - 0x58]
call fcn.005b7634
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 0x4ed77a
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4ed77a
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ed77a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ed77a
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
test esi, esi
je 0x4ed785
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.005b7dc4
mov esp, ebp
pop ebp
ret 0x10