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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578be8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x5eabd8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xac], ecx
cmp dword [ebp + 0x10], 0
je 0x45da1d
push 0
push 0x8000080
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 0xc]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea ecx, [ebp - 0x14]
call fcn.00413d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004368b0
cmp eax, 0xffffffff
je 0x45d9d3
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x45d87c
push 0x598c7e
lea ecx, [ebp - 0x74]
call fcn.00414a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
push ecx
push 7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0045f8e0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.0041c360
cmp dword [ebp - 0x18], 0
je 0x45d8b2
push 0x598c7f
lea ecx, [ebp - 0x78]
call fcn.00414a70
mov byte [ebp - 4], 2
lea eax, [ebp - 0x78]
push eax
push 4
push 0x208
call fcn.0045f8e0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0041c360
cmp dword [ebp - 0x24], 0
jne 0x45d8e8
push 0x598ca3
lea ecx, [ebp - 0x7c]
call fcn.00414a70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
push ecx
push 4
push 0x209
call fcn.0045f8e0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.0041c360
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
call fcn.00473c84
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0
mov dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d937
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov byte [edx], 0
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x84]
call fcn.00414a70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xac]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xac]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.0041c360
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.00473c8f
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x45d9d1
push 0x598ca9
lea ecx, [ebp - 0x8c]
call fcn.00414a70
mov byte [ebp - 4], 5
lea eax, [ebp - 0x8c]
push eax
push 4
push 0x20a
call fcn.0045f8e0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.0041c360
jmp 0x45da09
push 0x598caa
lea ecx, [ebp - 0x90]
call fcn.00414a70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
push ecx
push 7
push 0
call fcn.0045f8e0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.0041c360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041e530
jmp 0x45dd05
lea ecx, [ebp - 0x54]
call fcn.0047d3cf
mov dword [ebp - 4], 7
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x40]
call fcn.00460240
mov byte [ebp - 4], 8
lea edx, [ebp - 0x40]
push edx
push 0x4020
mov ecx, dword [ebp + 0xc]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x54]
call fcn.0047d3e7
test eax, eax
je 0x45dcb4
lea ecx, [ebp - 0x5c]
call fcn.00414a30
mov byte [ebp - 4], 9
push 0x1000
lea ecx, [ebp - 0x5c]
call fcn.00414d30
lea ecx, [ebp - 0x58]
call fcn.00414a30
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 8]
push eax
push str.FILENAME_08X
lea ecx, [ebp - 0x58]
push ecx
call fcn.00415480
add esp, 0xc
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x60], 0
je 0x45dbb2
lea ecx, [ebp - 0x68]
call fcn.00414a30
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x54]
call fcn.0047d8e9
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x58]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x68]
call fcn.00434e50
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x45db06
mov dword [ebp - 0x64], 1
jmp 0x45db42
cmp dword [ebp - 0x64], 0
je 0x45db42
push 0
push str.FILENAME
lea ecx, [ebp - 0x68]
call fcn.00436410
cmp eax, 0xffffffff
je 0x45db29
mov dword [ebp - 0x60], 0
jmp 0x45db42
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00417390
push 0x599284
lea ecx, [ebp - 0x5c]
call fcn.0041bc90
jmp 0x45db9a
mov dword [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
call fcn.0041c360
jmp 0x45daa8
cmp dword [ebp - 0x64], 0
je 0x45dc61
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00414a50
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xac]
mov eax, dword [edx + 0x38]
call eax
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x95], al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x9c]
call fcn.0041c360
movzx ecx, byte [ebp - 0x95]
test ecx, ecx
je 0x45dc5f
push 0x598cae
lea ecx, [ebp - 0xa0]
call fcn.00414a70
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0xa0]
push edx
push 4
push 0x20a
call fcn.0045f8e0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
call fcn.0041c360
jmp 0x45dc9a
push 0x598caf
lea ecx, [ebp - 0xa4]
call fcn.00414a70
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0xa4]
push eax
push 4
push 0x20b
call fcn.0045f8e0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa4]
call fcn.0041c360
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.0041c360
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
call fcn.0041c360
jmp 0x45dcea
push 0x598cd1
lea ecx, [ebp - 0xa8]
call fcn.00414a70
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0045f990
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa8]
call fcn.0041c360
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00460300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0047d7ce
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10