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

Disassembly:
mov eax, 0xa024
call fcn.004eef30
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 0x4d96ec
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [ebx], edi
mov ecx, esi
call fcn.004d99c0
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 0x4d993c
lea esi, [ebp + 0x100]
mov dword [esp + 0x14], esi
jmp 0x4d972a
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esi + 0x400]
xor ebx, ebx
dec eax
je 0x4d98a1
dec eax
jne 0x4d98d8
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 [0x59758c]
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.004d9a60
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.004f0473
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 0x4d984a
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x4d984a
cmp ebp, dword [esp + 0x2c]
ja 0x4d984a
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 0x4d97ed
mov edi, 0x5841c8
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x5841c8
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, 0x5841c8
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 0x4d98d8
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.004f0473
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 0x4d990e
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 0x4d9724
mov ebx, dword [esp + 0xa038]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x1c]
mov dx, word [0x5848e4]
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 [0x5924a2]
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