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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.0042cf80
push esi
push edi
push ecx
lea edi, [ebp - 0x1054]
mov ecx, 0x415
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x457e80]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x412fa4
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_LocalFree]
cmp esi, esp
call fcn.0042c490
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 8]
call fcn.004133a0
mov esi, esp
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
cmp esi, esp
call fcn.0042c490
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.00413c80
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x104c]
push edx
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00413bc0
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x412ffa
lea ecx, [ebp - 0x10]
call fcn.00413ce0
lea ecx, [ebp - 0x1050]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.004260e0
push eax
lea ecx, [ebp - 0x10]
call fcn.00413d10
movzx edx, al
test edx, edx
je 0x4132a5
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
call fcn.00413cb0
mov eax, dword [eax + 0x1100]
mov dword [ebp - 0x1054], eax
cmp dword [ebp - 0x1054], 1
je 0x413052
cmp dword [ebp - 0x1054], 2
je 0x4130ab
jmp 0x41325e
mov esi, esp
push 0x4000
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10]
call fcn.00413cb0
add eax, 0x100
push eax
lea ecx, [ebp - 0x10]
call fcn.00413cb0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.___s_rContent_Disposition:_form_data__name__s__r_r_s_r
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042c610
add esp, 0x14
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042dc40
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x41325e
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov esi, esp
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x10]
call fcn.00413cb0
add eax, 0x100
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x34], eax
mov esi, esp
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
add edx, 0x3001
mov esi, esp
push edx
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x20], eax
mov al, byte [0x44b758]
mov byte [ebp - 0x1040], al
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x103f]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
call fcn.00413cb0
add eax, 0x100
push eax
mov ecx, dword [ebp - 8]
call fcn.00413500
push eax
lea ecx, [ebp - 0x10]
call fcn.00413cb0
add eax, 0x100
push eax
lea ecx, [ebp - 0x10]
call fcn.00413cb0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.___s_rContent_Disposition:_form_data__name__s___filename__s__rContent_Type:__s_r_r
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042c610
add esp, 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042dc40
add esp, 4
mov dword [ebp - 0x1048], eax
mov esi, esp
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0x1000
lea edx, [ebp - 0x1040]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
cmp esi, esp
call fcn.0042c490
test eax, eax
je 0x413208
cmp dword [ebp - 0x28], 0
jbe 0x413208
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x38]
ja 0x413208
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x1040]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1048]
add ecx, dword [ebp - 0x30]
push ecx
call fcn.0042cfe0
add esp, 0xc
push 0x1001
push 0
lea edx, [ebp - 0x1040]
push edx
call fcn.0042cf20
add esp, 0xc
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
jmp 0x413190
push str._r_r_r
call fcn.0042dc40
add esp, 4
push eax
push 0x44b7b8
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1048]
add ecx, dword [ebp - 0x30]
push ecx
call fcn.0042cfe0
add esp, 0xc
mov esi, esp
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp esi, esp
call fcn.0042c490
mov esi, dword [ebp - 0x1048]
add esi, dword [ebp - 0x30]
push 0x44b7bc
call fcn.0042dc40
add esp, 4
add esi, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, dword [ebp - 0x18]
push eax
call fcn.0042cfe0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x20], 0
je 0x4132a0
mov esi, esp
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.kernel32.dll_LocalFree]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x20], 0
jmp 0x412ff2
push 2
push 0x44b7c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.0042cfe0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042dc40
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
lea ecx, [edx + eax + 2]
push ecx
call fcn.0042cfe0
add esp, 0xc
push 3
push 0x44b7c4
mov edx, dword [ebp + 8]
mov esi, dword [edx]
add esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042dc40
add esp, 4
lea ecx, [esi + eax + 2]
push ecx
call fcn.0042cfe0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042dc40
add esp, 4
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax + 5]
push edx
mov ecx, ebp
push eax
lea edx, [0x41334c]
call fcn.0042c4c0
pop eax
pop edx
mov ecx, dword [ebp - 4]
call fcn.0042c800
pop edi
pop esi
add esp, 0x1054
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 8