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

Disassembly:
push 0x73c
mov eax, 0x5003ac
call fcn.004d9a2f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0043d137
xor ebx, ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x508]
mov dword [ebp - 4], ebx
call fcn.0043d1a7
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0043a97e
mov byte [ebp - 4], 1
mov dword [ebp - 0x73c], ebx
xor esi, esi
call fcn.0043b2c5
push eax
lea ecx, [ebp - 0x94]
call fcn.0043a97e
mov byte [ebp - 4], 2
call fcn.0043b2cb
mov ecx, eax
call fcn.0043a66a
test al, al
je 0x45fde3
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0043a6e6
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0043a556
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45fd8a
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043a53c
jmp 0x45ff6d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x45fd76
push esi
mov dword [ebp - 0x744], ebx
call fcn.004d44bd
pop ecx
push ebx
lea ecx, [ebp - 0x744]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x73c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], esi
je 0x45ff56
push dword [ebp - 0x73c]
call fcn.004d6406
pop ecx
mov dword [ebp - 0x73c], ebx
jmp 0x45fd76
call fcn.0043b2cb
push eax
lea ecx, [ebp - 0x94]
call fcn.0043a6e6
call fcn.0043b2d7
test al, al
je 0x45fe06
call fcn.0043b2dd
mov edi, eax
jmp 0x45fe6b
call fcn.0043b2d1
push eax
lea ecx, [ebp - 0x220]
call fcn.0043a97e
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0043a556
push eax
call fcn.0046b539
pop ecx
pop ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x94]
call fcn.0043a556
push eax
call fcn.00466b80
pop ecx
pop ecx
mov dword [ebp - 0x740], eax
cmp edi, ebx
je 0x45fe56
push edi
call fcn.004d6406
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0043a53c
mov edi, dword [ebp - 0x740]
cmp edi, ebx
je 0x45fd76
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x748], ebx
call fcn.0043a97e
push 0x50ab0c
push 0x50ab08
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0043aade
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0043a556
push eax
push edi
call fcn.004650fa
add esp, 0x14
test eax, eax
je 0x45fee1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0043a53c
jmp 0x45fd76
mov esi, dword [ebp - 0x50c]
cmp esi, ebx
je 0x45fecd
push esi
call fcn.004d44bd
push esi
push eax
push dword [ebp - 0x748]
mov dword [ebp - 0x73c], eax
push edi
call fcn.00466be7
add esp, 0x14
cmp eax, ebx
je 0x45ff37
cmp eax, 0x600
je 0x45ff37
push dword [ebp - 0x73c]
call fcn.004d6406
pop ecx
mov dword [ebp - 0x73c], ebx
call fcn.0043b2d7
test al, al
jne 0x45fecd
push edi
call fcn.00466c02
pop ecx
jmp 0x45fecd
call fcn.0043b2d7
test al, al
jne 0x45ff47
push edi
call fcn.00466c02
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0043a53c
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043a53c
cmp dword [ebp - 0x73c], ebx
jne 0x45ffe9
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.0043a556
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45ffe9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x45ffe9
push esi
mov dword [ebp - 0x740], ebx
call fcn.004d44bd
pop ecx
push ebx
lea ecx, [ebp - 0x740]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x73c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x740], esi
je 0x45ffe9
push dword [ebp - 0x73c]
call fcn.004d6406
pop ecx
mov dword [ebp - 0x73c], ebx
xor edi, edi
cmp dword [ebp - 0x73c], ebx
je 0x46000f
push esi
push dword [ebp - 0x73c]
call fcn.0045ea2c
push dword [ebp - 0x73c]
mov edi, eax
call fcn.004d6406
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.0043a53c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.0043b15f
mov eax, edi
call fcn.004d9ab2
ret