Function at 0x14000c716
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xf0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xa8], rbx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0xd0], rcx
mov dword [rbp], 0
mov rax, qword [rbp + 0xd0]
mov eax, dword [rax + 0x2c]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0xd0]
mov eax, dword [rax + 0x24]
imul eax, dword [rbp + 4]
imul eax, eax, 2
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
call rdx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
test rax, rax
jne 0x14000c7a4
mov eax, 0
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
lea rsp, [rbp + 0xc0]
pop rbp
ret
mov rax, qword [rbp + 0x50]
mov edx, 0
mov ecx, dword [rbp + 8]
mov qword [rbp + 0x70], rcx
mov rcx, rax
mov rax, qword [rbp + 0x70]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], 0
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov edx, dword [rbp + 0x60]
lea rcx, [rbp + 0x64]
mov ebx, 0
mov rsi, qword [sym.imp.orauts.dll_SetFilePointer]
mov qword [rbp + 0x78], rcx
mov rcx, rax
mov rax, qword [rbp + 0x78]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0xc], eax
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 8]
lea rbx, [rbp]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.orauts.dll_WriteFile]
mov dword [rbp + 0x80], ecx
mov rcx, rax
mov eax, dword [rbp + 0x80]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
test eax, eax
jne 0x14000c8ba
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x18], eax
lea rax, str.Error_in_Write_of_first_sector_error___d__n
mov edx, dword [rbp + 0x18]
mov rcx, rax
call fcn.14000f4d8
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x1c], eax
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14000c89e
mov rax, qword [rbp + 0x50]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
lea rsp, [rbp + 0xc0]
pop rbp
ret
mov eax, dword [rbp]
mov edx, dword [rbp + 8]
cmp eax, edx
je 0x14000c936
lea rax, str.Error_in_write_of_first_sector_size__d___write__d__n
mov edx, dword [rbp + 8]
mov ecx, dword [rbp]
mov dword [rbp + 0x88], ecx
mov rcx, rax
mov eax, dword [rbp + 0x88]
mov r8d, eax
call fcn.14000f4d8
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14000c91a
mov rax, qword [rbp + 0x50]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
lea rsp, [rbp + 0xc0]
pop rbp
ret
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax + 0x48]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
test rax, rax
jne 0x14000c983
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14000c967
mov rax, qword [rbp + 0x50]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
lea rsp, [rbp + 0xc0]
pop rbp
ret
mov rax, qword [rbp + 0xd0]
mov eax, dword [rax + 0x2c]
mov dword [rbp + 4], eax
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x24]
mov rdx, qword [rbp + 0xd0]
mov edx, dword [rdx + 8]
cmp eax, edx
jb 0x14000c9c7
jmp 0x14000cb66
mov eax, 1
add eax, dword [rbp + 0x24]
mov dword [rbp + 0x24], eax
mov eax, 0x630
add rax, qword [rbp + 0x68]
mov qword [rbp + 0x68], rax
jmp 0x14000c997
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x100]
test eax, eax
je 0x14000c9ad
mov rax, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x68]
mov ecx, dword [rbp + 4]
imul ecx, dword [rdx + 0x110]
neg rcx
add rcx, qword [rax + 0x108]
mov qword [rbp + 0x60], rcx
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov edx, dword [rbp + 0x60]
lea rcx, [rbp + 0x64]
mov ebx, 0
mov rsi, qword [sym.imp.orauts.dll_SetFilePointer]
mov qword [rbp + 0x90], rcx
mov rcx, rax
mov rax, qword [rbp + 0x90]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 8]
lea rbx, [rbp]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.orauts.dll_WriteFile]
mov dword [rbp + 0x98], ecx
mov rcx, rax
mov eax, dword [rbp + 0x98]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
test eax, eax
jne 0x14000cae6
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x30], eax
lea rax, str.Error_in_Write_of_first_sector_error___d__n
mov edx, dword [rbp + 0x30]
mov rcx, rax
call fcn.14000f4d8
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14000caca
mov rax, qword [rbp + 0x50]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
lea rsp, [rbp + 0xc0]
pop rbp
ret
mov eax, dword [rbp]
mov edx, dword [rbp + 8]
cmp eax, edx
je 0x14000c9ad
lea rax, str.Error_in_write_of_first_sector_size__d___write__d__n
mov edx, dword [rbp + 8]
mov ecx, dword [rbp]
mov dword [rbp + 0xa0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xa0]
mov r8d, eax
call fcn.14000f4d8
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x38], eax
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14000cb4a
mov rax, qword [rbp + 0x50]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
lea rsp, [rbp + 0xc0]
pop rbp
ret
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14000cb7f
mov rax, qword [rbp + 0x50]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 1
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
lea rsp, [rbp + 0xc0]
pop rbp
ret