Function at 0x140006c90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x30
mov rax, qword [rcx + 0xa8]
mov rbx, rcx
test rax, rax
je 0x140006ce0
cmp byte [rcx + 1], 0
je 0x140006ce0
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140006ce0
mov rcx, rdi
call fcn.140021510
mov rax, qword [0x140064390]
test rax, rax
je 0x140006cd7
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rbx + 0xa8], r12
cmp byte [rbx], r12b
je 0x140007413
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp byte [rbx + 0x3029], r12b
je 0x140006d78
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140006d78
mov rsi, qword [0x140064390]
lea rcx, [rsp + 0x50]
mov qword [0x140064390], rbx
mov dword [rbx + 0x302c], r12d
mov qword [rsp + 0x50], r12
call fcn.140014310
lea rdx, [0x14002fff4]
mov rcx, rdi
mov rbp, rax
call fcn.140002a10
mov rdi, rax
test rax, rax
je 0x140006d71
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 1]
mov r9, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x140064390], rsi
mov edx, 6
mov rcx, rbx
call fcn.1400048b0
mov eax, dword [rbx + 0x1a30]
mov r15d, r12d
test eax, eax
jle 0x140006f29
mov qword [rsp + 0x28], r14
mov r14, r12
nop
test r14, r14
js 0x140006daa
cmp r15d, eax
jl 0x140006dc4
mov r8d, 0x577
lea rdx, [0x14002d490]
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x1a38]
mov rsi, qword [rax + r14*8]
test rsi, rsi
je 0x140006f0f
lea rbp, [rsi + 0x2d8]
cmp qword [rsi + 0x2d0], rbp
je 0x140006e02
mov r8d, 0xb1c
lea rdx, [0x14002d590]
lea rcx, str.DrawList__DrawListInst
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140006e22
mov rax, qword [0x140064390]
test rax, rax
je 0x140006e1c
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsi + 0x2b8]
mov edi, r12d
test eax, eax
je 0x140006e74
nop
test edi, edi
js 0x140006e38
cmp edi, eax
jl 0x140006e52
mov r8d, 0x577
lea rdx, [0x14002d490]
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rsi + 0x2c0]
call fcn.1400042b0
mov eax, dword [rsi + 0x2b8]
inc edi
cmp edi, eax
jne 0x140006e30
mov rcx, rbp
call fcn.140001010
mov rcx, qword [rsi + 0x2c0]
test rcx, rcx
je 0x140006ea0
mov rax, qword [0x140064390]
test rax, rax
je 0x140006e9a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0x2b0]
test rcx, rcx
je 0x140006ec4
mov rax, qword [0x140064390]
test rax, rax
je 0x140006ebe
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsi + 0xd8]
call fcn.1400041e0
mov rcx, qword [rsi + 0xd0]
test rcx, rcx
je 0x140006ef4
mov rax, qword [0x140064390]
test rax, rax
je 0x140006eee
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140064390]
test rax, rax
je 0x140006f06
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x1a30]
inc r15d
inc r14
cmp r15d, eax
jl 0x140006da0
mov r14, qword [rsp + 0x28]
mov rcx, qword [rbx + 0x1a38]
mov r15, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140006f6a
mov rax, qword [0x140064390]
mov qword [rbx + 0x1a30], r12
test rax, rax
je 0x140006f5d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a38], r12
mov rcx, qword [rbx + 0x1a48]
test rcx, rcx
je 0x140006f9c
mov rax, qword [0x140064390]
mov qword [rbx + 0x1a40], r12
test rax, rax
je 0x140006f8f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a48], r12
mov rcx, qword [rbx + 0x1a58]
test rcx, rcx
je 0x140006fce
mov rax, qword [0x140064390]
mov qword [rbx + 0x1a50], r12
test rax, rax
je 0x140006fc1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a58], r12
mov qword [rbx + 0x1a88], r12
mov rcx, qword [rbx + 0x1a68]
test rcx, rcx
je 0x140007007
mov rax, qword [0x140064390]
mov qword [rbx + 0x1a60], r12
test rax, rax
je 0x140006ffa
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a68], r12
mov rcx, qword [rbx + 0x1a78]
test rcx, rcx
je 0x140007039
mov rax, qword [0x140064390]
mov qword [rbx + 0x1a70], r12
test rax, rax
je 0x14000702c
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a78], r12
mov qword [rbx + 0x1c08], r12
mov qword [rbx + 0x1aa0], r12
mov qword [rbx + 0x1a98], r12
mov qword [rbx + 0x1a90], r12
mov qword [rbx + 0x1b20], r12
mov qword [rbx + 0x1b08], r12
mov qword [rbx + 0x1aa8], r12
mov rcx, qword [rbx + 0x1bc0]
test rcx, rcx
je 0x14000709c
mov rax, qword [0x140064390]
mov qword [rbx + 0x1bb8], r12
test rax, rax
je 0x14000708f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bc0], r12
mov rcx, qword [rbx + 0x1bd0]
test rcx, rcx
je 0x1400070ce
mov rax, qword [0x140064390]
mov qword [rbx + 0x1bc8], r12
test rax, rax
je 0x1400070c1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bd0], r12
mov rcx, qword [rbx + 0x1be0]
test rcx, rcx
je 0x140007100
mov rax, qword [0x140064390]
mov qword [rbx + 0x1bd8], r12
test rax, rax
je 0x1400070f3
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1be0], r12
mov rcx, qword [rbx + 0x1bf0]
test rcx, rcx
je 0x140007132
mov rax, qword [0x140064390]
mov qword [rbx + 0x1be8], r12
test rax, rax
je 0x140007125
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bf0], r12
mov rcx, qword [rbx + 0x1c00]
test rcx, rcx
je 0x140007164
mov rax, qword [0x140064390]
mov qword [rbx + 0x1bf8], r12
test rax, rax
je 0x140007157
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c00], r12
mov rcx, qword [rbx + 0x1dc8]
test rcx, rcx
je 0x140007196
mov rax, qword [0x140064390]
mov qword [rbx + 0x1dc0], r12
test rax, rax
je 0x140007189
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dc8], r12
mov rcx, qword [rbx + 0x1dd8]
test rcx, rcx
je 0x1400071c8
mov rax, qword [0x140064390]
mov qword [rbx + 0x1dd0], r12
test rax, rax
je 0x1400071bb
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dd8], r12
lea rcx, [rbx + 0x1de8]
call fcn.14001deb0
lea rcx, [rbx + 0x1ec8]
call fcn.14001deb0
lea rcx, [rbx + 0x2058]
call fcn.140014ef0
mov rcx, qword [rbx + 0x2088]
test rcx, rcx
je 0x14000721e
mov rax, qword [0x140064390]
mov qword [rbx + 0x2080], r12
test rax, rax
je 0x140007211
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2088], r12
mov rcx, qword [rbx + 0x2098]
test rcx, rcx
je 0x140007250
mov rax, qword [0x140064390]
mov qword [rbx + 0x2090], r12
test rax, rax
je 0x140007243
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2098], r12
mov rcx, qword [rbx + 0x3000]
test rcx, rcx
je 0x140007282
mov rax, qword [0x140064390]
mov qword [rbx + 0x2ff8], r12
test rax, rax
je 0x140007275
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3000], r12
mov rcx, qword [rbx + 0x3010]
test rcx, rcx
je 0x1400072b4
mov rax, qword [0x140064390]
mov qword [rbx + 0x3008], r12
test rax, rax
je 0x1400072a7
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3010], r12
mov rcx, qword [rbx + 0x20c0]
test rcx, rcx
je 0x1400072e6
mov rax, qword [0x140064390]
mov qword [rbx + 0x20b8], r12
test rax, rax
je 0x1400072d9
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20c0], r12
mov rcx, qword [rbx + 0x20d0]
test rcx, rcx
je 0x140007318
mov rax, qword [0x140064390]
mov qword [rbx + 0x20c8], r12
test rax, rax
je 0x14000730b
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20d0], r12
mov rcx, qword [rbx + 0x20e0]
test rcx, rcx
je 0x14000734a
mov rax, qword [0x140064390]
mov qword [rbx + 0x20d8], r12
test rax, rax
je 0x14000733d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20e0], r12
mov rcx, qword [rbx + 0x3058]
test rcx, rcx
je 0x14000737c
mov rax, qword [0x140064390]
mov qword [rbx + 0x3050], r12
test rax, rax
je 0x14000736f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3058], r12
mov rcx, qword [rbx + 0x3048]
test rcx, rcx
je 0x1400073ae
mov rax, qword [0x140064390]
mov qword [rbx + 0x3040], r12
test rax, rax
je 0x1400073a1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3048], r12
cmp qword [rbx + 0x3078], r12
je 0x1400073de
mov rdi, qword [rbx + 0x3078]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x1400073d7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3078], r12
mov rcx, qword [rbx + 0x3088]
test rcx, rcx
je 0x140007410
mov rax, qword [0x140064390]
mov qword [rbx + 0x3080], r12
test rax, rax
je 0x140007403
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3088], r12
mov byte [rbx], r12b
add rsp, 0x30
pop r12
pop rdi
pop rbx
ret