Function at 0x140006ef0
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 0x140006f40
cmp byte [rcx + 1], 0
je 0x140006f40
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140006f40
mov rcx, rdi
call fcn.140023d40
mov rax, qword [0x1400a93a0]
test rax, rax
je 0x140006f37
dec dword [rax + 0x3bc]
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 0x140007668
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp byte [rbx + 0x3071], r12b
je 0x140006fd8
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140006fd8
mov rsi, qword [0x1400a93a0]
lea rcx, [rsp + 0x50]
mov qword [0x1400a93a0], rbx
mov dword [rbx + 0x3074], r12d
mov qword [rsp + 0x50], r12
call fcn.140014ca0
lea rdx, [0x1400381f4]
mov rcx, rdi
mov rbp, rax
call fcn.140002aa0
mov rdi, rax
test rax, rax
je 0x140006fd1
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 [0x1400a93a0], rsi
mov eax, dword [rbx + 0x1a78]
mov r14d, r12d
test eax, eax
jle 0x140007172
mov qword [rsp + 0x20], r15
mov r15, r12
cmp r12d, eax
jl 0x140007010
mov r8d, 0x58a
lea rdx, [0x140035540]
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x1a80]
mov rdi, qword [r15 + rax]
test rdi, rdi
je 0x140007157
lea rbp, [rdi + 0x2d8]
cmp qword [rdi + 0x2d0], rbp
je 0x14000704e
mov r8d, 0xafc
lea rdx, [0x1400356b0]
lea rcx, str.DrawList__DrawListInst
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000706e
mov rax, qword [0x1400a93a0]
test rax, rax
je 0x140007068
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rdi + 0x2b8]
mov esi, r12d
test eax, eax
je 0x1400070bc
cmp r12d, eax
jl 0x14000709a
mov r8d, 0x58a
lea rdx, [0x140035540]
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, esi
imul rcx, rax, 0x88
add rcx, qword [rdi + 0x2c0]
call fcn.1400045d0
mov eax, dword [rdi + 0x2b8]
inc esi
cmp esi, eax
jne 0x14000707e
mov rcx, rbp
call fcn.140001010
mov rcx, qword [rdi + 0x2c0]
test rcx, rcx
je 0x1400070e8
mov rax, qword [0x1400a93a0]
test rax, rax
je 0x1400070e2
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x2b0]
test rcx, rcx
je 0x14000710c
mov rax, qword [0x1400a93a0]
test rax, rax
je 0x140007106
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rdi + 0xd8]
call fcn.140004500
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x14000713c
mov rax, qword [0x1400a93a0]
test rax, rax
je 0x140007136
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400a93a0]
test rax, rax
je 0x14000714e
dec dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x1a78]
inc r14d
add r15, 8
cmp r14d, eax
jl 0x140007010
mov r15, qword [rsp + 0x20]
mov rcx, qword [rbx + 0x1a80]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1400071b3
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1a78], r12
test rax, rax
je 0x1400071a6
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a80], r12
mov rcx, qword [rbx + 0x1a90]
test rcx, rcx
je 0x1400071e5
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1a88], r12
test rax, rax
je 0x1400071d8
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a90], r12
mov rcx, qword [rbx + 0x1aa0]
test rcx, rcx
je 0x140007217
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1a98], r12
test rax, rax
je 0x14000720a
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1aa0], r12
mov qword [rbx + 0x1ad0], r12
mov rcx, qword [rbx + 0x1ab0]
test rcx, rcx
je 0x140007250
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1aa8], r12
test rax, rax
je 0x140007243
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ab0], r12
mov rcx, qword [rbx + 0x1ac0]
test rcx, rcx
je 0x140007282
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1ab8], r12
test rax, rax
je 0x140007275
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ac0], r12
mov qword [rbx + 0x1c50], r12
mov qword [rbx + 0x1ae8], r12
mov qword [rbx + 0x1ae0], r12
mov qword [rbx + 0x1ad8], r12
mov qword [rbx + 0x1b68], r12
mov qword [rbx + 0x1b50], r12
mov qword [rbx + 0x1af0], r12
mov rcx, qword [rbx + 0x1c08]
test rcx, rcx
je 0x1400072e5
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1c00], r12
test rax, rax
je 0x1400072d8
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c08], r12
mov rcx, qword [rbx + 0x1c18]
test rcx, rcx
je 0x140007317
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1c10], r12
test rax, rax
je 0x14000730a
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c18], r12
mov rcx, qword [rbx + 0x1c28]
test rcx, rcx
je 0x140007349
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1c20], r12
test rax, rax
je 0x14000733c
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c28], r12
mov rcx, qword [rbx + 0x1c38]
test rcx, rcx
je 0x14000737b
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1c30], r12
test rax, rax
je 0x14000736e
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c38], r12
mov rcx, qword [rbx + 0x1c48]
test rcx, rcx
je 0x1400073b0
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1c40], r12
test rax, rax
je 0x1400073a0
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c48], r12
nop dword [rax]
mov rcx, qword [rbx + 0x1e10]
test rcx, rcx
je 0x1400073e2
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x1e08], r12
test rax, rax
je 0x1400073d5
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e10], r12
cmp qword [rbx + 0x1e20], r12
je 0x14000741d
mov qword [rbx + 0x1e18], r12
mov rcx, qword [rbx + 0x1e20]
test rcx, rcx
je 0x140007410
mov rax, qword [0x1400a93a0]
test rax, rax
je 0x140007410
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e20], r12
lea rcx, [rbx + 0x1e30]
call fcn.14001e8c0
lea rcx, [rbx + 0x1f10]
call fcn.14001e8c0
lea rcx, [rbx + 0x20a0]
call fcn.140015850
mov rcx, qword [rbx + 0x20d0]
test rcx, rcx
je 0x140007473
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x20c8], r12
test rax, rax
je 0x140007466
dec dword [rax + 0x3bc]
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 0x1400074a5
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x20d8], r12
test rax, rax
je 0x140007498
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20e0], r12
mov rcx, qword [rbx + 0x3048]
test rcx, rcx
je 0x1400074d7
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x3040], r12
test rax, rax
je 0x1400074ca
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3048], r12
mov rcx, qword [rbx + 0x3058]
test rcx, rcx
je 0x140007509
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x3050], r12
test rax, rax
je 0x1400074fc
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3058], r12
mov rcx, qword [rbx + 0x2108]
test rcx, rcx
je 0x14000753b
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x2100], r12
test rax, rax
je 0x14000752e
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2108], r12
mov rcx, qword [rbx + 0x2118]
test rcx, rcx
je 0x14000756d
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x2110], r12
test rax, rax
je 0x140007560
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2118], r12
mov rcx, qword [rbx + 0x2128]
test rcx, rcx
je 0x14000759f
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x2120], r12
test rax, rax
je 0x140007592
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2128], r12
mov rcx, qword [rbx + 0x30a0]
test rcx, rcx
je 0x1400075d1
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x3098], r12
test rax, rax
je 0x1400075c4
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30a0], r12
mov rcx, qword [rbx + 0x3090]
test rcx, rcx
je 0x140007603
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x3088], r12
test rax, rax
je 0x1400075f6
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3090], r12
cmp qword [rbx + 0x30b0], r12
je 0x140007633
mov rdi, qword [rbx + 0x30b0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14000762c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x30b0], r12
mov rcx, qword [rbx + 0x30c0]
test rcx, rcx
je 0x140007665
mov rax, qword [0x1400a93a0]
mov qword [rbx + 0x30b8], r12
test rax, rax
je 0x140007658
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30c0], r12
mov byte [rbx], r12b
add rsp, 0x30
pop r12
pop rdi
pop rbx
ret