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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x48300a
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00402b30
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00402b30
push eax
mov edx, dword [ebp + 0x10]
push edx
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
mov eax, dword [ebp + 8]
push eax
call fcn.0048e2fb
add esp, 0x14
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0048e1d0
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x20]
call fcn.00483130
lea esi, [esi + eax + 0x2a]
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00483130
lea edx, [esi + eax + 0x12]
mov dword [ebp - 4], edx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00402b30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x483005
cmp dword [ebp - 8], 0xffffffff
je 0x483005
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0x400
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x482fd0
cmp dword [ebp - 0x18], 0
jbe 0x482fd0
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
ja 0x482fd0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x482f97
push 2
push 0x4adb64
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x10]
add ecx, dword [ebp + 8]
push ecx
call fcn.0048eb00
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x483126
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x3c], 0
je 0x4830d0
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x40], 0
je 0x4830d0
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00402b30
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00402b30
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
mov edx, dword [ebp + 8]
push edx
call fcn.0048e2fb
add esp, 0x14
mov eax, dword [ebp + 0x10]
push eax
call fcn.0048e1d0
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x20]
call fcn.00483130
lea esi, [esi + eax + 0x2a]
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00483130
lea ecx, [esi + eax + 0x12]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0048eb00
add esp, 0xc
push 2
push 0x4adb64
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x40]
add eax, dword [ebp + 8]
push eax
call fcn.0048eb00
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x40]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x483126
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00402b30
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00402b30
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
mov edx, dword [ebp + 8]
push edx
call fcn.0048e2fb
add esp, 0x14
mov eax, dword [ebp + 0x10]
push eax
call fcn.0048e1d0
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x20]
call fcn.00483130
lea esi, [esi + eax + 0x2a]
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00483130
lea ecx, [esi + eax + 7]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc