Function at 0x57df00
Capabilities:
Connect to http server
Create http request
Get http content length
Parse url
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x2494]
mov eax, 0x2494
call fcn.005a3d50
push 0xfffffffffffffffe
push 0x5f9af0
push 0x58e7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x615370]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x2490], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x249c]
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov word [ebp + 0x2090], cx
push 0x1fe
push ebx
lea edx, [ebp + 0x2092]
push edx
call fcn.0058e300
xor eax, eax
mov word [ebp + 0x2390], ax
push 0xfe
push ebx
lea ecx, [ebp + 0x2392]
push ecx
call fcn.0058e300
xor edx, edx
mov word [ebp + 0x2290], dx
push 0xfe
push ebx
lea eax, [ebp + 0x2292]
push eax
call fcn.0058e300
xor ecx, ecx
mov word [ebp], cx
push 0x1046
push ebx
lea edx, [ebp + 2]
push edx
call fcn.0058e300
push 0x38
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.0058e300
add esp, 0x3c
mov dword [ebp - 0x7c], 0x3c
lea ecx, [ebp + 0x2090]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], pe_nt_image_headers32
lea edx, [ebp + 0x2390]
mov dword [ebp - 0x60], edx
mov eax, 0x80
mov dword [ebp - 0x5c], eax
lea ecx, [ebp + 0x2290]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
lea edx, [ebp]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0x824
cmp esi, ebx
jne 0x57e016
xor eax, eax
jmp 0x57e184
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x57e049
cmp dword [ebp - 0x70], 3
jne 0x57e049
mov eax, 1
jmp 0x57e04b
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x57e05c
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x57e175
push ebx
push ebx
push ebx
push ebx
push str.Beacon
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x57e052
push ebx
push ebx
push 3
lea ecx, [ebp + 0x2290]
push ecx
lea edx, [ebp + 0x2390]
push edx
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp + 0x2090]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x24], esi
xor eax, eax
cmp esi, ebx
je 0x57e054
mov word [ebp + 0x1048], ax
push 0x1046
push ebx
lea ecx, [ebp + 0x104a]
push ecx
call fcn.0058e300
add esp, 0xc
lea edx, [ebp + 0x1048]
cmp dword [ebp - 0x4c], ebx
je 0x57e0e3
mov ecx, dword [ebp - 0x50]
jmp 0x57e0d0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x57e0d0
jmp 0x57e101
mov ecx, 0x5cc530
jmp 0x57e0f0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x57e0f0
push ebx
push SysReAllocStringLen
push ebx
push 0x5caac0
push str.HTTP_1.1
lea edx, [ebp + 0x1048]
push edx
push str.HEAD
push esi
mov esi, dword [sym.imp.WININET.dll_HttpOpenRequestW]
call esi
mov dword [ebp - 0x30], eax
mov edi, eax
call fcn.0057d980
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x57e173
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 4
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x20000005
mov edx, edi
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x57e1a9
cmp dword [ebp - 0x2c], 0x3e800000
jbe 0x57e1a9
xor eax, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0057e268
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2490]
xor ecx, ebp
call fcn.005886fc
add ebp, 0x2494
mov esp, ebp
pop ebp
ret
push 0
push SysReAllocStringLen
push 0
push 0x5caac0
push str.HTTP_1.1
lea eax, [ebp + 0x1048]
push eax
push 0x5e77e0
mov ecx, dword [ebp - 0x24]
push ecx
call esi
mov dword [ebp - 0x28], eax
mov edi, eax
call fcn.0057d980
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x57e173
mov edi, 0x400
push edi
call fcn.00588eb5
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x57e16e
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, edi
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
push edi
add eax, ebx
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x57e173
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jbe 0x57e246
add ebx, ecx
mov dword [ebp - 0x80], ebx
lea edx, [ebx + edi]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0058cdde
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x57e200
xor ecx, ecx
cmp ecx, dword [ebp - 0x2c]
jne 0x57e173
mov eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ecx], ebx
jmp 0x57e173