Function at 0x4c4650
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cff0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x566148]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, ecx
mov edi, dword [esi]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x60], esi
cmp edi, eax
je 0x4c46a9
mov ebx, eax
sub ebx, eax
push ebx
push eax
push edi
call fcn.004e9160
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
push 0x1000
call fcn.0044c870
xor edi, edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov eax, 0x1000
lea esi, [ebp - 0x70]
mov dword [ebp - 4], edi
call fcn.0044c6c0
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x54], edi
xor esi, esi
jmp 0x4c46e8
xor edi, edi
xor esi, esi
jmp 0x4c46e8
xor edi, edi
mov dword [ebp - 0x58], edi
mov edi, dword [ebp - 0x6c]
sub edi, ebx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x5c]
mov edx, edi
sub edx, esi
push edx
lea eax, [ebx + esi]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4c479b
push 0x24
push str.InternetReadFile___win_inet.cpp289_
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
call fcn.00407b20
mov bl, 2
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x50]
mov esi, eax
push edx
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.004c51e0
add esp, 4
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x4c4759
mov eax, dword [eax]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x54], eax
call fcn.004e8fea
mov byte [ebp - 4], bl
mov dword [ebp - 0x80], vtable.std::runtime_error.0
cmp dword [ebp - 0x3c], edi
jb 0x4c4783
mov edx, dword [ebp - 0x50]
push edx
call fcn.004e895a
add esp, 4
push 0x555d34
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], vtable.pix::net_error.0
mov dword [ebp - 0x74], esi
call fcn.004ecd9a
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add ecx, eax
mov edx, 0x1000
add esi, eax
mov dword [ebp - 0x54], ecx
cmp ecx, edx
jbe 0x4c4814
push 0xa
push str.pix::error
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00407b20
mov byte [ebp - 4], 4
cmp dword [ebp - 0x20], 0x10
jb 0x4c47e4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x54], ecx
jmp 0x4c47ea
lea edx, [ebp - 0x34]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004e8fea
push 0x555c44
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], vtable.pix::error.0
call fcn.004ecd9a
test eax, eax
je 0x4c4820
cmp esi, edi
jb 0x4c46e6
test esi, esi
je 0x4c483b
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx + 4]
push edx
add esi, ebx
push esi
push ebx
push eax
call fcn.004c48b0
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x4c46e0
test ebx, ebx
je 0x4c4850
push ebx
call fcn.004e895a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004e8965
mov esp, ebp
pop ebp
ret