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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov eax, dword [ebp + 0x10]
add eax, 0x7ff
shr eax, 0xb
mov dword [ebp - 0x1c], eax
mov edx, dword [0x6ebc48]
test edx, edx
je 0x45bcac
push dword [ebp + 8]
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push dword [ecx + 0x238]
push dword [0x6ebc4c]
call fcn.0047675c
add esp, 0x10
jmp 0x45bf55
mov eax, dword [0x760dbc]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
cmp edx, 0x930
jle 0x45bcc3
sub dword [ebp - 0x44], 0x60
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x930
jne 0x45bcd7
mov dword [ebp - 0x48], 0x18
jmp 0x45bcf6
mov eax, dword [ebp - 0x44]
cmp eax, 0x920
jne 0x45bcea
mov dword [ebp - 0x48], 8
jmp 0x45bcf6
mov edx, dword [ebp - 0x44]
add edx, 0xfffff6ec
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x45bd30
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov edx, dword [ebp + 0xc]
add edx, 0x124
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xffffffff
jne 0x45bd39
xor eax, eax
jmp 0x45bf55
mov edx, dword [0x760db4]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x228]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x22c]
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 4]
push edx
push dword [ebp - 8]
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, 0xffffffff
jne 0x45bd8c
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45bd8c
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
cmp edx, 3
jne 0x45bd85
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45bf55
mov edx, dword [ebp + 0xc]
mov eax, 0x12000
mov ecx, dword [edx + 0xc]
cdq
idiv ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
imul edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
imul ecx, dword [ebp - 0x28], 0x914
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x238]
mov dword [ebp - 0x3c], edx
jmp 0x45bf29
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jge 0x45bdeb
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
imul dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
imul edx, dword [ebp - 0x28], 0x914
mov dword [ebp - 0x2c], edx
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x30]
push 0x8565f8
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x38], 0x8565f8
mov dword [ebp - 0x34], 0x8685f8
xor eax, eax
mov dword [ebp - 0x4c], eax
xor edx, edx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jge 0x45be6f
push 0x914
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x48]
add edx, ecx
push edx
push dword [ebp - 0x34]
call fcn.0066cc18
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
and edx, 0xffffff
cmp edx, 0x10000
jne 0x45be59
inc dword [ebp - 0x4c]
add dword [ebp - 0x34], 0x914
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
add dword [ebp - 0x38], eax
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jl 0x45be23
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x45be91
push 0
lea edx, [ebp - 0x18]
push edx
imul ecx, dword [ebp - 0x4c], 0x914
push ecx
push 0x8685f8
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x2c]
shl eax, 0xb
mov ecx, 0x930
cdq
idiv ecx
cdq
add dword [0x833f58], eax
adc dword [0x833f5c], edx
mov eax, dword [0x833f58]
mov edx, dword [0x833f5c]
mov dword [ebp - 0x54], eax
sub edx, 0x80000000
mov dword [ebp - 0x50], edx
fild qword [ebp - 0x54]
fadd qword [0x45bf5c]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x5c], eax
sub edx, 0x80000000
mov dword [ebp - 0x58], edx
fild qword [ebp - 0x5c]
fadd qword [0x45bf5c]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
mov eax, dword [0x6fb15c]
test eax, eax
je 0x45bf1d
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x45bf19
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45bf55
mov edx, dword [ebp - 0x28]
sub dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x28]
add dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x45bf3e
mov edx, dword [0x6fb15c]
test edx, edx
je 0x45bdc5
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x45bf50
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret