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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4026ca
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0x14]
call fcn.00402ab0
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.004034f0
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x40271a
mov ecx, dword [ebp - 8]
add ecx, 0x504
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x90]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00403640
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
jae 0x402742
mov dword [ebp - 0x28], 1
jmp 0x402749
mov dword [ebp - 0x28], 0
movzx edx, byte [ebp - 0x28]
test edx, edx
je 0x4029f7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x500]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 1
je 0x40278b
cmp dword [ebp - 0x2c], 2
je 0x4027f6
jmp 0x4029b9
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x54]
add edx, 0x100
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
mov edx, dword [ebp - 4]
push edx
call fcn.00403a50
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
call fcn.0040deb0
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x4029b9
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0x64]
add ecx, 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, 0x1801
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov cl, byte [0x41b30a]
mov byte [ebp - 0x494], cl
push 0x400
push 0
lea edx, [ebp - 0x493]
push edx
call fcn.0040b0a0
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x80]
add eax, 0x100
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00401b70
push eax
mov ecx, dword [ebp - 0x84]
add ecx, 0x100
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:__s_r_n_r_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403a50
add esp, 0x18
mov edx, dword [ebp - 4]
push edx
call fcn.0040deb0
add esp, 4
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0x400
lea ecx, [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402972
cmp dword [ebp - 0x18], 0
jbe 0x402972
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
ja 0x402972
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x494]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
push eax
call fcn.0040a5a0
add esp, 0xc
push 0x401
push 0
lea ecx, [ebp - 0x494]
push ecx
call fcn.0040b0a0
add esp, 0xc
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
jmp 0x402906
push 0x41b4a4
call fcn.0040deb0
add esp, 4
push eax
push 0x41b500
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
push eax
call fcn.0040a5a0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x10]
push 0x41b504
call fcn.0040deb0
add esp, 4
add esi, eax
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0xc]
push edx
call fcn.0040a5a0
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x4029f2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
jmp 0x40270e
push 2
push 0x41b508
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, dword [ebp - 0xc]
push eax
call fcn.0040a5a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040deb0
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
lea eax, [ecx + edx + 2]
push eax
call fcn.0040a5a0
add esp, 0xc
push 3
push str.___r_n
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
add esi, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040deb0
add esp, 4
lea eax, [esi + eax + 2]
push eax
call fcn.0040a5a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040deb0
add esp, 4
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 5]
pop esi
mov esp, ebp
pop ebp
ret 8