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

Disassembly:
push 0x3d0
mov eax, 0x4adca7
call fcn.00483079
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3d4], eax
mov esi, ebx
mov edi, ebx
call fcn.004383f6
push eax
lea ecx, [ebp - 0x94]
call fcn.004355b8
mov dword [ebp - 4], ebx
call fcn.00438402
mov ecx, eax
call fcn.00435e57
test al, al
je 0x45eabb
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x94]
call fcn.004358c4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00435c9d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x45ea65
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004356df
jmp 0x45ec4c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x45ea51
push edi
mov dword [ebp - 0x3d8], ebx
call fcn.00482d77
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push esi
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], edi
je 0x45ec39
push esi
call fcn.00482b65
pop ecx
mov esi, ebx
jmp 0x45ea51
call fcn.00438402
push eax
lea ecx, [ebp - 0x94]
call fcn.004358a7
call fcn.00438740
test al, al
je 0x45eae2
call fcn.00438408
mov dword [ebp - 0x3d0], eax
jmp 0x45eb4e
call fcn.0043840e
push eax
lea ecx, [ebp - 0x19c]
call fcn.004355b8
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.00435c9d
push eax
call fcn.00469cc0
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x3d8], eax
call fcn.00435c9d
push eax
call fcn.0045395d
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d8]
pop ecx
pop ecx
test eax, eax
je 0x45eb3a
push eax
call fcn.00482b65
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.004356df
mov eax, dword [ebp - 0x3d0]
test eax, eax
je 0x45ea51
push 0xffffffffffffffff
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], ebx
call fcn.004355dd
push 0x4b3990
push 0x4cab28
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00436024
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00435c9d
push eax
push dword [ebp - 0x3d0]
call fcn.00453334
add esp, 0x14
test eax, eax
je 0x45ebc6
lea ecx, [ebp - 0x118]
call fcn.004356df
jmp 0x45ea51
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x45ebb6
push edi
call fcn.00482d77
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d0]
call fcn.00453d97
add esp, 0x14
test eax, eax
je 0x45ec19
cmp eax, 0x600
je 0x45ec19
push esi
call fcn.00482b65
pop ecx
mov esi, ebx
call fcn.00438740
test al, al
jne 0x45ebb6
push dword [ebp - 0x3d0]
call fcn.00453113
pop ecx
jmp 0x45ebb6
call fcn.00438740
test al, al
jne 0x45ec2e
push dword [ebp - 0x3d0]
call fcn.00453113
pop ecx
lea ecx, [ebp - 0x118]
call fcn.004356df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004356df
test esi, esi
jne 0x45ecc7
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d4], eax
cmp eax, 0xffffffff
je 0x45ecc3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x45ecc3
push edi
mov dword [ebp - 0x3d0], ebx
call fcn.00482d77
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d0]
push eax
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x45ecc3
push esi
call fcn.00482b65
pop ecx
mov esi, ebx
test esi, esi
je 0x45ecdb
push edi
push esi
call fcn.0045e962
push 1
push esi
mov ebx, eax
call fcn.00482580
add esp, 0x10
mov eax, ebx
call fcn.00483034
ret