Function at 0x140007570
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0xa8]
mov rbx, rcx
test rax, rax
je 0x1400075c0
cmp byte [rcx + 1], 0
je 0x1400075c0
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x1400075c0
mov rcx, rdi
call fcn.140023ec0
mov rax, qword [0x140185c90]
test rax, rax
je 0x1400075b7
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r14d, r14d
mov qword [rbx + 0xa8], r14
cmp byte [rbx], r14b
je 0x140007c38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x30e1], r14b
je 0x140007652
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140007652
mov rsi, qword [0x140185c90]
lea rcx, [rsp + 0x40]
mov qword [0x140185c90], rbx
mov dword [rbx + 0x30e4], r14d
mov qword [rsp + 0x40], r14
call fcn.140016420
lea rdx, [0x14004d534]
mov rcx, rdi
mov rbp, rax
call fcn.140002950
mov rdi, rax
test rax, rax
je 0x14000764b
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 [0x140185c90], rsi
mov edx, 6
mov rcx, rbx
call fcn.1400050b0
mov eax, dword [rbx + 0x1a88]
mov ebp, r14d
test eax, eax
jle 0x1400076d5
mov rsi, r14
nop
test rsi, rsi
js 0x140007679
cmp ebp, eax
jl 0x140007693
mov r8d, 0x663
lea rdx, str.C:UsersyusifDesktopimgui_masterimgui.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 + 0x1a90]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x1400076c6
mov rcx, rdi
call fcn.140004670
mov rax, qword [0x140185c90]
test rax, rax
je 0x1400076bd
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x1a88]
inc ebp
inc rsi
cmp ebp, eax
jl 0x140007670
mov rcx, qword [rbx + 0x1a90]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x140007711
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1a88], r14
test rax, rax
je 0x140007704
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a90], r14
mov rcx, qword [rbx + 0x1aa0]
test rcx, rcx
je 0x140007743
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1a98], r14
test rax, rax
je 0x140007736
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1aa0], r14
mov rcx, qword [rbx + 0x1ab0]
test rcx, rcx
je 0x140007775
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1aa8], r14
test rax, rax
je 0x140007768
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ab0], r14
mov qword [rbx + 0x1ae0], r14
mov rcx, qword [rbx + 0x1ac0]
test rcx, rcx
je 0x1400077ae
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1ab8], r14
test rax, rax
je 0x1400077a1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ac0], r14
mov rcx, qword [rbx + 0x1ad0]
test rcx, rcx
je 0x1400077e0
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1ac8], r14
test rax, rax
je 0x1400077d3
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ad0], r14
mov qword [rbx + 0x1c90], r14
mov qword [rbx + 0x1af8], r14
mov qword [rbx + 0x1af0], r14
mov qword [rbx + 0x1ae8], r14
mov qword [rbx + 0x1b78], r14
mov qword [rbx + 0x1b60], r14
mov qword [rbx + 0x1b00], r14
mov rcx, qword [rbx + 0x1c18]
test rcx, rcx
je 0x140007843
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1c10], r14
test rax, rax
je 0x140007836
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c18], r14
mov rcx, qword [rbx + 0x1c28]
test rcx, rcx
je 0x140007875
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1c20], r14
test rax, rax
je 0x140007868
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c28], r14
mov rcx, qword [rbx + 0x1c38]
test rcx, rcx
je 0x1400078a7
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1c30], r14
test rax, rax
je 0x14000789a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c38], r14
mov rcx, qword [rbx + 0x1c78]
test rcx, rcx
je 0x1400078d9
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1c70], r14
test rax, rax
je 0x1400078cc
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c78], r14
mov rcx, qword [rbx + 0x1c88]
test rcx, rcx
je 0x140007910
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1c80], r14
test rax, rax
je 0x1400078fe
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c88], r14
nop dword [rax + rax]
mov rcx, qword [rbx + 0x1e50]
test rcx, rcx
je 0x140007942
mov rax, qword [0x140185c90]
mov qword [rbx + 0x1e48], r14
test rax, rax
je 0x140007935
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e50], r14
cmp qword [rbx + 0x1e60], r14
je 0x14000797d
mov qword [rbx + 0x1e58], r14
mov rcx, qword [rbx + 0x1e60]
test rcx, rcx
je 0x140007970
mov rax, qword [0x140185c90]
test rax, rax
je 0x140007970
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e60], r14
lea rcx, [rbx + 0x1e70]
call fcn.1400204b0
lea rcx, [rbx + 0x1f38]
call fcn.1400204b0
lea rcx, [rbx + 0x2110]
call fcn.140017020
mov rcx, qword [rbx + 0x2140]
test rcx, rcx
je 0x1400079d3
mov rax, qword [0x140185c90]
mov qword [rbx + 0x2138], r14
test rax, rax
je 0x1400079c6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2140], r14
mov rcx, qword [rbx + 0x2150]
test rcx, rcx
je 0x140007a05
mov rax, qword [0x140185c90]
mov qword [rbx + 0x2148], r14
test rax, rax
je 0x1400079f8
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2150], r14
lea rcx, [rbx + 0x20b0]
call fcn.140017180
mov rcx, qword [rbx + 0x20e0]
test rcx, rcx
je 0x140007a43
mov rax, qword [0x140185c90]
mov qword [rbx + 0x20d8], r14
test rax, rax
je 0x140007a36
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20e0], r14
mov rcx, qword [rbx + 0x2100]
test rcx, rcx
je 0x140007a75
mov rax, qword [0x140185c90]
mov qword [rbx + 0x20f8], r14
test rax, rax
je 0x140007a68
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2100], r14
mov rcx, qword [rbx + 0x30b8]
test rcx, rcx
je 0x140007aa7
mov rax, qword [0x140185c90]
mov qword [rbx + 0x30b0], r14
test rax, rax
je 0x140007a9a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30b8], r14
mov rcx, qword [rbx + 0x30c8]
test rcx, rcx
je 0x140007ad9
mov rax, qword [0x140185c90]
mov qword [rbx + 0x30c0], r14
test rax, rax
je 0x140007acc
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30c8], r14
mov rcx, qword [rbx + 0x2178]
test rcx, rcx
je 0x140007b0b
mov rax, qword [0x140185c90]
mov qword [rbx + 0x2170], r14
test rax, rax
je 0x140007afe
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2178], r14
mov rcx, qword [rbx + 0x2188]
test rcx, rcx
je 0x140007b3d
mov rax, qword [0x140185c90]
mov qword [rbx + 0x2180], r14
test rax, rax
je 0x140007b30
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2188], r14
mov rcx, qword [rbx + 0x2198]
test rcx, rcx
je 0x140007b6f
mov rax, qword [0x140185c90]
mov qword [rbx + 0x2190], r14
test rax, rax
je 0x140007b62
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2198], r14
mov rcx, qword [rbx + 0x3110]
test rcx, rcx
je 0x140007ba1
mov rax, qword [0x140185c90]
mov qword [rbx + 0x3108], r14
test rax, rax
je 0x140007b94
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3110], r14
mov rcx, qword [rbx + 0x3100]
test rcx, rcx
je 0x140007bd3
mov rax, qword [0x140185c90]
mov qword [rbx + 0x30f8], r14
test rax, rax
je 0x140007bc6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3100], r14
cmp qword [rbx + 0x3140], r14
je 0x140007c03
mov rdi, qword [rbx + 0x3140]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140007bfc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3140], r14
mov rcx, qword [rbx + 0x3150]
test rcx, rcx
je 0x140007c35
mov rax, qword [0x140185c90]
mov qword [rbx + 0x3148], r14
test rax, rax
je 0x140007c28
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3150], r14
mov byte [rbx], r14b
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret