Function at 0x4c6206
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0x140
mov eax, 0x584e44
call fcn.004fb9d0
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x14]
push ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x140], edi
cmp edi, ebx
jne 0x4c626b
cmp dword [ebp + 0x10], ebx
je 0x4c64be
push 0x10
push 0x5a5968
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4c64be
push 4
lea eax, [ebp + 0xc]
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x118], eax
cmp eax, ebx
jne 0x4c62d9
cmp dword [ebp + 0x10], ebx
je 0x4c64b2
push 0x13
pop ecx
push 0xb4
lea eax, [ebp - 0xc4]
push ebx
mov esi, str.Internet_open_url_failed__error_code
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004fc1f0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x120]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4c64b2
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea ecx, [ebp - 0x120]
push ecx
push ebx
push 0xb
push eax
mov dword [ebp - 0x120], ebx
call esi
test eax, eax
jne 0x4c634b
mov edi, dword [ebp - 0x120]
cmp edi, ebx
jbe 0x4c634b
add edi, 2
push edi
call fcn.004fc6d6
push edi
push ebx
push eax
mov dword [ebp - 0x114], eax
call fcn.004fc1f0
mov edi, dword [ebp - 0x114]
add esp, 0x10
push ebx
lea eax, [ebp - 0x120]
push eax
push edi
push 0xb
push dword [ebp - 0x118]
call esi
cmp edi, ebx
je 0x4c634b
mov ecx, dword [ebp - 0x124]
push edi
call fcn.00433c70
push edi
call fcn.004fc2ea
pop ecx
mov dword [ebp - 0x11c], ebx
xor edi, edi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 4], ebx
mov esi, 0x401
jmp 0x4c639f
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x13c]
call fcn.004c45e8
add edi, dword [ebp - 0x11c]
push esi
call fcn.004f8908
push esi
push ebx
push eax
mov dword [ebp - 0x114], eax
call fcn.004fc1f0
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push 0x400
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x11c], ebx
jne 0x4c636f
push dword [ebp - 0x118]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
jle 0x4c64a3
inc edi
push edi
mov dword [ebp - 0x124], edi
call fcn.004f8908
push edi
push ebx
push eax
mov dword [ebp - 0x12c], eax
call fcn.004fc1f0
mov eax, dword [ebp - 0x138]
mov esi, dword [ebp - 0x13c]
sub eax, esi
sar eax, 3
add esp, 0x10
mov dword [ebp - 0x118], ebx
cmp eax, ebx
jbe 0x4c6479
mov dword [ebp - 0x114], eax
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0x12c]
push eax
push edi
push ecx
mov dword [ebp - 0x148], eax
call fcn.004fbb10
mov eax, dword [ebp - 0x148]
add dword [ebp - 0x118], eax
add esp, 0xc
cmp edi, ebx
je 0x4c6468
push edi
call fcn.004fa278
pop ecx
add esi, 8
dec dword [ebp - 0x114]
jne 0x4c642f
mov edi, dword [ebp - 0x124]
push dword [ebp - 0x138]
lea eax, [ebp - 0x124]
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x13c]
push eax
call fcn.004b62c2
mov eax, dword [ebp - 0x144]
cmp eax, ebx
je 0x4c64a3
mov dword [eax], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.004b62f2
push dword [ebp - 0x140]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x12c]
call fcn.004fba53
ret