Function at 0x14000ab80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x30
mov rax, qword [rcx + 0xa8]
mov rdi, rcx
test rax, rax
je 0x14000abd1
cmp byte [rcx + 1], 0
je 0x14000abd1
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x14000abd1
mov rcx, rbx
call fcn.1400275e0
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000abc8
dec dword [rax + 0x3b4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0xa8], r12
cmp byte [rdi], r12b
je 0x14000b3c1
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x20], r15
cmp byte [rdi + 0x3031], r12b
je 0x14000ac69
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000ac69
mov rsi, qword [0x14005eb98]
lea rcx, [rsp + 0x50]
mov qword [0x14005eb98], rdi
mov dword [rdi + 0x3034], r12d
mov qword [rsp + 0x50], r12
call fcn.140019cb0
lea rdx, [0x14004c07c]
mov rcx, rbx
mov rbp, rax
call fcn.140005130
mov rbx, rax
test rax, rax
je 0x14000ac62
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, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x14005eb98], rsi
mov edx, 6
mov rcx, rdi
call fcn.140007c90
mov eax, dword [rdi + 0x1bb0]
mov ebp, r12d
test eax, eax
jle 0x14000aceb
mov rsi, r12
test rsi, rsi
js 0x14000ac8f
cmp ebp, eax
jl 0x14000aca9
mov r8d, 0x68b
lea rdx, str.C:Usersdedocer_source_repos_bober_lagswitchImGuiimgui.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 [rdi + 0x1bb8]
mov rbx, qword [rax + rsi*8]
test rbx, rbx
je 0x14000acdc
mov rcx, rbx
call fcn.140007470
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000acd3
dec dword [rax + 0x3b4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rdi + 0x1bb0]
inc ebp
inc rsi
cmp ebp, eax
jl 0x14000ac86
mov rcx, qword [rdi + 0x1bb8]
test rcx, rcx
je 0x14000ad1d
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1bb0], r12
test rax, rax
je 0x14000ad10
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bb8], r12
mov rcx, qword [rdi + 0x1bc8]
test rcx, rcx
je 0x14000ad4f
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1bc0], r12
test rax, rax
je 0x14000ad42
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bc8], r12
mov rcx, qword [rdi + 0x1bd8]
test rcx, rcx
je 0x14000ad81
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1bd0], r12
test rax, rax
je 0x14000ad74
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bd8], r12
mov qword [rdi + 0x1c10], r12
mov rcx, qword [rdi + 0x1be8]
test rcx, rcx
je 0x14000adba
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1be0], r12
test rax, rax
je 0x14000adad
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1be8], r12
mov rcx, qword [rdi + 0x1bf8]
test rcx, rcx
je 0x14000adec
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1bf0], r12
test rax, rax
je 0x14000addf
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bf8], r12
mov qword [rdi + 0x1dc8], r12
mov qword [rdi + 0x1c20], r12
mov qword [rdi + 0x1c18], r12
mov qword [rdi + 0x1ca0], r12
mov qword [rdi + 0x1c88], r12
mov qword [rdi + 0x1c28], r12
mov rcx, qword [rdi + 0x1d40]
test rcx, rcx
je 0x14000ae48
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1d38], r12
test rax, rax
je 0x14000ae3b
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d40], r12
mov rcx, qword [rdi + 0x1d50]
test rcx, rcx
je 0x14000ae7a
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1d48], r12
test rax, rax
je 0x14000ae6d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d50], r12
mov rcx, qword [rdi + 0x1d60]
test rcx, rcx
je 0x14000aeac
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1d58], r12
test rax, rax
je 0x14000ae9f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d60], r12
mov rcx, qword [rdi + 0x1da0]
test rcx, rcx
je 0x14000aede
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1d98], r12
test rax, rax
je 0x14000aed1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1da0], r12
mov rcx, qword [rdi + 0x1db0]
test rcx, rcx
je 0x14000af10
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1da8], r12
test rax, rax
je 0x14000af03
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1db0], r12
mov eax, dword [rdi + 0x1db8]
mov r15d, r12d
mov qword [rsp + 0x28], r14
test eax, eax
jle 0x14000b02d
mov r14, r12
nop dword [rax]
test r14, r14
js 0x14000af3a
cmp r15d, eax
jl 0x14000af54
mov r8d, 0x68b
lea rdx, str.C:Usersdedocer_source_repos_bober_lagswitchImGuiimgui.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 [rdi + 0x1dc0]
mov rbp, qword [rax + r14*8]
test rbp, rbp
je 0x14000b018
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x14000af94
mov rcx, rbx
call fcn.140003b80
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000af8b
dec dword [rax + 0x3b4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rbp + 0x38]
test rbx, rbx
je 0x14000afc0
mov rcx, rbx
call fcn.140003b80
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000afb7
dec dword [rax + 0x3b4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, 2
lea rsi, [rbp + 0x98]
nop dword [rax]
mov rcx, qword [rsi - 0x10]
lea rsi, [rsi - 0x10]
dec rbx
test rcx, rcx
je 0x14000aff8
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000aff2
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x14000afd0
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000b00f
dec dword [rax + 0x3b4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rdi + 0x1db8]
inc r15d
inc r14
cmp r15d, eax
jl 0x14000af30
mov rcx, qword [rdi + 0x1dc0]
mov r15, qword [rsp + 0x20]
test rcx, rcx
je 0x14000b064
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x1db8], r12
test rax, rax
je 0x14000b057
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1dc0], r12
lea rcx, [rdi + 0x2060]
call fcn.14001a8b0
mov rcx, qword [rdi + 0x2090]
test rcx, rcx
je 0x14000b0a2
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x2088], r12
test rax, rax
je 0x14000b095
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2090], r12
mov rcx, qword [rdi + 0x20a0]
test rcx, rcx
je 0x14000b0d4
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x2098], r12
test rax, rax
je 0x14000b0c7
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20a0], r12
lea rcx, [rdi + 0x2000]
call fcn.14001aa10
mov eax, dword [rdi + 0x2028]
mov esi, r12d
test eax, eax
jle 0x14000b18b
mov r14, r12
mov rbp, r12
test r14, r14
js 0x14000b100
cmp esi, eax
jl 0x14000b11a
mov r8d, 0x68b
lea rdx, str.C:Usersdedocer_source_repos_bober_lagswitchImGuiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [rdi + 0x2030]
mov rcx, qword [rbx + rbp + 0x40]
test rcx, rcx
je 0x14000b143
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000b13d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140026e60
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000b171
mov rax, qword [0x14005eb98]
test rax, rax
je 0x14000b16b
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rdi + 0x2028]
inc esi
inc r14
add rbp, 0x90
cmp esi, eax
jl 0x14000b0f7
mov rcx, qword [rdi + 0x2030]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14000b1cc
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x2028], r12
test rax, rax
je 0x14000b1bf
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2030], r12
mov rcx, qword [rdi + 0x2050]
test rcx, rcx
je 0x14000b1fe
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x2048], r12
test rax, rax
je 0x14000b1f1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2050], r12
mov rcx, qword [rdi + 0x3008]
test rcx, rcx
je 0x14000b230
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x3000], r12
test rax, rax
je 0x14000b223
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3008], r12
mov rcx, qword [rdi + 0x3018]
test rcx, rcx
je 0x14000b262
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x3010], r12
test rax, rax
je 0x14000b255
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3018], r12
mov rcx, qword [rdi + 0x20c8]
test rcx, rcx
je 0x14000b294
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x20c0], r12
test rax, rax
je 0x14000b287
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20c8], r12
mov rcx, qword [rdi + 0x20d8]
test rcx, rcx
je 0x14000b2c6
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x20d0], r12
test rax, rax
je 0x14000b2b9
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20d8], r12
mov rcx, qword [rdi + 0x20e8]
test rcx, rcx
je 0x14000b2f8
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x20e0], r12
test rax, rax
je 0x14000b2eb
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20e8], r12
mov rcx, qword [rdi + 0x3060]
test rcx, rcx
je 0x14000b32a
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x3058], r12
test rax, rax
je 0x14000b31d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3060], r12
mov rcx, qword [rdi + 0x3050]
test rcx, rcx
je 0x14000b35c
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x3048], r12
test rax, rax
je 0x14000b34f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3050], r12
cmp qword [rdi + 0x3098], r12
je 0x14000b38c
mov rbx, qword [rdi + 0x3098]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000b385
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3098], r12
mov rcx, qword [rdi + 0x30a8]
test rcx, rcx
je 0x14000b3be
mov rax, qword [0x14005eb98]
mov qword [rdi + 0x30a0], r12
test rax, rax
je 0x14000b3b1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x30a8], r12
mov byte [rdi], r12b
add rsp, 0x30
pop r12
pop rdi
pop rbx
ret