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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov eax, dword [ebp + 0x10]
add eax, 0x7ff
shr eax, 0xb
mov dword [ebp - 0x1c], eax
mov edx, dword [0x6e7380]
test edx, edx
je 0x45b278
imul eax, dword [ebp - 0x1c], 0x130
cdq
add dword [0x82657c], eax
adc dword [0x826580], edx
push dword [ebp + 8]
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push dword [ecx + 0x238]
push dword [0x6e7384]
call fcn.00476000
add esp, 0x10
jmp 0x45b59c
mov eax, dword [0x757cb0]
cmp eax, 0x930
jle 0x45b295
mov edx, dword [0x757cb0]
add edx, 0xfffff680
mov dword [ebp - 0x44], edx
jmp 0x45b2a4
mov ecx, dword [0x757cb0]
add ecx, 0xfffff6e0
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
cmp edx, 3
jne 0x45b2de
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov ecx, dword [ebp + 0xc]
add ecx, 0x124
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
jne 0x45b2e7
xor eax, eax
jmp 0x45b59c
mov edx, dword [0x757ca8]
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 0x45b33a
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45b33a
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
cmp edx, 3
jne 0x45b333
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45b59c
mov edx, dword [ebp + 0xc]
mov eax, 0x12000
mov ecx, dword [edx + 0xc]
cdq
idiv ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
imul edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
imul ecx, dword [ebp - 0x24], 0x930
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x238]
mov dword [ebp - 0x3c], edx
jmp 0x45b570
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp ecx, eax
jge 0x45b399
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
imul dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
imul edx, dword [ebp - 0x24], 0x930
mov dword [ebp - 0x28], edx
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x2c]
push 0x848c24
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x34], 0x848c24
mov dword [ebp - 0x30], 0x85ac24
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp edx, ecx
jge 0x45b4c2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jne 0x45b3f0
push 0x930
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call fcn.0066c7fc
add esp, 0xc
jmp 0x45b4a1
mov edx, dword [ebp - 0x44]
cmp edx, 4
jne 0x45b423
push 0xc
push 0x757c9c
push dword [ebp - 0x30]
call fcn.0066c7fc
add esp, 0xc
push 0x924
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
add ecx, 0xc
push ecx
call fcn.0066c7fc
add esp, 0xc
jmp 0x45b4a1
push 0xc
push 0x757c9c
push dword [ebp - 0x30]
call fcn.0066c7fc
add esp, 0xc
lea eax, [ebp - 0x37]
push eax
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
add edx, ecx
push edx
call fcn.004ac0e4
add esp, 8
movsx eax, byte [ebp - 0x37]
push eax
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x30]
mov byte [edx + 0xc], al
movsx ecx, byte [ebp - 0x36]
push ecx
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x30]
mov byte [edx + 0xd], al
movsx eax, byte [ebp - 0x35]
push eax
call fcn.004ac070
pop ecx
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0xe], al
mov eax, dword [ebp - 0x30]
mov byte [eax + 0xf], 2
push 0x920
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
add edx, ecx
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x10
push eax
call fcn.0066c7fc
add esp, 0xc
add dword [ebp - 0x30], 0x930
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
add dword [ebp - 0x34], ecx
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
cmp eax, edx
jl 0x45b3d0
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x28]
push 0x85ac24
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x28]
shl eax, 0xb
mov ecx, 0x930
cdq
idiv ecx
cdq
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x4c], eax
sub edx, 0x80000000
mov dword [ebp - 0x48], edx
fild qword [ebp - 0x4c]
fadd qword [0x45b5a0]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x54], eax
sub edx, 0x80000000
mov dword [ebp - 0x50], edx
fild qword [ebp - 0x54]
fadd qword [0x45b5a0]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov eax, dword [0x6f6920]
test eax, eax
je 0x45b564
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x45b560
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45b59c
mov edx, dword [ebp - 0x24]
sub dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x24]
add dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x45b585
mov edx, dword [0x6f6920]
test edx, edx
je 0x45b373
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x45b597
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret