Function at 0x4fefe0
Capabilities:
Create http request
Get file size
Read data from internet
Read file on windows
Receive data

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
push 7
push str.file:__
push ebp
xor ebx, ebx
xor esi, esi
xor edi, edi
call fcn.00505250
add esp, 0xc
test eax, eax
jne 0x4ff089
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
add ebp, 7
push ebp
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ff2cd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ff07d
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4ff07d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x30]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ff076
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ff13a
push 0
push 0
push 0
push 0
push 0x570d18
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4ff2c6
push 0
push 0x800
push 0xffffffffffffffff
push 0
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
je 0x4ff127
push 0x1000
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4ff127
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea edx, [esp + 0x20]
push edx
push 0x1000
add eax, edi
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
je 0x4ff127
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x4ff127
add edi, eax
push 2
lea eax, [edi + 0x1000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x4ff125
cmp dword [esp + 0x20], 0
mov esi, eax
ja 0x4ff0d4
jmp 0x4ff127
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x4ff2c6
xor ebp, ebp
cmp esi, ebp
je 0x4ff2cd
push edi
push esi
call fcn.004feda0
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
je 0x4ff2c6
cmp ebx, 1
jne 0x4ff1a0
lea edx, [esp + 0x1c]
push edx
push edi
mov eax, esi
mov dword [esp + 0x24], ebp
call fcn.004feaf0
add esp, 8
test eax, eax
je 0x4ff2cd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.004fe960
add esp, 0xc
pop edi
mov dword [esi], eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
add ebx, ebx
add ebx, ebx
add ebx, ebx
sub ebx, dword [esp + 0x1c]
mov ebp, eax
add ebx, ebx
add ebx, ebx
push ebx
call fcn.00494940
push ebx
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x20], eax
call fcn.004948b0
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push ebp
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
call fcn.004fee40
add esp, 0x24
cmp eax, ebx
je 0x4ff244
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ecx
jge 0x4ff244
mov edx, dword [esp + 0x18]
push ebx
push edx
call fcn.004feaf0
add esp, 8
test eax, eax
je 0x4ff2b2
inc dword [esp + 0x14]
add ebx, 0x1c
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
lea eax, [esp + 0x3c]
call fcn.004fee40
add esp, 0x14
test eax, eax
jne 0x4ff200
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
movzx ebx, word [ebp + 8]
movzx ebp, word [ebp + 6]
push 0x1c
mov dword [esp + 0x2c], ecx
call fcn.00494940
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [edi + 0x18], edx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
call fcn.004fe5d0
mov edx, dword [esp + 0x24]
mov dword [edi], eax
mov eax, dword [esp + 0x40]
add esp, 8
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebx
push esi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.004934fd
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret