Function at 0x140007160
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0xf0]
mov rbx, rcx
test rax, rax
je 0x1400071b0
cmp byte [rcx + 1], 0
je 0x1400071b0
mov byte [rax], 0
mov rdi, qword [rcx + 0xf0]
test rdi, rdi
je 0x1400071b0
mov rcx, rdi
call fcn.1400228c0
mov rax, qword [0x140209cb0]
test rax, rax
je 0x1400071a7
dec dword [rax + 0x3fc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r14d, r14d
mov qword [rbx + 0xf0], r14
cmp byte [rbx], r14b
je 0x1400077f3
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x3139], r14b
je 0x140007242
mov rdi, qword [rbx + 0x68]
test rdi, rdi
je 0x140007242
mov rsi, qword [0x140209cb0]
lea rcx, [rsp + 0x40]
mov qword [0x140209cb0], rbx
mov dword [rbx + 0x313c], r14d
mov qword [rsp + 0x40], r14
call fcn.140014b20
lea rdx, [0x1400343b4]
mov rcx, rdi
mov rbp, rax
call fcn.140002930
mov rdi, rax
test rax, rax
je 0x14000723b
mov r8, qword [rsp + 0x40]
lea edx, [r14 + 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 [0x140209cb0], rsi
mov edx, 6
mov rcx, rbx
call fcn.140004ea0
mov eax, dword [rbx + 0x1ae0]
mov ebp, r14d
test eax, eax
jle 0x1400072c5
mov rsi, r14
nop
test rsi, rsi
js 0x140007269
cmp ebp, eax
jl 0x140007283
mov r8d, 0x684
lea rdx, str.D:imgui_menuimgui.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 + 0x1ae8]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x1400072b6
mov rcx, rdi
call fcn.140004550
mov rax, qword [0x140209cb0]
test rax, rax
je 0x1400072ad
dec dword [rax + 0x3fc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x1ae0]
inc ebp
inc rsi
cmp ebp, eax
jl 0x140007260
mov rcx, qword [rbx + 0x1ae8]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x1400072fc
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1ae0], r14
test rax, rax
je 0x1400072ef
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ae8], r14
mov rcx, qword [rbx + 0x1af8]
test rcx, rcx
je 0x14000732e
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1af0], r14
test rax, rax
je 0x140007321
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1af8], r14
mov rcx, qword [rbx + 0x1b08]
test rcx, rcx
je 0x140007360
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1b00], r14
test rax, rax
je 0x140007353
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b08], r14
mov qword [rbx + 0x1b38], r14
mov rcx, qword [rbx + 0x1b18]
test rcx, rcx
je 0x140007399
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1b10], r14
test rax, rax
je 0x14000738c
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b18], r14
mov rcx, qword [rbx + 0x1b28]
test rcx, rcx
je 0x1400073cb
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1b20], r14
test rax, rax
je 0x1400073be
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b28], r14
mov qword [rbx + 0x1ce8], r14
mov qword [rbx + 0x1b50], r14
mov qword [rbx + 0x1b48], r14
mov qword [rbx + 0x1b40], r14
mov qword [rbx + 0x1bd0], r14
mov qword [rbx + 0x1bb8], r14
mov qword [rbx + 0x1b58], r14
mov rcx, qword [rbx + 0x1c70]
test rcx, rcx
je 0x14000742e
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1c68], r14
test rax, rax
je 0x140007421
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c70], r14
mov rcx, qword [rbx + 0x1c80]
test rcx, rcx
je 0x140007460
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1c78], r14
test rax, rax
je 0x140007453
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c80], r14
mov rcx, qword [rbx + 0x1c90]
test rcx, rcx
je 0x140007492
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1c88], r14
test rax, rax
je 0x140007485
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c90], r14
mov rcx, qword [rbx + 0x1cd0]
test rcx, rcx
je 0x1400074c4
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1cc8], r14
test rax, rax
je 0x1400074b7
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cd0], r14
mov rcx, qword [rbx + 0x1ce0]
test rcx, rcx
je 0x1400074f6
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x1cd8], r14
test rax, rax
je 0x1400074e9
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ce0], r14
lea rdi, [rbx + 0x1ea8]
mov esi, 2
mov rcx, qword [rdi]
test rcx, rcx
je 0x140007529
mov rax, qword [0x140209cb0]
mov qword [rdi - 8], r14
test rax, rax
je 0x140007520
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], r14
add rdi, 0x10
sub rsi, 1
jne 0x140007502
lea rcx, [rbx + 0x1ec8]
call fcn.14001e600
lea rcx, [rbx + 0x1f90]
call fcn.14001e600
lea rcx, [rbx + 0x2168]
call fcn.140015680
mov rcx, qword [rbx + 0x2198]
mov rsi, qword [rsp + 0x50]
test rcx, rcx
je 0x14000758e
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x2190], r14
test rax, rax
je 0x140007581
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2198], r14
mov rcx, qword [rbx + 0x21a8]
test rcx, rcx
je 0x1400075c0
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x21a0], r14
test rax, rax
je 0x1400075b3
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21a8], r14
lea rcx, [rbx + 0x2108]
call fcn.1400157e0
mov rcx, qword [rbx + 0x2138]
test rcx, rcx
je 0x1400075fe
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x2130], r14
test rax, rax
je 0x1400075f1
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2138], r14
mov rcx, qword [rbx + 0x2158]
test rcx, rcx
je 0x140007630
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x2150], r14
test rax, rax
je 0x140007623
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2158], r14
mov rcx, qword [rbx + 0x3110]
test rcx, rcx
je 0x140007662
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x3108], r14
test rax, rax
je 0x140007655
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3110], r14
mov rcx, qword [rbx + 0x3120]
test rcx, rcx
je 0x140007694
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x3118], r14
test rax, rax
je 0x140007687
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3120], r14
mov rcx, qword [rbx + 0x21d0]
test rcx, rcx
je 0x1400076c6
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x21c8], r14
test rax, rax
je 0x1400076b9
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21d0], r14
mov rcx, qword [rbx + 0x21e0]
test rcx, rcx
je 0x1400076f8
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x21d8], r14
test rax, rax
je 0x1400076eb
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21e0], r14
mov rcx, qword [rbx + 0x21f0]
test rcx, rcx
je 0x14000772a
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x21e8], r14
test rax, rax
je 0x14000771d
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21f0], r14
mov rcx, qword [rbx + 0x3168]
test rcx, rcx
je 0x14000775c
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x3160], r14
test rax, rax
je 0x14000774f
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3168], r14
mov rcx, qword [rbx + 0x3158]
test rcx, rcx
je 0x14000778e
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x3150], r14
test rax, rax
je 0x140007781
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3158], r14
cmp qword [rbx + 0x3198], r14
je 0x1400077be
mov rdi, qword [rbx + 0x3198]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x1400077b7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3198], r14
mov rcx, qword [rbx + 0x31a8]
test rcx, rcx
je 0x1400077f0
mov rax, qword [0x140209cb0]
mov qword [rbx + 0x31a0], r14
test rax, rax
je 0x1400077e3
dec dword [rax + 0x3fc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x31a8], r14
mov byte [rbx], r14b
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret