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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x64
pop eax
mov esi, ecx
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0xc], esi
call fcn.0041ea69
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, dword [esi + 4]
pop ecx
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
cmp esi, dword [eax + 8]
jae 0x412b9a
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0x200]
mov dword [ebp + 8], eax
mov eax, dword [eax + 0x800]
dec eax
je 0x412af8
dec eax
jne 0x412b80
and dword [ebp - 0x18], eax
push eax
push 0x8000080
push 3
push eax
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x96000
mov dword [ebp - 0x14], eax
call fcn.0041ea69
pop ecx
push dword [ebp + 8]
mov dword [ebp - 8], eax
call fcn.00412c23
push eax
push dword [ebp + 8]
push esi
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:__s_r_n_r_n
push 0x96000
push dword [ebp - 8]
call fcn.004130fe
add esp, 0x1c
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov eax, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 0x10], ecx
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call fcn.00420a5a
mov dword [ebx], eax
pop ecx
pop ecx
test eax, eax
je 0x412c1f
xor ecx, ecx
add eax, edi
push ecx
push ecx
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
dec eax
add edi, eax
call fcn.0041eafb
mov eax, dword [ebp - 4]
add eax, 2
add eax, dword [ebp - 0x14]
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call fcn.00420a5a
add esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x412c1f
push 0
lea ecx, [ebp - 0x18]
add eax, edi
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1c]
add edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push 2
add eax, edi
push 0x443fa4
push eax
call fcn.0041d660
add esp, 0xc
add edi, 2
jmp 0x412b7d
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push esi
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push 0x2000
push eax
call fcn.0041f0d0
add esp, 0x18
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov eax, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 0x14], ecx
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call fcn.00420a5a
mov dword [ebx], eax
pop ecx
pop ecx
test eax, eax
je 0x412c1f
xor ecx, ecx
add eax, edi
push ecx
push ecx
push dword [ebp - 0x14]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x14]
dec eax
add edi, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add esi, 0xa04
add eax, 0xa04
mov dword [ebp + 8], eax
cmp esi, dword [ecx + 8]
jb 0x4129c5
mov eax, dword [ebx]
push 2
add eax, edi
push 0x443fa8
push eax
call fcn.0041d660
add esp, 0xc
xor eax, eax
add edi, 2
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, esi
push ecx
push dword [ebx]
call fcn.00420a5a
mov dword [ebx], eax
pop ecx
pop ecx
test eax, eax
je 0x412c1f
xor ecx, ecx
add eax, edi
push ecx
push ecx
push esi
push eax
push 0xffffffffffffffff
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
dec esi
push 5
add esi, edi
add eax, esi
push str.___r_n
push eax
call fcn.0041d660
add esp, 0xc
lea eax, [esi + 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x412c16