Function at 0x45a4a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 0x30], 0x848c24
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov edx, dword [0x6e7380]
test edx, edx
jne 0x45a4fd
mov ecx, dword [0x757cc8]
test ecx, ecx
jne 0x45a4fd
mov eax, dword [0x757ccc]
test eax, eax
jne 0x45a4fd
mov edx, dword [0x9398a0]
test edx, edx
jne 0x45a4fd
mov ecx, dword [0x9398a4]
test ecx, ecx
jne 0x45a4fd
mov eax, dword [0x757d34]
test eax, eax
jne 0x45a4fd
mov edx, dword [0x6f6a8c]
test edx, edx
je 0x45a504
xor eax, eax
jmp 0x45a6ad
mov edx, dword [0x757cb0]
cmp edx, 0x800
je 0x45a519
xor eax, eax
jmp 0x45a6ad
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x800
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.006744e4
push edx
push eax
mov eax, dword [0x757cc0]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [0x93c49c], ecx
mov eax, dword [ebp - 8]
mov dword [0x93c4a0], eax
push 0
push 0x93c4a0
push dword [0x93c49c]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, 0xffffffff
jne 0x45a58e
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45a58e
xor eax, eax
jmp 0x45a6ad
mov dword [ebp - 0x28], 0x24
mov edx, dword [ebp - 0x28]
shl edx, 0xb
mov dword [ebp - 0x2c], edx
jmp 0x45a68a
mov eax, dword [ebp - 0x2c]
xor edx, edx
cmp edx, dword [ebp - 0x34]
jne 0x45a5b4
cmp eax, dword [ebp - 0x38]
jbe 0x45a5be
jmp 0x45a5b6
jle 0x45a5be
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
jmp 0x45a5c4
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp eax, edx
je 0x45a5e9
xor eax, eax
jmp 0x45a6ad
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_WriteFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x45a60e
xor eax, eax
jmp 0x45a6ad
mov eax, dword [ebp - 0x14]
xor edx, edx
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x40], eax
sub edx, 0x80000000
mov dword [ebp - 0x3c], edx
fild qword [ebp - 0x40]
fadd qword [0x45a6b4]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x48], eax
sub edx, 0x80000000
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
fadd qword [0x45a6b4]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x45a67f
xor eax, eax
jmp 0x45a6ad
mov eax, dword [ebp - 0x14]
xor edx, edx
sub dword [ebp - 0x38], eax
sbb dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x45a698
cmp dword [ebp - 0x38], 0
jbe 0x45a6a8
jmp 0x45a69a
jle 0x45a6a8
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x45a5a3
mov eax, 1
mov esp, ebp
pop ebp
ret