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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x420], edi
test eax, eax
je 0x413e13
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
mov ecx, ebx
call fcn.00413a50
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
mov ebx, dword [ebx + 4]
xor eax, eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x418], ebx
cmp ebx, dword [eax + 8]
jae 0x41403a
lea edi, [ebx + 0x100]
mov dword [ebp - 0x414], edi
mov eax, dword [edi + 0x10000]
xor esi, esi
dec eax
je 0x4140b5
dec eax
jne 0x413fd1
xor ebx, ebx
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocStringLen
push edi
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x413fc5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x42c], eax
add eax, 0x1801
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x400
lea ecx, [ebp - 0x407]
push ebx
push ecx
mov esi, eax
mov byte [ebp - 0x408], bl
call fcn.00526030
mov edx, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x424]
add esp, 0xc
push edx
call fcn.00413040
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x414]
push eax
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 esi
call fcn.00525791
mov eax, esi
add esp, 0x18
lea ecx, [eax + 1]
jmp 0x413f10
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413f10
sub eax, ecx
push 0
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413fa6
nop
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x413fa6
cmp ebx, dword [ebp - 0x42c]
ja 0x413fa6
push eax
mov eax, dword [ebp - 0x40c]
lea edx, [ebp - 0x408]
add eax, ebx
push edx
add eax, esi
push eax
call fcn.00526760
push 0x401
lea ecx, [ebp - 0x408]
push 0
push ecx
call fcn.00526030
add ebx, dword [ebp - 0x41c]
add esp, 0x18
push 0
lea edx, [ebp - 0x41c]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413f40
add ebx, dword [ebp - 0x40c]
mov edx, 0xa0d
push edi
mov word [ebx + esi], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 2
mov dword [ebp - 0x40c], ebx
mov edi, dword [ebp - 0x414]
mov ebx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x40c]
mov eax, dword [edx]
add eax, dword [ebp - 0x410]
push ecx
push esi
push eax
call fcn.00526760
mov ecx, dword [ebp - 0x40c]
add dword [ebp - 0x410], ecx
add esp, 0xc
test esi, esi
je 0x414007
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x424]
add ebx, 0x10104
add edi, 0x10104
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], edi
cmp ebx, dword [edx + 8]
jb 0x413e57
mov edi, dword [ebp - 0x420]
mov esi, dword [ebp - 0x428]
mov eax, dword [esi]
mov edx, dword [ebp - 0x410]
mov ecx, 0x2d2d
mov word [edx + eax], cx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414050
mov ecx, dword [ebp - 0x410]
sub eax, edx
push eax
mov eax, dword [esi]
lea edx, [eax + ecx + 2]
push edi
push edx
call fcn.00526760
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414075
mov edx, dword [ebp - 0x410]
sub eax, ecx
mov ecx, dword [esi]
add ecx, eax
mov eax, edi
mov dword [ecx + edx + 2], 0xa0d2d2d
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414095
mov ecx, dword [ebp - 4]
sub eax, esi
pop edi
pop esi
xor ecx, ebp
lea eax, [eax + edx + 6]
pop ebx
call fcn.00525222
mov esp, ebp
pop ebp
ret 8
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov esi, eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push esi
call fcn.00525791
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4140e0
sub eax, edx
mov dword [ebp - 0x40c], eax
jmp 0x413fd1