Function at 0x45e290
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7b8370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.0045ea10
mov eax, dword [esp + 0x48]
push 0x10
push 0x5622
xor ebx, ebx
push 2
push ebx
push eax
call fcn.00461c50
mov cl, byte [esp + 0x5c]
mov byte [esi + 0x28], al
mov byte [esp + 0x2c], cl
mov edi, 0x82be48
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00401b40
test al, al
je 0x45e32c
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x82be48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
cmp eax, ebx
je 0x45e4ef
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x45e349
mov eax, 0x7e5658
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45e386
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x45e373
mov eax, 0x7e5658
push eax
push 0x82be0c
call fcn.0045afa0
add esp, 8
jmp 0x45e4ef
lea ecx, [esp + 0x18]
push 0x82be04
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0040b4d0
add esp, 0xc
lea eax, [esp + 0x10]
mov byte [esp + 0x40], 1
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
cmp ebp, ebx
ja 0x45e3ea
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x45e3cc
mov eax, 0x7e5658
push eax
call fcn.007a3a37
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
push 1
call fcn.00404e60
jmp 0x45e4ef
push ebp
call fcn.007a2d8d
add esp, 4
lea ecx, [esp + 0x48]
mov esi, eax
mov dword [esp + 0x48], ebx
push ebx
push ecx
push ebp
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call ebx
push 0x1608
push 0x6081
push 0x816
push ebp
push esi
call fcn.00460b80
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
jne 0x45e437
mov eax, 0x7e5658
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
lea edx, [esp + 0x48]
push 0
push edx
mov edi, eax
push ebp
push esi
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
push edi
call ebx
push esi
call fcn.007a02e0
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x45e47b
mov eax, 0x7e5658
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
lea ecx, [eax + 4]
call fcn.0045f870
push esi
mov edi, eax
call ebx
test edi, edi
jne 0x45e4c7
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x45e4b9
mov eax, 0x7e5658
push eax
push 0x82bde0
call fcn.0045afa0
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x45e4d4
mov eax, 0x7e5658
push eax
call fcn.007a3a37
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
push 1
call fcn.00404e60
xor ebx, ebx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
cmp eax, ebx
mov dword [esp + 0x34], 0xffffffff
pop ebx
je 0x45e52f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x45e526
cmp al, 0xff
je 0x45e526
dec al
mov byte [ecx], al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4