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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x38], 0
push edi
je 0x41fdac
cmp dword [esi + 0x34], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jb 0x41fcb5
mov ecx, dword [esi + 0x20]
jmp 0x41fcb8
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x41fcc3
mov eax, dword [esi + 4]
jmp 0x41fcc6
lea eax, [esi + 4]
push ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push eax
call fcn.0041fa8f
push dword [ebp + 0x10]
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x30]
call fcn.00428940
add eax, ebx
add esp, 0x18
cmp dword [esi + 0x34], 0x10
lea edi, [eax + edi + 0x3c]
jb 0x41fcfb
mov eax, dword [esi + 0x20]
jmp 0x41fcfe
lea eax, [esi + 0x20]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x41fe83
cmp eax, 0xffffffff
je 0x41fe83
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
mov ebx, 0x400
add eax, edi
push ebx
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
jmp 0x41fd78
cmp dword [ebp + 0x10], 0
jbe 0x41fd81
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
ja 0x41fd84
add ecx, dword [ebp + 0x10]
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
add eax, edi
mov dword [ebp - 4], ecx
push ebx
add ecx, eax
push ecx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x41fd55
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, ecx
push 2
add eax, edi
push 0x45ebd0
push eax
call fcn.00429770
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 2
jmp 0x41fe83
cmp dword [esi + 0x3c], 0
je 0x41fe37
cmp dword [esi + 0x40], 0
je 0x41fe37
cmp dword [esi + 0x34], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jb 0x41fdcd
mov ecx, dword [esi + 0x20]
jmp 0x41fdd0
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x41fddb
mov eax, dword [esi + 4]
jmp 0x41fdde
lea eax, [esi + 4]
push ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push eax
call fcn.0041fa8f
push dword [ebp + 0x10]
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x30]
call fcn.00428940
push dword [esi + 0x40]
add eax, ebx
push dword [esi + 0x3c]
mov ebx, dword [ebp + 8]
lea edi, [eax + edi + 0x3c]
lea eax, [edi + ebx]
push eax
call fcn.00429770
mov eax, dword [esi + 0x40]
push 2
add eax, edi
add eax, ebx
push 0x45ebd0
push eax
call fcn.00429770
mov eax, dword [esi + 0x40]
add esp, 0x30
lea edi, [edi + eax + 2]
jmp 0x41fe83
cmp dword [esi + 0x34], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
jb 0x41fe48
mov ecx, dword [esi + 0x20]
jmp 0x41fe4b
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x41fe56
mov eax, dword [esi + 4]
jmp 0x41fe59
lea eax, [esi + 4]
push ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push eax
call fcn.0041fa8f
mov edi, dword [esi + 0x14]
push dword [ebp + 0x10]
mov esi, dword [esi + 0x30]
call fcn.00428940
add esp, 0x18
add eax, esi
lea edi, [eax + edi + 0x31]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc