Function at 0x140010f40
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 0x140010f90
cmp byte [rcx + 1], 0
je 0x140010f90
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140010f90
mov rcx, rdi
call fcn.14002d580
mov rax, qword [0x1400fcf30]
test rax, rax
je 0x140010f87
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 0x1400116c3
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp byte [rbx + 0x3019], r12b
je 0x140011028
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140011028
mov rsi, qword [0x1400fcf30]
lea rcx, [rsp + 0x50]
mov qword [0x1400fcf30], rbx
mov dword [rbx + 0x301c], r12d
mov qword [rsp + 0x50], r12
call fcn.140020170
lea rdx, [0x1400d3cf4]
mov rcx, rdi
mov rbp, rax
call fcn.14000bd00
mov rdi, rax
test rax, rax
je 0x140011021
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 [0x1400fcf30], rsi
mov edx, 6
mov rcx, rbx
call fcn.14000e920
mov eax, dword [rbx + 0x1a30]
mov r15d, r12d
test eax, eax
jle 0x1400111d9
mov qword [rsp + 0x28], r14
mov r14, r12
nop
test r14, r14
js 0x14001105a
cmp r15d, eax
jl 0x140011074
mov r8d, 0x57e
lea rdx, str.E:ReposDCRealisticlibsimguiimgui.h
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 0x1400111bf
lea rbp, [rsi + 0x2b8]
cmp qword [rsi + 0x2b0], rbp
je 0x1400110b2
mov r8d, 0xaf2
lea rdx, str.E:ReposDCRealisticlibsimguiimgui.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 0x1400110d2
mov rax, qword [0x1400fcf30]
test rax, rax
je 0x1400110cc
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 0x140011124
nop
test edi, edi
js 0x1400110e8
cmp edi, eax
jl 0x140011102
mov r8d, 0x57e
lea rdx, str.E:ReposDCRealisticlibsimguiimgui.h
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 + 0x2a0]
call fcn.14000e170
mov eax, dword [rsi + 0x298]
inc edi
cmp edi, eax
jne 0x1400110e0
mov rcx, rbp
call fcn.14000a630
mov rcx, qword [rsi + 0x2a0]
test rcx, rcx
je 0x140011150
mov rax, qword [0x1400fcf30]
test rax, rax
je 0x14001114a
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 0x140011174
mov rax, qword [0x1400fcf30]
test rax, rax
je 0x14001116e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsi + 0xd8]
call fcn.14000e0e0
mov rcx, qword [rsi + 0xd0]
test rcx, rcx
je 0x1400111a4
mov rax, qword [0x1400fcf30]
test rax, rax
je 0x14001119e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400fcf30]
test rax, rax
je 0x1400111b6
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 0x140011050
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 0x14001121a
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1a30], r12
test rax, rax
je 0x14001120d
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 0x14001124c
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1a40], r12
test rax, rax
je 0x14001123f
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 0x14001127e
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1a50], r12
test rax, rax
je 0x140011271
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 0x1400112b7
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1a60], r12
test rax, rax
je 0x1400112aa
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 0x1400112e9
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1a70], r12
test rax, rax
je 0x1400112dc
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 0x14001134c
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1bb8], r12
test rax, rax
je 0x14001133f
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 0x14001137e
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1bc8], r12
test rax, rax
je 0x140011371
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 0x1400113b0
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1bd8], r12
test rax, rax
je 0x1400113a3
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 0x1400113e2
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1c18], r12
test rax, rax
je 0x1400113d5
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 0x140011414
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1c28], r12
test rax, rax
je 0x140011407
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 0x140011446
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1df0], r12
test rax, rax
je 0x140011439
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 0x140011478
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x1e00], r12
test rax, rax
je 0x14001146b
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.1400298a0
lea rcx, [rbx + 0x1ed8]
call fcn.1400298a0
lea rcx, [rbx + 0x2048]
call fcn.140020c80
mov rcx, qword [rbx + 0x2078]
test rcx, rcx
je 0x1400114ce
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x2070], r12
test rax, rax
je 0x1400114c1
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 0x140011500
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x2080], r12
test rax, rax
je 0x1400114f3
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 0x140011532
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x2fe8], r12
test rax, rax
je 0x140011525
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 0x140011564
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x2ff8], r12
test rax, rax
je 0x140011557
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 0x140011596
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x20a8], r12
test rax, rax
je 0x140011589
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 0x1400115c8
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x20b8], r12
test rax, rax
je 0x1400115bb
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 0x1400115fa
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x20c8], r12
test rax, rax
je 0x1400115ed
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 0x14001162c
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x3040], r12
test rax, rax
je 0x14001161f
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 0x14001165e
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x3030], r12
test rax, rax
je 0x140011651
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 0x14001168e
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 0x140011687
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 0x1400116c0
mov rax, qword [0x1400fcf30]
mov qword [rbx + 0x3070], r12
test rax, rax
je 0x1400116b3
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