Function at 0x1400c1d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, qword [rbp + 0xb0]
mov r15, qword [rbp + 0xb8]
mov r12, qword [rbp + 0xc0]
mov r13, qword [rbp + 0xc8]
mov rdx, qword [rbp + 0xd0]
mov rcx, r14
call fcn.1400c1a20
mov rdi, qword [r14]
lea rdx, str.history
mov rcx, rdi
call fcn.140042350
mov rbx, rax
xor esi, esi
test rax, rax
jne 0x1400c1e89
lea rcx, [rdi + 0x60]
lea edx, [rax + 0x60]
call fcn.1400424d0
mov rbx, rax
test rax, rax
je 0x1400c1e2e
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x20], rsi
mov dword [rax + 0x28], 1
mov qword [rax + 0x30], rsi
mov qword [rax + 0x40], rsi
jmp 0x1400c1e31
mov rbx, rsi
lea rcx, str.history
mov rax, rcx
cmp word [str.history], si
je 0x1400c1e4d
add rax, 2
cmp word [rax], si
jne 0x1400c1e44
mov qword [rbx], rcx
sub rax, rcx
sar rax, 1
mov qword [rbx + 0x10], rax
mov rcx, qword [r14]
cmp qword [rcx + 0x30], rsi
je 0x1400c1e75
mov rax, qword [rcx + 0x38]
mov qword [rbx + 0x50], rax
mov rax, qword [rcx + 0x38]
mov qword [rax + 0x58], rbx
jmp 0x1400c1e7d
mov qword [rbx + 0x50], rsi
mov qword [rcx + 0x30], rbx
mov qword [rcx + 0x38], rbx
mov qword [rbx + 0x20], rcx
mov qword [rbx + 0x58], rsi
mov rdx, qword [r12]
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rsi
mov word [rbp - 0x50], si
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x50]
call fcn.14001a580
nop
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.1400c1770
mov rsi, rax
cmp qword [rbp - 0x38], 8
jb 0x1400c1ed9
mov rcx, qword [rbp - 0x50]
call fcn.14005e094
mov qword [rbp - 0x38], 7
xor edi, edi
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
test rsi, rsi
jne 0x1400c2029
mov rcx, qword [r14]
add rcx, 0x60
lea edx, [rdi + 0x60]
call fcn.1400424d0
mov rsi, rax
test rax, rax
je 0x1400c1f27
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x28], 1
mov qword [rax + 0x30], rdi
mov qword [rax + 0x40], rdi
jmp 0x1400c1f2a
mov rsi, rdi
lea rcx, [0x14011f630]
mov rax, rcx
cmp word [0x14011f630], di
je 0x1400c1f49
nop dword [rax]
add rax, 2
cmp word [rax], di
jne 0x1400c1f40
mov qword [rsi], rcx
sub rax, rcx
sar rax, 1
mov qword [rsi + 0x10], rax
mov rdi, qword [r12]
mov rcx, qword [r14]
add rcx, 0x60
mov edx, 0x38
call fcn.1400424d0
mov rdx, rax
xor r12d, r12d
test rax, rax
je 0x1400c1f83
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
jmp 0x1400c1f86
mov rdx, r12
lea rcx, [0x14011f698]
mov rax, rcx
add rax, 2
cmp word [rax], 0
jne 0x1400c1f90
mov qword [rdx], rcx
sub rax, rcx
sar rax, 1
mov qword [rdx + 0x10], rax
test rdi, rdi
je 0x1400c1fcd
mov rax, rdi
cmp word [rdi], 0
je 0x1400c1fbf
add rax, 2
cmp word [rax], 0
jne 0x1400c1fb5
mov qword [rdx + 8], rdi
sub rax, rdi
sar rax, 1
mov qword [rdx + 0x18], rax
cmp qword [rsi + 0x40], 0
je 0x1400c1fe6
mov rax, qword [rsi + 0x48]
mov qword [rdx + 0x28], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x30], rdx
jmp 0x1400c1fee
mov qword [rdx + 0x28], r12
mov qword [rsi + 0x40], rdx
mov qword [rsi + 0x48], rdx
mov qword [rdx + 0x20], rsi
mov qword [rdx + 0x30], r12
cmp qword [rbx + 0x30], 0
je 0x1400c2013
mov rax, qword [rbx + 0x38]
mov qword [rsi + 0x50], rax
mov rax, qword [rbx + 0x38]
mov qword [rax + 0x58], rsi
jmp 0x1400c201b
mov qword [rsi + 0x50], r12
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], rsi
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x58], r12
jmp 0x1400c202c
xor r12d, r12d
mov r8, rsi
mov rdx, r13
mov rcx, r14
call fcn.1400c1390
mov rbx, rax
mov rdx, qword [r13]
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], r12
mov word [rbp + 0x28], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x28]
call fcn.14001a580
nop
test rbx, rbx
jne 0x1400c21b7
mov rcx, qword [r14]
add rcx, 0x60
lea edx, [rbx + 0x60]
call fcn.1400424d0
mov rbx, rax
test rax, rax
je 0x1400c20ab
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
mov dword [rax + 0x28], 1
mov qword [rax + 0x30], r12
mov qword [rax + 0x40], r12
jmp 0x1400c20ae
mov rbx, r12
lea rcx, str.drive
mov rax, rcx
cmp word [str.drive], 0
je 0x1400c20cc
add rax, 2
cmp word [rax], 0
jne 0x1400c20c2
mov qword [rbx], rcx
sub rax, rcx
sar rax, 1
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rdi, qword [rbp + 0x28]
mov rcx, qword [r14]
add rcx, 0x60
mov edx, 0x38
call fcn.1400424d0
mov rdx, rax
test rax, rax
je 0x1400c210d
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
jmp 0x1400c2110
mov rdx, r12
lea rcx, [0x14011f6a8]
mov rax, rcx
nop word [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x1400c2120
mov qword [rdx], rcx
sub rax, rcx
sar rax, 1
mov qword [rdx + 0x10], rax
test rdi, rdi
je 0x1400c215d
mov rax, rdi
cmp word [rdi], 0
je 0x1400c214f
add rax, 2
cmp word [rax], 0
jne 0x1400c2145
mov qword [rdx + 8], rdi
sub rax, rdi
sar rax, 1
mov qword [rdx + 0x18], rax
cmp qword [rbx + 0x40], 0
je 0x1400c2176
mov rax, qword [rbx + 0x48]
mov qword [rdx + 0x28], rax
mov rax, qword [rbx + 0x48]
mov qword [rax + 0x30], rdx
jmp 0x1400c217e
mov qword [rdx + 0x28], r12
mov qword [rbx + 0x40], rdx
mov qword [rbx + 0x48], rdx
mov qword [rdx + 0x20], rbx
mov qword [rdx + 0x30], r12
cmp qword [rsi + 0x30], 0
je 0x1400c21a3
mov rax, qword [rsi + 0x38]
mov qword [rbx + 0x50], rax
mov rax, qword [rsi + 0x38]
mov qword [rax + 0x58], rbx
jmp 0x1400c21ab
mov qword [rbx + 0x50], r12
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rbx
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x58], r12
mov rcx, qword [r14]
add rcx, 0x60
mov edx, 0x60
call fcn.1400424d0
mov rsi, rax
test rax, rax
je 0x1400c21ec
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
mov dword [rax + 0x28], 1
mov qword [rax + 0x30], r12
mov qword [rax + 0x40], r12
jmp 0x1400c21ef
mov rsi, r12
lea rcx, str.event
mov rax, rcx
cmp word [str.event], 0
je 0x1400c220d
add rax, 2
cmp word [rax], 0
jne 0x1400c2203
mov qword [rsi], rcx
sub rax, rcx
sar rax, 1
mov qword [rsi + 0x10], rax
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x1400c2231
mov qword [rsi + 0x58], rax
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x50], rsi
jmp 0x1400c2239
mov qword [rsi + 0x58], r12
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x30], rsi
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x50], r12
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
mov rcx, qword [r14]
add rcx, 0x60
mov edx, 0x60
call fcn.1400424d0
mov rdi, rax
test rax, rax
je 0x1400c228e
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
mov dword [rax + 0x28], 1
mov qword [rax + 0x30], r12
mov qword [rax + 0x40], r12
jmp 0x1400c2291
mov rdi, r12
lea rcx, str.startTime
mov rax, rcx
cmp word [str.startTime], 0
je 0x1400c22af
add rax, 2
cmp word [rax], 0
jne 0x1400c22a5
mov qword [rdi], rcx
sub rax, rcx
sar rax, 1
mov qword [rdi + 0x10], rax
mov eax, dword [r15]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x44], eax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.1400429a0
mov rbx, rax
lea rax, [rsp + 0x60]
cmp rax, rbx
je 0x1400c2351
cmp qword [rsp + 0x78], 8
jb 0x1400c22f8
mov rcx, qword [rsp + 0x60]
call fcn.14005e094
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
cmp qword [rbx + 0x18], 8
jae 0x1400c232c
mov r8, qword [rbx + 0x10]
inc r8
add r8, r8
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14005e960
jmp 0x1400c2337
mov rax, qword [rbx]
mov qword [rsp + 0x60], rax
mov qword [rbx], r12
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x78], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
cmp qword [rbp - 0x38], 8
jb 0x1400c2361
mov rcx, qword [rbp - 0x50]
call fcn.14005e094
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rbx, qword [rsp + 0x60]
mov rcx, qword [r14]
add rcx, 0x60
mov edx, 0x38
call fcn.1400424d0
mov r11, rax
test rax, rax
je 0x1400c2398
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
jmp 0x1400c239b
mov r11, r12
lea rcx, [0x14011f6b8]
mov rax, rcx
add rax, 2
cmp word [rax], 0
jne 0x1400c23a5
mov qword [r11], rcx
sub rax, rcx
sar rax, 1
mov qword [r11 + 0x10], rax
test rbx, rbx
je 0x1400c23e8
mov rax, rbx
cmp word [rbx], 0
je 0x1400c23da
nop word [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x1400c23d0
mov qword [r11 + 8], rbx
sub rax, rbx
sar rax, 1
mov qword [r11 + 0x18], rax
cmp qword [rdi + 0x40], 0
je 0x1400c2401
mov rax, qword [rdi + 0x48]
mov qword [r11 + 0x28], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x30], r11
jmp 0x1400c2409
mov qword [r11 + 0x28], r12
mov qword [rdi + 0x40], r11
mov qword [rdi + 0x48], r11
mov qword [r11 + 0x20], rdi
mov qword [r11 + 0x30], r12
cmp qword [rsi + 0x30], 0
je 0x1400c242e
mov rax, qword [rsi + 0x38]
mov qword [rdi + 0x50], rax
mov rax, qword [rsi + 0x38]
mov qword [rax + 0x58], rdi
jmp 0x1400c2436
mov qword [rdi + 0x50], r12
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], rdi
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x58], r12
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
cmp dword [r15 + 0x10], 0
jne 0x1400c2642
mov rcx, qword [r14]
add rcx, 0x60
mov edx, 0x60
call fcn.1400424d0
mov rdi, rax
test rax, rax
je 0x1400c2493
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
mov dword [rax + 0x28], 1
mov qword [rax + 0x30], r12
mov qword [rax + 0x40], r12
jmp 0x1400c2496
mov rdi, r12
lea rcx, str.finishTime
mov rax, rcx
cmp word [str.finishTime], 0
je 0x1400c24ba
nop word [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x1400c24b0
mov qword [rdi], rcx
sub rax, rcx
sar rax, 1
mov qword [rdi + 0x10], rax
mov eax, dword [r15 + 8]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0xc]
mov dword [rsp + 0x44], eax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.1400429a0
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x1400c2553
cmp qword [rbp - 0x60], 8
jb 0x1400c2501
mov rcx, qword [rbp - 0x78]
call fcn.14005e094
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
cmp qword [rbx + 0x18], 8
jae 0x1400c2531
mov r8, qword [rbx + 0x10]
inc r8
add r8, r8
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.14005e960
jmp 0x1400c253b
mov rax, qword [rbx]
mov qword [rbp - 0x78], rax
mov qword [rbx], r12
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x68], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x60], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
cmp qword [rbp - 0x38], 8
jb 0x1400c2563
mov rcx, qword [rbp - 0x50]
call fcn.14005e094
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rbx, qword [rbp - 0x78]
mov rcx, qword [r14]
add rcx, 0x60
mov edx, 0x38
call fcn.1400424d0
mov r11, rax
test rax, rax
je 0x1400c2597
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x20], r12
jmp 0x1400c259a
mov r11, r12
lea rcx, [0x14011f6c8]
mov rax, rcx
add rax, 2
cmp word [rax], 0
jne 0x1400c25a4
mov qword [r11], rcx
sub rax, rcx
sar rax, 1
mov qword [r11 + 0x10], rax
test rbx, rbx
je 0x1400c25e8
mov rax, rbx
cmp word [rbx], 0
je 0x1400c25da
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x1400c25d0
mov qword [r11 + 8], rbx
sub rax, rbx
sar rax, 1
mov qword [r11 + 0x18], rax
cmp qword [rdi + 0x40], 0
je 0x1400c2601
mov rax, qword [rdi + 0x48]
mov qword [r11 + 0x28], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x30], r11
jmp 0x1400c2609
mov qword [r11 + 0x28], r12
mov qword [rdi + 0x40], r11
mov qword [rdi + 0x48], r11
mov qword [r11 + 0x20], rdi
mov qword [r11 + 0x30], r12
cmp qword [rsi + 0x30], 0
je 0x1400c262e
mov rax, qword [rsi + 0x38]
mov qword [rdi + 0x50], rax
mov rax, qword [rsi + 0x38]
mov qword [rax + 0x58], rdi
jmp 0x1400c2636
mov qword [rdi + 0x50], r12
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], rdi
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x58], r12
lea rdx, [r14 + 0x38]
lea r8, [0x140116274]
lea rcx, [rbp - 0x50]
call fcn.140042620
nop
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140042700
nop
cmp qword [rbp - 0x38], 8
jb 0x1400c2674
mov rcx, qword [rbp - 0x50]
call fcn.14005e094
mov rdi, r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400c2756
call fcn.14001d660
test eax, eax
je 0x1400c275e
cmp eax, 0xb7
je 0x1400c275e
cmp qword [rbp - 0x10], 8
jb 0x1400c26e7
mov rcx, qword [rbp - 0x28]
call fcn.14005e094
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
cmp qword [rbp - 0x60], 8
jb 0x1400c2708
mov rcx, qword [rbp - 0x78]
call fcn.14005e094
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
cmp qword [rsp + 0x78], 8
jb 0x1400c272b
mov rcx, qword [rsp + 0x60]
call fcn.14005e094
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
cmp qword [rbp + 0x40], 8
jb 0x1400c274f
mov rcx, qword [rbp + 0x28]
call fcn.14005e094
xor al, al
jmp 0x1400c2864
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r12
mov word [rbp], r12w
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8, qword [r14]
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call fcn.140042cb0
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
mov r8d, dword [rbp + 0x10]
add r8d, r8d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400c27ba
call fcn.14001d660
nop
cmp qword [rbp + 0x18], 8
jb 0x1400c27ca
mov rcx, qword [rbp]
call fcn.14005e094
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r12
mov word [rbp], r12w
test rdi, rdi
je 0x1400c27ea
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x10], 8
jb 0x1400c27fa
mov rcx, qword [rbp - 0x28]
call fcn.14005e094
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
cmp qword [rbp - 0x60], 8
jb 0x1400c281b
mov rcx, qword [rbp - 0x78]
call fcn.14005e094
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
cmp qword [rsp + 0x78], 8
jb 0x1400c283e
mov rcx, qword [rsp + 0x60]
call fcn.14005e094
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
cmp qword [rbp + 0x40], 8
jb 0x1400c2862
mov rcx, qword [rbp + 0x28]
call fcn.14005e094
mov al, 1
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14005e0b0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret