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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447516
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040d580
add esp, 4
cmp eax, 0x2b9
je 0x409b25
xor eax, eax
jmp 0x409dec
push 0
push 0
push 3
push 0
push 4
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4e8], eax
cmp dword [ebp - 0x4e8], 0xffffffff
jne 0x409b54
xor eax, eax
jmp 0x409dec
push 0
mov edx, dword [ebp - 0x4e8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4f8], eax
cmp dword [ebp - 0x4f8], 0x3200000
jbe 0x409b8b
mov eax, dword [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x409dec
cmp dword [ebp - 0x4f8], 0
jne 0x409bab
mov ecx, dword [ebp - 0x4e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x409dec
mov dword [ebp - 0x4f4], 0
lea edx, [ebp - 0x4e4]
push edx
call fcn.00427c70
add esp, 4
push 0
lea eax, [ebp - 0x500]
push eax
push 0x400
lea ecx, [ebp - 0x444]
push ecx
mov edx, dword [ebp - 0x4e8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x500]
push eax
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x4e4]
push edx
call fcn.00427a10
add esp, 0xc
mov eax, dword [ebp - 0x4f4]
add eax, dword [ebp - 0x500]
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f4]
cmp ecx, dword [ebp - 0x4f8]
jb 0x409bc4
mov edx, dword [ebp - 0x4e8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4e4]
push ecx
call fcn.00427b90
add esp, 8
mov dword [ebp - 0x4ec], 0
jmp 0x409c5e
mov edx, dword [ebp - 0x4ec]
add edx, 1
mov dword [ebp - 0x4ec], edx
cmp dword [ebp - 0x4ec], 0x10
jge 0x409c8d
mov eax, dword [ebp - 0x4ec]
movzx ecx, byte [ebp + eax - 0x20]
push ecx
push str._02x
mov edx, dword [ebp - 0x4ec]
lea eax, [ebp + edx*2 - 0x44]
push eax
call fcn.00427e00
add esp, 0xc
jmp 0x409c4f
mov dword [ebp - 0x504], 0x466af4
lea ecx, [ebp - 0x4fc]
push ecx
mov ecx, dword [ebp - 0x504]
call fcn.00421770
lea edx, [ebp - 0x508]
push edx
mov ecx, dword [ebp - 0x504]
call fcn.00422270
jmp 0x409cc8
lea ecx, [ebp - 0x4fc]
call fcn.004050c0
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp - 0x4fc]
call fcn.00404f00
movzx ecx, al
test ecx, ecx
je 0x409dea
lea ecx, [ebp - 0x4fc]
call fcn.00405080
push eax
lea ecx, [ebp - 0x48c]
call fcn.004034f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x45c]
call fcn.004033a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4ed]
call fcn.0041f440
push eax
lea eax, [ebp - 0x510]
push eax
lea ecx, [ebp - 0x45c]
call fcn.00422100
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x514]
push edx
lea ecx, [ebp - 0x45c]
call fcn.00421650
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x474]
call fcn.00401340
lea ecx, [ebp - 0x48c]
call fcn.00421840
push eax
lea ecx, [ebp - 0x474]
call fcn.00421840
push eax
call fcn.0042fb23
add esp, 8
test eax, eax
jne 0x409db9
mov dword [ebp - 0x50c], 1
lea ecx, [ebp - 0x474]
call fcn.004046b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x45c]
call fcn.00404660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.004046b0
mov eax, dword [ebp - 0x50c]
jmp 0x409dec
lea ecx, [ebp - 0x474]
call fcn.004046b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x45c]
call fcn.00404660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.004046b0
jmp 0x409cbd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret