Function at 0x40b9a0
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 0x447307
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 0x45607b
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040a840
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 0x40bc12
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 0x40baa0
push dword [ebp - 0x42c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40bc12
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 0x40bb00
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40bc01
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 + 0x458dd0]
mov eax, dword [ebp - 0x414]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x458dd0]
divsd xmm1, xmm0
mulsd xmm1, qword [0x458d70]
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 0x40bbdf
cmp dword [edi + 0x14], 0xf
lea eax, [edx + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x40bbb6
mov eax, dword [edi]
lea esi, [eax + edx]
push ecx
lea eax, [ebp - 0x410]
push eax
push esi
call fcn.004287b0
mov eax, dword [ebp - 0x438]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x43c]
jmp 0x40bb00
push ecx
lea eax, [ebp - 0x410]
mov byte [ebp - 0x430], 0
push eax
push dword [ebp - 0x430]
push ecx
mov ecx, edi
call fcn.0040a6e0
jmp 0x40bb00
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.0042702a
mov esp, ebp
pop ebp
ret