Function at 0x5d8770
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6451c5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], esi
mov edi, ecx
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x5d87ce
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x5d87ce
push ecx
call fcn.005a47b0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x17
push str.HTTP
push edi
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x5d89fc
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x5d88f1
cmp dword [edi + 4], 0x17
jne 0x5d88e3
mov eax, dword [edi + 0x18]
movups xmm0, xmmword [eax + 8]
movups xmmword [ebp - 0x34], xmm0
call fcn.005a45d0
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x5d88a9
mov dword [esi], 1
mov eax, 0x100
push 0x18
mov dword [esi + 4], 0x10
mov word [esi + 0x10], ax
call fcn.00606f0f
push dword [esi + 4]
lea ecx, [ebp - 0x34]
mov dword [esi + 0xc], eax
push ecx
push eax
call fcn.00609db0
mov ecx, dword [esi + 0xc]
add esp, 0x10
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [ecx + eax], 0
mov dword [ecx + eax + 4], 0
test esi, esi
je 0x5d88b0
cmp dword [esi + 0xc], 0
jne 0x5d88b0
push ecx
mov ecx, esi
call fcn.005a47b0
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.005a6990
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5d88e3
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x5d88e3
push ecx
call fcn.005a47b0
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x5d8825
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esi]
test ecx, ecx
je 0x5d8911
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 4]
mov ecx, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
jmp 0x5d8917
xor eax, eax
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x1c], eax
add ecx, 4
shl eax, 2
mov dword [ebp - 0x14], eax
add eax, ecx
mov dword [ebp - 0x20], eax
call fcn.005a45d0
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x5d8962
mov ecx, dword [ebp - 0x14]
push 0
add ecx, 4
push ecx
push 0
mov ecx, eax
call fcn.005a57f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5d8969
cmp dword [eax + 0xc], 0
jne 0x5d8969
push ecx
mov ecx, eax
call fcn.005a47b0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 3
push eax
mov ecx, esi
call fcn.005a6990
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5d8992
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x5d8992
push ecx
call fcn.005a47b0
test edi, edi
je 0x5d89fc
mov eax, dword [esi]
test eax, eax
je 0x5d89a1
mov ecx, dword [eax + 4]
jmp 0x5d89a3
xor ecx, ecx
cmp ecx, dword [ebp - 0x20]
jl 0x5d89fc
test eax, eax
je 0x5d89b1
mov eax, dword [eax + 0xc]
jmp 0x5d89b6
mov eax, 0x651f68
add edi, eax
xor eax, eax
cmp dword [ebp - 0x1c], eax
jle 0x5d89df
xor edx, edx
mov ecx, dword [esi]
test ecx, ecx
je 0x5d89cc
mov ecx, dword [ecx + 0xc]
jmp 0x5d89d1
mov ecx, 0x651f68
add ecx, edx
add edx, 0x10
mov dword [edi + eax*4], ecx
inc eax
cmp eax, dword [ebp - 0x1c]
jl 0x5d89c1
mov dword [edi + eax*4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret