Function at 0x1400130b0
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 0x140013100
cmp byte [rcx + 1], 0
je 0x140013100
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140013100
mov rcx, rdi
call fcn.14002f7f0
mov rax, qword [0x140157940]
test rax, rax
je 0x1400130f7
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 0x140013833
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp byte [rbx + 0x3019], r12b
je 0x140013198
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140013198
mov rsi, qword [0x140157940]
lea rcx, [rsp + 0x50]
mov qword [0x140157940], rbx
mov dword [rbx + 0x301c], r12d
mov qword [rsp + 0x50], r12
call fcn.140022790
lea rdx, [0x14011c1d4]
mov rcx, rdi
mov rbp, rax
call fcn.14000dcb0
mov rdi, rax
test rax, rax
je 0x140013191
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 [0x140157940], rsi
mov edx, 6
mov rcx, rbx
call fcn.140010a90
mov eax, dword [rbx + 0x1a30]
mov r15d, r12d
test eax, eax
jle 0x140013349
mov qword [rsp + 0x28], r14
mov r14, r12
nop
test r14, r14
js 0x1400131ca
cmp r15d, eax
jl 0x1400131e4
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
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 0x14001332f
lea rbp, [rsi + 0x2b8]
cmp qword [rsi + 0x2b0], rbp
je 0x140013222
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 0x140013242
mov rax, qword [0x140157940]
test rax, rax
je 0x14001323c
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 0x140013294
nop
test edi, edi
js 0x140013258
cmp edi, eax
jl 0x140013272
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
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.1400102e0
mov eax, dword [rsi + 0x298]
inc edi
cmp edi, eax
jne 0x140013250
mov rcx, rbp
call fcn.14000c5e0
mov rcx, qword [rsi + 0x2a0]
test rcx, rcx
je 0x1400132c0
mov rax, qword [0x140157940]
test rax, rax
je 0x1400132ba
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 0x1400132e4
mov rax, qword [0x140157940]
test rax, rax
je 0x1400132de
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsi + 0xd8]
call fcn.140010250
mov rcx, qword [rsi + 0xd0]
test rcx, rcx
je 0x140013314
mov rax, qword [0x140157940]
test rax, rax
je 0x14001330e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140157940]
test rax, rax
je 0x140013326
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 0x1400131c0
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 0x14001338a
mov rax, qword [0x140157940]
mov qword [rbx + 0x1a30], r12
test rax, rax
je 0x14001337d
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 0x1400133bc
mov rax, qword [0x140157940]
mov qword [rbx + 0x1a40], r12
test rax, rax
je 0x1400133af
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 0x1400133ee
mov rax, qword [0x140157940]
mov qword [rbx + 0x1a50], r12
test rax, rax
je 0x1400133e1
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 0x140013427
mov rax, qword [0x140157940]
mov qword [rbx + 0x1a60], r12
test rax, rax
je 0x14001341a
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 0x140013459
mov rax, qword [0x140157940]
mov qword [rbx + 0x1a70], r12
test rax, rax
je 0x14001344c
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 0x1400134bc
mov rax, qword [0x140157940]
mov qword [rbx + 0x1bb8], r12
test rax, rax
je 0x1400134af
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 0x1400134ee
mov rax, qword [0x140157940]
mov qword [rbx + 0x1bc8], r12
test rax, rax
je 0x1400134e1
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 0x140013520
mov rax, qword [0x140157940]
mov qword [rbx + 0x1bd8], r12
test rax, rax
je 0x140013513
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 0x140013552
mov rax, qword [0x140157940]
mov qword [rbx + 0x1c18], r12
test rax, rax
je 0x140013545
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 0x140013584
mov rax, qword [0x140157940]
mov qword [rbx + 0x1c28], r12
test rax, rax
je 0x140013577
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 0x1400135b6
mov rax, qword [0x140157940]
mov qword [rbx + 0x1df0], r12
test rax, rax
je 0x1400135a9
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 0x1400135e8
mov rax, qword [0x140157940]
mov qword [rbx + 0x1e00], r12
test rax, rax
je 0x1400135db
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.14002bec0
lea rcx, [rbx + 0x1ed8]
call fcn.14002bec0
lea rcx, [rbx + 0x2048]
call fcn.1400232a0
mov rcx, qword [rbx + 0x2078]
test rcx, rcx
je 0x14001363e
mov rax, qword [0x140157940]
mov qword [rbx + 0x2070], r12
test rax, rax
je 0x140013631
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 0x140013670
mov rax, qword [0x140157940]
mov qword [rbx + 0x2080], r12
test rax, rax
je 0x140013663
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 0x1400136a2
mov rax, qword [0x140157940]
mov qword [rbx + 0x2fe8], r12
test rax, rax
je 0x140013695
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 0x1400136d4
mov rax, qword [0x140157940]
mov qword [rbx + 0x2ff8], r12
test rax, rax
je 0x1400136c7
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 0x140013706
mov rax, qword [0x140157940]
mov qword [rbx + 0x20a8], r12
test rax, rax
je 0x1400136f9
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 0x140013738
mov rax, qword [0x140157940]
mov qword [rbx + 0x20b8], r12
test rax, rax
je 0x14001372b
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 0x14001376a
mov rax, qword [0x140157940]
mov qword [rbx + 0x20c8], r12
test rax, rax
je 0x14001375d
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 0x14001379c
mov rax, qword [0x140157940]
mov qword [rbx + 0x3040], r12
test rax, rax
je 0x14001378f
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 0x1400137ce
mov rax, qword [0x140157940]
mov qword [rbx + 0x3030], r12
test rax, rax
je 0x1400137c1
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 0x1400137fe
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 0x1400137f7
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 0x140013830
mov rax, qword [0x140157940]
mov qword [rbx + 0x3070], r12
test rax, rax
je 0x140013823
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