Function at 0x1400130a0
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 0x1400130f0
cmp byte [rcx + 1], 0
je 0x1400130f0
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x1400130f0
mov rcx, rdi
call fcn.14002f7e0
mov rax, qword [0x140156960]
test rax, rax
je 0x1400130e7
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 0x140013823
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp byte [rbx + 0x3019], r12b
je 0x140013188
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140013188
mov rsi, qword [0x140156960]
lea rcx, [rsp + 0x50]
mov qword [0x140156960], rbx
mov dword [rbx + 0x301c], r12d
mov qword [rsp + 0x50], r12
call fcn.140022780
lea rdx, [0x14011b194]
mov rcx, rdi
mov rbp, rax
call fcn.14000dca0
mov rdi, rax
test rax, rax
je 0x140013181
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 [0x140156960], rsi
mov edx, 6
mov rcx, rbx
call fcn.140010a80
mov eax, dword [rbx + 0x1a30]
mov r15d, r12d
test eax, eax
jle 0x140013339
mov qword [rsp + 0x28], r14
mov r14, r12
nop
test r14, r14
js 0x1400131ba
cmp r15d, eax
jl 0x1400131d4
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011b268]
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 0x14001331f
lea rbp, [rsi + 0x2b8]
cmp qword [rsi + 0x2b0], rbp
je 0x140013212
mov r8d, 0xaf2
lea rdx, str.E:ReposSimHapticlibsimguiimgui.cpp
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 0x140013232
mov rax, qword [0x140156960]
test rax, rax
je 0x14001322c
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsi + 0x298]
mov edi, r12d
test eax, eax
je 0x140013284
nop
test edi, edi
js 0x140013248
cmp edi, eax
jl 0x140013262
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011b268]
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 + 0x2a0]
call fcn.1400102d0
mov eax, dword [rsi + 0x298]
inc edi
cmp edi, eax
jne 0x140013240
mov rcx, rbp
call fcn.14000c5d0
mov rcx, qword [rsi + 0x2a0]
test rcx, rcx
je 0x1400132b0
mov rax, qword [0x140156960]
test rax, rax
je 0x1400132aa
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0x290]
test rcx, rcx
je 0x1400132d4
mov rax, qword [0x140156960]
test rax, rax
je 0x1400132ce
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsi + 0xd8]
call fcn.140010240
mov rcx, qword [rsi + 0xd0]
test rcx, rcx
je 0x140013304
mov rax, qword [0x140156960]
test rax, rax
je 0x1400132fe
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140156960]
test rax, rax
je 0x140013316
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 0x1400131b0
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 0x14001337a
mov rax, qword [0x140156960]
mov qword [rbx + 0x1a30], r12
test rax, rax
je 0x14001336d
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 0x1400133ac
mov rax, qword [0x140156960]
mov qword [rbx + 0x1a40], r12
test rax, rax
je 0x14001339f
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 0x1400133de
mov rax, qword [0x140156960]
mov qword [rbx + 0x1a50], r12
test rax, rax
je 0x1400133d1
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 0x140013417
mov rax, qword [0x140156960]
mov qword [rbx + 0x1a60], r12
test rax, rax
je 0x14001340a
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 0x140013449
mov rax, qword [0x140156960]
mov qword [rbx + 0x1a70], r12
test rax, rax
je 0x14001343c
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 + 0x1c38], 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 0x1400134ac
mov rax, qword [0x140156960]
mov qword [rbx + 0x1bb8], r12
test rax, rax
je 0x14001349f
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 0x1400134de
mov rax, qword [0x140156960]
mov qword [rbx + 0x1bc8], r12
test rax, rax
je 0x1400134d1
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 0x140013510
mov rax, qword [0x140156960]
mov qword [rbx + 0x1bd8], r12
test rax, rax
je 0x140013503
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 + 0x1c20]
test rcx, rcx
je 0x140013542
mov rax, qword [0x140156960]
mov qword [rbx + 0x1c18], r12
test rax, rax
je 0x140013535
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c20], r12
mov rcx, qword [rbx + 0x1c30]
test rcx, rcx
je 0x140013574
mov rax, qword [0x140156960]
mov qword [rbx + 0x1c28], r12
test rax, rax
je 0x140013567
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c30], r12
mov rcx, qword [rbx + 0x1df8]
test rcx, rcx
je 0x1400135a6
mov rax, qword [0x140156960]
mov qword [rbx + 0x1df0], r12
test rax, rax
je 0x140013599
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1df8], r12
mov rcx, qword [rbx + 0x1e08]
test rcx, rcx
je 0x1400135d8
mov rax, qword [0x140156960]
mov qword [rbx + 0x1e00], r12
test rax, rax
je 0x1400135cb
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e08], r12
lea rcx, [rbx + 0x1e18]
call fcn.14002beb0
lea rcx, [rbx + 0x1ed8]
call fcn.14002beb0
lea rcx, [rbx + 0x2048]
call fcn.140023290
mov rcx, qword [rbx + 0x2078]
test rcx, rcx
je 0x14001362e
mov rax, qword [0x140156960]
mov qword [rbx + 0x2070], r12
test rax, rax
je 0x140013621
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2078], r12
mov rcx, qword [rbx + 0x2088]
test rcx, rcx
je 0x140013660
mov rax, qword [0x140156960]
mov qword [rbx + 0x2080], r12
test rax, rax
je 0x140013653
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 + 0x2ff0]
test rcx, rcx
je 0x140013692
mov rax, qword [0x140156960]
mov qword [rbx + 0x2fe8], r12
test rax, rax
je 0x140013685
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2ff0], r12
mov rcx, qword [rbx + 0x3000]
test rcx, rcx
je 0x1400136c4
mov rax, qword [0x140156960]
mov qword [rbx + 0x2ff8], r12
test rax, rax
je 0x1400136b7
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 + 0x20b0]
test rcx, rcx
je 0x1400136f6
mov rax, qword [0x140156960]
mov qword [rbx + 0x20a8], r12
test rax, rax
je 0x1400136e9
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20b0], r12
mov rcx, qword [rbx + 0x20c0]
test rcx, rcx
je 0x140013728
mov rax, qword [0x140156960]
mov qword [rbx + 0x20b8], r12
test rax, rax
je 0x14001371b
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 0x14001375a
mov rax, qword [0x140156960]
mov qword [rbx + 0x20c8], r12
test rax, rax
je 0x14001374d
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 + 0x3048]
test rcx, rcx
je 0x14001378c
mov rax, qword [0x140156960]
mov qword [rbx + 0x3040], r12
test rax, rax
je 0x14001377f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3048], r12
mov rcx, qword [rbx + 0x3038]
test rcx, rcx
je 0x1400137be
mov rax, qword [0x140156960]
mov qword [rbx + 0x3030], r12
test rax, rax
je 0x1400137b1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3038], r12
cmp qword [rbx + 0x3068], r12
je 0x1400137ee
mov rdi, qword [rbx + 0x3068]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x1400137e7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3068], r12
mov rcx, qword [rbx + 0x3078]
test rcx, rcx
je 0x140013820
mov rax, qword [0x140156960]
mov qword [rbx + 0x3070], r12
test rax, rax
je 0x140013813
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3078], r12
mov byte [rbx], r12b
add rsp, 0x30
pop r12
pop rdi
pop rbx
ret