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

Disassembly:
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax + 0x2c]
mov dword [rbp], eax
mov rax, qword [rbp + 0xc8]
mov rdx, qword [rbp + 0xc8]
mov ecx, dword [rbp]
imul ecx, dword [rdx + 0x110]
neg rcx
add rcx, qword [rax + 0x108]
mov qword [rbp + 0x38], rcx
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
mov edx, dword [rbp + 0x38]
lea rcx, [rbp + 0x3c]
mov ebx, 0
mov rsi, qword [sym.imp.orauts.dll_SetFilePointer]
mov qword [rbp + 0x60], rcx
mov rcx, rax
mov rax, qword [rbp + 0x60]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
mov rdx, qword [rbp + 0xc0]
mov rdx, qword [rdx + 0x38]
mov ecx, dword [rbp]
lea rbx, [rbp + 8]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.orauts.dll_ReadFile]
mov dword [rbp + 0x68], ecx
mov rcx, rax
mov eax, dword [rbp + 0x68]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x14000c2fe
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x14], eax
lea rax, str.Error_in_read_of_first_sector_error___d__n
mov edx, dword [rbp + 0x14]
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov eax, dword [rbp + 8]
mov edx, dword [rbp]
cmp eax, edx
je 0x14000c342
lea rax, str.Error_in_read_of_first_sector_size__d___read__d__n
mov edx, dword [rbp]
mov ecx, dword [rbp + 8]
mov dword [rbp + 0x70], ecx
mov rcx, rax
mov eax, dword [rbp + 0x70]
mov r8d, eax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 0x38]
mov qword [rbp + 0x40], rax
mov eax, 0xfffffffe
add eax, dword [rbp]
add rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movsx eax, byte [rax]
movsx rax, al
cmp eax, 0x55
jne 0x14000c54d
mov eax, 1
add rax, qword [rbp + 0x48]
movsx eax, byte [rax]
movsx rax, al
cmp eax, 0xffffffaa
jne 0x14000c54d
mov rax, qword [rbp + 0x40]
lea rdx, str.ORALINK
mov ecx, 7
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov qword [rbp + 0x78], rcx
mov rcx, rax
mov rax, qword [rbp + 0x78]
mov r8, rax
call rbx
mov qword [rbp + 0x50], rax
mov eax, 7
add rax, qword [rbp + 0x40]
mov rdx, qword [rbp + 0xc8]
mov ecx, 0x80
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov qword [rbp + 0x80], rcx
mov rcx, rax
mov rax, qword [rbp + 0x80]
mov r8, rax
call rbx
mov qword [rbp + 0x58], rax
mov eax, 0x87
add rax, qword [rbp + 0x40]
mov byte [rax], 0
mov rax, qword [rbp + 0xc8]
mov rdx, qword [rbp + 0xc8]
mov ecx, dword [rbp]
imul ecx, dword [rdx + 0x110]
neg rcx
add rcx, qword [rax + 0x108]
mov qword [rbp + 0x38], rcx
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
mov edx, dword [rbp + 0x38]
lea rcx, [rbp + 0x3c]
mov ebx, 0
mov rsi, qword [sym.imp.orauts.dll_SetFilePointer]
mov qword [rbp + 0x88], rcx
mov rcx, rax
mov rax, qword [rbp + 0x88]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x18], eax
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
mov rdx, qword [rbp + 0xc0]
mov rdx, qword [rdx + 0x38]
mov ecx, dword [rbp]
lea rbx, [rbp + 0x1c]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.orauts.dll_WriteFile]
mov dword [rbp + 0x90], ecx
mov rcx, rax
mov eax, dword [rbp + 0x90]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x14000c4e7
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x24], eax
lea rax, str.Error_in_Write_of_first_sector_error___d__n
mov edx, dword [rbp + 0x24]
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov eax, dword [rbp + 0x1c]
mov edx, dword [rbp]
cmp eax, edx
je 0x14000c531
lea rax, str.Error_in_write_of_first_sector_size__d___write__d__n
mov edx, dword [rbp]
mov ecx, dword [rbp + 0x1c]
mov dword [rbp + 0x98], ecx
mov rcx, rax
mov eax, dword [rbp + 0x98]
mov r8d, eax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov eax, 1
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov eax, 0
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0xb0]
pop rbp
ret