Function at 0x4d5280
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0xa024
call fcn.004eaae0
push ebx
mov ebx, dword [esp + 0xa02c]
push ebp
push esi
mov eax, dword [ebx]
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
mov dword [esp + 0x28], esi
je 0x4d52ac
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], edi
mov ecx, esi
call fcn.004d5580
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
mov ebp, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], edi
cmp ebp, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ebp
jae 0x4d54fc
lea esi, [ebp + 0x100]
mov dword [esp + 0x14], esi
jmp 0x4d52ea
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esi + 0x400]
xor ebx, ebx
dec eax
je 0x4d5461
dec eax
jne 0x4d5498
mov esi, dword [esp + 0x14]
xor ebp, ebp
push ebp
push 0x8000080
push 3
push ebp
push 1
push SysReAllocString
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x2c], eax
add eax, 0x1801
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov al, byte [0x5913bc]
mov byte [esp + 0x30], al
mov ecx, 0x2800
xor eax, eax
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
push esi
call fcn.004d5620
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xa03c]
push eax
push esi
push ecx
push edx
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:__s_r_n_r_n
push ebx
call fcn.004ec039
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
push eax
not ecx
dec ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x38]
push 0xa000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d540a
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x4d540a
cmp ebp, dword [esp + 0x2c]
ja 0x4d540a
mov eax, dword [esp + 0x20]
mov edx, ecx
lea esi, [esp + 0x30]
push 0
lea edi, [eax + ebp]
xor eax, eax
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x2800
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
add ebp, esi
push eax
push 0xa000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d53ad
mov edi, 0x57e1b0
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x57e1b0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
not ecx
dec ecx
lea edi, [eax + ebp]
mov edx, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x57e1b0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
add ecx, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
jmp 0x4d5498
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0xa03c]
push esi
push ebp
mov ebx, eax
push ecx
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push ebx
call fcn.004ec039
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0xa038]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov esi, ebx
mov edi, dword [edx]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add eax, ecx
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x4d54ce
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add ebp, 0x504
add edx, 0x504
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x24], ebp
cmp ebp, ecx
mov dword [esp + 0x14], edx
jb 0x4d52e4
mov ebx, dword [esp + 0xa038]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x1c]
mov dx, word [0x57e8cc]
mov ebp, dword [esp + 0x1c]
mov word [ecx + eax], dx
mov edx, dword [esp + 0xa03c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov esi, edx
repne scasb al, byte es:[edi]
mov eax, dword [ebx]
not ecx
dec ecx
lea edi, [eax + ebp + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [ebx]
mov ax, word [str.___r_n]
not ecx
dec ecx
mov edi, edx
add ecx, esi
lea ecx, [ecx + ebp + 2]
mov word [ecx], ax
mov al, byte [0x58c2ea]
mov byte [ecx + 2], al
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
lea eax, [ecx + ebp + 5]
pop ebp
pop ebx
add esp, 0xa024
ret 8