Function at 0x140007610
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 0x140007660
cmp byte [rcx + 1], 0
je 0x140007660
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140007660
mov rcx, rdi
call fcn.140022030
mov rax, qword [0x14025f8a0]
test rax, rax
je 0x140007657
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 0x140007cd3
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x3101], r14b
je 0x1400076f3
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400076f3
mov rsi, qword [0x14025f8a0]
lea rcx, [rsp + 0x40]
mov qword [0x14025f8a0], rbx
mov dword [rbx + 0x3104], r14d
mov qword [rsp + 0x40], r14
call fcn.140014ea0
lea rdx, [0x14003e594]
mov rcx, rdi
mov rbp, rax
call fcn.140002d30
mov rdi, rax
test rax, rax
je 0x1400076ec
mov r8, qword [rsp + 0x40]
mov r9, rax
mov edx, 1
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 [0x14025f8a0], rsi
mov edx, 6
mov rcx, rbx
call fcn.140005180
mov eax, dword [rbx + 0x1ab8]
mov ebp, r14d
test eax, eax
jle 0x140007775
mov rsi, r14
test rsi, rsi
js 0x140007719
cmp ebp, eax
jl 0x140007733
mov r8d, 0x657
lea rdx, str.D:NEW4K___Copy__2____Copyimgui.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 + 0x1ac0]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x140007766
mov rcx, rdi
call fcn.140004740
mov rax, qword [0x14025f8a0]
test rax, rax
je 0x14000775d
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 + 0x1ab8]
inc ebp
inc rsi
cmp ebp, eax
jl 0x140007710
mov rcx, qword [rbx + 0x1ac0]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x1400077b1
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1ab8], r14
test rax, rax
je 0x1400077a4
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 0x1400077e3
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1ac8], r14
test rax, rax
je 0x1400077d6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ad0], r14
mov rcx, qword [rbx + 0x1ae0]
test rcx, rcx
je 0x140007815
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1ad8], r14
test rax, rax
je 0x140007808
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ae0], r14
mov qword [rbx + 0x1b10], r14
mov rcx, qword [rbx + 0x1af0]
test rcx, rcx
je 0x14000784e
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1ae8], r14
test rax, rax
je 0x140007841
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1af0], r14
mov rcx, qword [rbx + 0x1b00]
test rcx, rcx
je 0x140007880
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1af8], r14
test rax, rax
je 0x140007873
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b00], r14
mov qword [rbx + 0x1cc0], r14
mov qword [rbx + 0x1b28], r14
mov qword [rbx + 0x1b20], r14
mov qword [rbx + 0x1b18], r14
mov qword [rbx + 0x1ba8], r14
mov qword [rbx + 0x1b90], r14
mov qword [rbx + 0x1b30], r14
mov rcx, qword [rbx + 0x1c48]
test rcx, rcx
je 0x1400078e3
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1c40], r14
test rax, rax
je 0x1400078d6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c48], r14
mov rcx, qword [rbx + 0x1c58]
test rcx, rcx
je 0x140007915
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1c50], r14
test rax, rax
je 0x140007908
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c58], r14
mov rcx, qword [rbx + 0x1c68]
test rcx, rcx
je 0x140007947
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1c60], r14
test rax, rax
je 0x14000793a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c68], r14
mov rcx, qword [rbx + 0x1ca8]
test rcx, rcx
je 0x140007979
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1ca0], r14
test rax, rax
je 0x14000796c
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ca8], r14
mov rcx, qword [rbx + 0x1cb8]
test rcx, rcx
je 0x1400079ab
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1cb0], r14
test rax, rax
je 0x14000799e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cb8], r14
mov rcx, qword [rbx + 0x1e80]
test rcx, rcx
je 0x1400079dd
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x1e78], r14
test rax, rax
je 0x1400079d0
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e80], r14
cmp qword [rbx + 0x1e90], r14
je 0x140007a18
mov qword [rbx + 0x1e88], r14
mov rcx, qword [rbx + 0x1e90]
test rcx, rcx
je 0x140007a0b
mov rax, qword [0x14025f8a0]
test rax, rax
je 0x140007a0b
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e90], r14
lea rcx, [rbx + 0x1ea0]
call fcn.14001ed10
lea rcx, [rbx + 0x1f60]
call fcn.14001ed10
lea rcx, [rbx + 0x2130]
call fcn.140015ac0
mov rcx, qword [rbx + 0x2160]
test rcx, rcx
je 0x140007a6e
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x2158], r14
test rax, rax
je 0x140007a61
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2160], r14
mov rcx, qword [rbx + 0x2170]
test rcx, rcx
je 0x140007aa0
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x2168], r14
test rax, rax
je 0x140007a93
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2170], r14
lea rcx, [rbx + 0x20d0]
call fcn.140015ca0
mov rcx, qword [rbx + 0x2100]
test rcx, rcx
je 0x140007ade
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x20f8], r14
test rax, rax
je 0x140007ad1
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 + 0x2120]
test rcx, rcx
je 0x140007b10
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x2118], r14
test rax, rax
je 0x140007b03
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2120], r14
mov rcx, qword [rbx + 0x30d8]
test rcx, rcx
je 0x140007b42
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x30d0], r14
test rax, rax
je 0x140007b35
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30d8], r14
mov rcx, qword [rbx + 0x30e8]
test rcx, rcx
je 0x140007b74
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x30e0], r14
test rax, rax
je 0x140007b67
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30e8], r14
mov rcx, qword [rbx + 0x2198]
test rcx, rcx
je 0x140007ba6
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x2190], r14
test rax, rax
je 0x140007b99
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 + 0x21a8]
test rcx, rcx
je 0x140007bd8
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x21a0], r14
test rax, rax
je 0x140007bcb
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21a8], r14
mov rcx, qword [rbx + 0x21b8]
test rcx, rcx
je 0x140007c0a
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x21b0], r14
test rax, rax
je 0x140007bfd
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21b8], r14
mov rcx, qword [rbx + 0x3130]
test rcx, rcx
je 0x140007c3c
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x3128], r14
test rax, rax
je 0x140007c2f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3130], r14
mov rcx, qword [rbx + 0x3120]
test rcx, rcx
je 0x140007c6e
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x3118], r14
test rax, rax
je 0x140007c61
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3120], r14
cmp qword [rbx + 0x3160], r14
je 0x140007c9e
mov rdi, qword [rbx + 0x3160]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140007c97
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3160], r14
mov rcx, qword [rbx + 0x3170]
test rcx, rcx
je 0x140007cd0
mov rax, qword [0x14025f8a0]
mov qword [rbx + 0x3168], r14
test rax, rax
je 0x140007cc3
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3170], r14
mov byte [rbx], r14b
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret