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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 0x30], 0x8565f8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov edx, dword [0x6ebc48]
test edx, edx
jne 0x45a7e5
mov ecx, dword [0x760dd4]
test ecx, ecx
jne 0x45a7e5
mov eax, dword [0x760dd8]
test eax, eax
jne 0x45a7e5
mov edx, dword [0x947274]
test edx, edx
jne 0x45a7e5
mov ecx, dword [0x947278]
test ecx, ecx
jne 0x45a7e5
mov eax, dword [0x760e40]
test eax, eax
jne 0x45a7e5
mov edx, dword [0x6fb2c8]
test edx, edx
je 0x45a7ec
xor eax, eax
jmp 0x45a995
mov edx, dword [0x760dbc]
cmp edx, 0x800
je 0x45a801
xor eax, eax
jmp 0x45a995
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.00674900
push edx
push eax
mov eax, dword [0x760dcc]
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 [0x949e70], ecx
mov eax, dword [ebp - 8]
mov dword [0x949e74], eax
push 0
push 0x949e74
push dword [0x949e70]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, 0xffffffff
jne 0x45a876
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45a876
xor eax, eax
jmp 0x45a995
mov dword [ebp - 0x28], 0x24
mov edx, dword [ebp - 0x28]
shl edx, 0xb
mov dword [ebp - 0x2c], edx
jmp 0x45a972
mov eax, dword [ebp - 0x2c]
xor edx, edx
cmp edx, dword [ebp - 0x34]
jne 0x45a89c
cmp eax, dword [ebp - 0x38]
jbe 0x45a8a6
jmp 0x45a89e
jle 0x45a8a6
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
jmp 0x45a8ac
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 0x45a8d1
xor eax, eax
jmp 0x45a995
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 0x45a8f6
xor eax, eax
jmp 0x45a995
mov eax, dword [ebp - 0x14]
xor edx, edx
add dword [0x833f58], eax
adc dword [0x833f5c], edx
mov eax, dword [0x833f58]
mov edx, dword [0x833f5c]
mov dword [ebp - 0x40], eax
sub edx, 0x80000000
mov dword [ebp - 0x3c], edx
fild qword [ebp - 0x40]
fadd qword [0x45a99c]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x48], eax
sub edx, 0x80000000
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
fadd qword [0x45a99c]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
mov ecx, dword [0x6fb15c]
test ecx, ecx
je 0x45a967
xor eax, eax
jmp 0x45a995
mov eax, dword [ebp - 0x14]
xor edx, edx
sub dword [ebp - 0x38], eax
sbb dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x45a980
cmp dword [ebp - 0x38], 0
jbe 0x45a990
jmp 0x45a982
jle 0x45a990
mov ecx, dword [0x6fb15c]
test ecx, ecx
je 0x45a88b
mov eax, 1
mov esp, ebp
pop ebp
ret