Function at 0x140007770
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 0x1400077c0
cmp byte [rcx + 1], 0
je 0x1400077c0
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x1400077c0
mov rcx, rdi
call fcn.140022fe0
mov rax, qword [0x1402d5090]
test rax, rax
je 0x1400077b7
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 0x140007e38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x3101], r14b
je 0x140007852
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140007852
mov rsi, qword [0x1402d5090]
lea rcx, [rsp + 0x40]
mov qword [0x1402d5090], rbx
mov dword [rbx + 0x3104], r14d
mov qword [rsp + 0x40], r14
call fcn.140015b00
lea rdx, [0x1400b01c4]
mov rcx, rdi
mov rbp, rax
call fcn.140002ef0
mov rdi, rax
test rax, rax
je 0x14000784b
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 [0x1402d5090], rsi
mov edx, 6
mov rcx, rbx
call fcn.1400052c0
mov eax, dword [rbx + 0x1ab8]
mov ebp, r14d
test eax, eax
jle 0x1400078d5
mov rsi, r14
nop
test rsi, rsi
js 0x140007879
cmp ebp, eax
jl 0x140007893
mov r8d, 0x657
lea rdx, str.D:_ramknifeimgui.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 0x1400078c6
mov rcx, rdi
call fcn.1400049b0
mov rax, qword [0x1402d5090]
test rax, rax
je 0x1400078bd
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 0x140007870
mov rcx, qword [rbx + 0x1ac0]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x140007911
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1ab8], r14
test rax, rax
je 0x140007904
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 0x140007943
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1ac8], r14
test rax, rax
je 0x140007936
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 0x140007975
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1ad8], r14
test rax, rax
je 0x140007968
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 0x1400079ae
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1ae8], r14
test rax, rax
je 0x1400079a1
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 0x1400079e0
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1af8], r14
test rax, rax
je 0x1400079d3
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 0x140007a43
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1c40], 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 + 0x1c48], r14
mov rcx, qword [rbx + 0x1c58]
test rcx, rcx
je 0x140007a75
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1c50], 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 + 0x1c58], r14
mov rcx, qword [rbx + 0x1c68]
test rcx, rcx
je 0x140007aa7
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1c60], 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 + 0x1c68], r14
mov rcx, qword [rbx + 0x1ca8]
test rcx, rcx
je 0x140007ad9
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1ca0], 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 + 0x1ca8], r14
mov rcx, qword [rbx + 0x1cb8]
test rcx, rcx
je 0x140007b10
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1cb0], 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 + 0x1cb8], r14
nop dword [rax + rax]
mov rcx, qword [rbx + 0x1e80]
test rcx, rcx
je 0x140007b42
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x1e78], 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 + 0x1e80], r14
cmp qword [rbx + 0x1e90], r14
je 0x140007b7d
mov qword [rbx + 0x1e88], r14
mov rcx, qword [rbx + 0x1e90]
test rcx, rcx
je 0x140007b70
mov rax, qword [0x1402d5090]
test rax, rax
je 0x140007b70
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.14001fcd0
lea rcx, [rbx + 0x1f60]
call fcn.14001fcd0
lea rcx, [rbx + 0x2130]
call fcn.140016710
mov rcx, qword [rbx + 0x2160]
test rcx, rcx
je 0x140007bd3
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x2158], 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 + 0x2160], r14
mov rcx, qword [rbx + 0x2170]
test rcx, rcx
je 0x140007c05
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x2168], r14
test rax, rax
je 0x140007bf8
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.1400168f0
mov rcx, qword [rbx + 0x2100]
test rcx, rcx
je 0x140007c43
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x20f8], r14
test rax, rax
je 0x140007c36
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 0x140007c75
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x2118], r14
test rax, rax
je 0x140007c68
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 0x140007ca7
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x30d0], r14
test rax, rax
je 0x140007c9a
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 0x140007cd9
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x30e0], r14
test rax, rax
je 0x140007ccc
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 0x140007d0b
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x2190], r14
test rax, rax
je 0x140007cfe
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 0x140007d3d
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x21a0], r14
test rax, rax
je 0x140007d30
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 0x140007d6f
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x21b0], r14
test rax, rax
je 0x140007d62
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 0x140007da1
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x3128], r14
test rax, rax
je 0x140007d94
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 0x140007dd3
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x3118], r14
test rax, rax
je 0x140007dc6
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 0x140007e03
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 0x140007dfc
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 0x140007e35
mov rax, qword [0x1402d5090]
mov qword [rbx + 0x3168], r14
test rax, rax
je 0x140007e28
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