Function at 0x40bec0
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4478e7
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x45f080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x430], edi
push 0
push 0
mov dword [ebp - 0x440], edi
push 0x402
mov dword [ebp - 0x434], 1
push dword [0x46143c]
call dword [sym.imp.USER32.dll_SendMessageW]
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x456093
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040ad60
push 0
push 0
push 0
push 1
mov dword [ebp - 4], 0
push str.Mozilla_5.0
mov dword [ebp - 0x434], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x42c], esi
test esi, esi
je 0x40c132
push 4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x1388
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x80000000
push 0
push 0
push str.https:__ogulnie.ga_files_launcher_stable.json
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x43c], esi
test esi, esi
jne 0x40bfc0
push dword [ebp - 0x42c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40c132
push 4
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x1388
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0
push eax
push 0x20000005
push esi
mov dword [ebp - 0x424], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
nop word [eax + eax]
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40c020
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40c121
mov ecx, dword [ebp - 0x428]
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x428], ecx
shr eax, 0x1f
push 0
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x458c10]
mov eax, dword [ebp - 0x414]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x458c10]
divsd xmm1, xmm0
mulsd xmm1, qword [0x458bb8]
cvttsd2si eax, xmm1
push eax
push 0x402
push dword [0x46143c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x438], ecx
cmp ecx, eax
ja 0x40c0ff
cmp dword [edi + 0x14], 0xf
lea eax, [edx + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x40c0d6
mov eax, dword [edi]
lea esi, [eax + edx]
push ecx
lea eax, [ebp - 0x410]
push eax
push esi
call fcn.00428d20
mov eax, dword [ebp - 0x438]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x43c]
jmp 0x40c020
push ecx
lea eax, [ebp - 0x410]
mov byte [ebp - 0x430], 0
push eax
push dword [ebp - 0x430]
push ecx
mov ecx, edi
call fcn.0040ac00
jmp 0x40c020
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x42c]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427598
mov esp, ebp
pop ebp
ret