Function at 0x140011030
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 0x140011080
cmp byte [rcx + 1], 0
je 0x140011080
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140011080
mov rcx, rdi
call fcn.14002d670
mov rax, qword [0x1400fcf50]
test rax, rax
je 0x140011077
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 0x1400117b3
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp byte [rbx + 0x3019], r12b
je 0x140011118
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140011118
mov rsi, qword [0x1400fcf50]
lea rcx, [rsp + 0x50]
mov qword [0x1400fcf50], rbx
mov dword [rbx + 0x301c], r12d
mov qword [rsp + 0x50], r12
call fcn.140020260
lea rdx, [0x1400d4d54]
mov rcx, rdi
mov rbp, rax
call fcn.14000bdf0
mov rdi, rax
test rax, rax
je 0x140011111
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 [0x1400fcf50], rsi
mov edx, 6
mov rcx, rbx
call fcn.14000ea10
mov eax, dword [rbx + 0x1a30]
mov r15d, r12d
test eax, eax
jle 0x1400112c9
mov qword [rsp + 0x28], r14
mov r14, r12
nop
test r14, r14
js 0x14001114a
cmp r15d, eax
jl 0x140011164
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 0x1400112af
lea rbp, [rsi + 0x2b8]
cmp qword [rsi + 0x2b0], rbp
je 0x1400111a2
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 0x1400111c2
mov rax, qword [0x1400fcf50]
test rax, rax
je 0x1400111bc
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 0x140011214
nop
test edi, edi
js 0x1400111d8
cmp edi, eax
jl 0x1400111f2
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.14000e260
mov eax, dword [rsi + 0x298]
inc edi
cmp edi, eax
jne 0x1400111d0
mov rcx, rbp
call fcn.14000a720
mov rcx, qword [rsi + 0x2a0]
test rcx, rcx
je 0x140011240
mov rax, qword [0x1400fcf50]
test rax, rax
je 0x14001123a
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 0x140011264
mov rax, qword [0x1400fcf50]
test rax, rax
je 0x14001125e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsi + 0xd8]
call fcn.14000e1d0
mov rcx, qword [rsi + 0xd0]
test rcx, rcx
je 0x140011294
mov rax, qword [0x1400fcf50]
test rax, rax
je 0x14001128e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400fcf50]
test rax, rax
je 0x1400112a6
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 0x140011140
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 0x14001130a
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1a30], r12
test rax, rax
je 0x1400112fd
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 0x14001133c
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1a40], r12
test rax, rax
je 0x14001132f
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 0x14001136e
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1a50], r12
test rax, rax
je 0x140011361
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 0x1400113a7
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1a60], r12
test rax, rax
je 0x14001139a
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 0x1400113d9
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1a70], r12
test rax, rax
je 0x1400113cc
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 0x14001143c
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1bb8], r12
test rax, rax
je 0x14001142f
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 0x14001146e
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1bc8], r12
test rax, rax
je 0x140011461
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 0x1400114a0
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1bd8], r12
test rax, rax
je 0x140011493
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 0x1400114d2
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1c18], r12
test rax, rax
je 0x1400114c5
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 0x140011504
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1c28], r12
test rax, rax
je 0x1400114f7
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 0x140011536
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1df0], r12
test rax, rax
je 0x140011529
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 0x140011568
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x1e00], r12
test rax, rax
je 0x14001155b
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.140029990
lea rcx, [rbx + 0x1ed8]
call fcn.140029990
lea rcx, [rbx + 0x2048]
call fcn.140020d70
mov rcx, qword [rbx + 0x2078]
test rcx, rcx
je 0x1400115be
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x2070], r12
test rax, rax
je 0x1400115b1
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 0x1400115f0
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x2080], r12
test rax, rax
je 0x1400115e3
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 0x140011622
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x2fe8], r12
test rax, rax
je 0x140011615
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 0x140011654
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x2ff8], r12
test rax, rax
je 0x140011647
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 0x140011686
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x20a8], r12
test rax, rax
je 0x140011679
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 0x1400116b8
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x20b8], r12
test rax, rax
je 0x1400116ab
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 0x1400116ea
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x20c8], r12
test rax, rax
je 0x1400116dd
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 0x14001171c
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x3040], r12
test rax, rax
je 0x14001170f
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 0x14001174e
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x3030], r12
test rax, rax
je 0x140011741
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 0x14001177e
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 0x140011777
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 0x1400117b0
mov rax, qword [0x1400fcf50]
mov qword [rbx + 0x3070], r12
test rax, rax
je 0x1400117a3
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