Function at 0x140035900
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0xa8]
mov rbx, rcx
test rax, rax
je 0x140035951
cmp byte [rcx + 1], 0
je 0x140035951
mov byte [rax + 0x18], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140035951
mov rcx, rdi
call fcn.140063110
mov rax, qword [0x14018ed30]
test rax, rax
je 0x140035948
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x140036070
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x3208], r15b
je 0x1400359de
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400359de
mov rsi, qword [0x14018ed30]
lea rcx, [rsp + 0x40]
mov qword [0x14018ed30], rbx
mov dword [rbx + 0x320c], r15d
mov qword [rsp + 0x40], r15
call fcn.140047480
lea rdx, [0x14011c5bc]
mov rcx, rdi
mov rbp, rax
call fcn.14002f580
mov rdi, rax
test rax, rax
je 0x1400359e5
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 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]
jmp 0x1400359e5
mov rsi, qword [0x14018ed30]
mov qword [0x14018ed30], rbx
call fcn.14004a4a0
mov eax, dword [rbx + 0x31d0]
mov qword [0x14018ed30], rsi
mov esi, r15d
test eax, eax
jle 0x140035a7f
mov qword [rsp + 0x58], r14
mov rbp, r15
mov r14, r15
test rbp, rbp
js 0x140035a19
cmp esi, eax
jl 0x140035a33
mov r8d, 0x6c9
lea rdx, str.C:UsersjeremDesktopLauncher_Ximguiimgui.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 + 0x31d8]
mov rdi, qword [rax + r14 + 8]
test rdi, rdi
je 0x140035a67
mov rcx, rdi
call fcn.14004c5f0
mov rax, qword [0x14018ed30]
test rax, rax
je 0x140035a5e
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x31d0]
inc esi
inc rbp
add r14, 0x10
cmp esi, eax
jl 0x140035a10
mov r14, qword [rsp + 0x58]
mov edx, 6
mov rcx, rbx
call fcn.140032bb0
mov eax, dword [rbx + 0x1cc8]
mov ebp, r15d
test eax, eax
jle 0x140035b05
mov rsi, r15
nop dword [rax]
test rsi, rsi
js 0x140035aa9
cmp ebp, eax
jl 0x140035ac3
mov r8d, 0x6c9
lea rdx, str.C:UsersjeremDesktopLauncher_Ximguiimgui.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 + 0x1cd0]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x140035af6
mov rcx, rdi
call fcn.140032390
mov rax, qword [0x14018ed30]
test rax, rax
je 0x140035aed
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x1cc8]
inc ebp
inc rsi
cmp ebp, eax
jl 0x140035aa0
mov rcx, qword [rbx + 0x1cd0]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x140035b3c
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1cc8], r15
test rax, rax
je 0x140035b2f
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cd0], r15
mov rcx, qword [rbx + 0x1ce0]
test rcx, rcx
je 0x140035b6e
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1cd8], r15
test rax, rax
je 0x140035b61
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ce0], r15
mov rcx, qword [rbx + 0x1cf0]
test rcx, rcx
je 0x140035ba0
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1ce8], r15
test rax, rax
je 0x140035b93
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cf0], r15
mov qword [rbx + 0x1d28], r15
mov rcx, qword [rbx + 0x1d00]
test rcx, rcx
je 0x140035bd9
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1cf8], r15
test rax, rax
je 0x140035bcc
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d00], r15
mov rcx, qword [rbx + 0x1d10]
test rcx, rcx
je 0x140035c0b
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1d08], r15
test rax, rax
je 0x140035bfe
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d10], r15
mov qword [rbx + 0x1f60], r15
mov qword [rbx + 0x1d38], r15
mov qword [rbx + 0x1d30], r15
mov qword [rbx + 0x1dc0], r15
mov qword [rbx + 0x1da8], r15
mov qword [rbx + 0x1d48], r15
mov rcx, qword [rbx + 0x1e88]
test rcx, rcx
je 0x140035c67
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1e80], r15
test rax, rax
je 0x140035c5a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e88], r15
mov rcx, qword [rbx + 0x1e98]
test rcx, rcx
je 0x140035c99
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1e90], r15
test rax, rax
je 0x140035c8c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e98], r15
mov rcx, qword [rbx + 0x1ea8]
test rcx, rcx
je 0x140035ccb
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1ea0], r15
test rax, rax
je 0x140035cbe
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ea8], r15
mov rcx, qword [rbx + 0x1ee8]
test rcx, rcx
je 0x140035cfd
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1ee0], r15
test rax, rax
je 0x140035cf0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ee8], r15
mov rcx, qword [rbx + 0x1ef8]
test rcx, rcx
je 0x140035d2f
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1ef0], r15
test rax, rax
je 0x140035d22
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ef8], r15
mov eax, dword [rbx + 0x1f00]
mov edi, r15d
mov qword [rbx + 0x1f28], r15
mov qword [rbx + 0x1f20], r15
mov qword [rbx + 0x1f18], r15
test eax, eax
jle 0x140035d96
mov rsi, r15
test rsi, rsi
js 0x140035d5d
cmp edi, eax
jl 0x140035d77
mov r8d, 0x6c9
lea rdx, str.C:UsersjeremDesktopLauncher_Ximguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x1f08]
mov rcx, qword [rcx + rsi*8]
call fcn.1400568f0
mov eax, dword [rbx + 0x1f00]
inc edi
inc rsi
cmp edi, eax
jl 0x140035d54
mov rcx, qword [rbx + 0x1f08]
mov rsi, qword [rsp + 0x50]
test rcx, rcx
je 0x140035dcd
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x1f00], r15
test rax, rax
je 0x140035dc0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f08], r15
lea rcx, [rbx + 0x21f0]
call fcn.140055280
mov rcx, qword [rbx + 0x2220]
test rcx, rcx
je 0x140035e0b
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x2218], r15
test rax, rax
je 0x140035dfe
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2220], r15
mov rcx, qword [rbx + 0x2230]
test rcx, rcx
je 0x140035e3d
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x2228], r15
test rax, rax
je 0x140035e30
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2230], r15
lea rcx, [rbx + 0x2190]
call fcn.140055460
mov rcx, qword [rbx + 0x21c0]
test rcx, rcx
je 0x140035e7b
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x21b8], r15
test rax, rax
je 0x140035e6e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21c0], r15
mov rcx, qword [rbx + 0x21e0]
test rcx, rcx
je 0x140035ead
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x21d8], r15
test rax, rax
je 0x140035ea0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21e0], r15
mov rcx, qword [rbx + 0x3198]
test rcx, rcx
je 0x140035edf
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x3190], r15
test rax, rax
je 0x140035ed2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3198], r15
mov rcx, qword [rbx + 0x31a8]
test rcx, rcx
je 0x140035f11
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x31a0], r15
test rax, rax
je 0x140035f04
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x31a8], r15
mov rcx, qword [rbx + 0x2258]
test rcx, rcx
je 0x140035f43
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x2250], r15
test rax, rax
je 0x140035f36
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2258], r15
mov rcx, qword [rbx + 0x2268]
test rcx, rcx
je 0x140035f75
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x2260], r15
test rax, rax
je 0x140035f68
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2268], r15
mov rcx, qword [rbx + 0x2278]
test rcx, rcx
je 0x140035fa7
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x2270], r15
test rax, rax
je 0x140035f9a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2278], r15
mov rcx, qword [rbx + 0x3238]
test rcx, rcx
je 0x140035fd9
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x3230], r15
test rax, rax
je 0x140035fcc
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3238], r15
mov rcx, qword [rbx + 0x3228]
test rcx, rcx
je 0x14003600b
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x3220], r15
test rax, rax
je 0x140035ffe
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3228], r15
cmp qword [rbx + 0x3270], r15
je 0x14003603b
mov rdi, qword [rbx + 0x3270]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140036034
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3270], r15
mov rcx, qword [rbx + 0x3280]
test rcx, rcx
je 0x14003606d
mov rax, qword [0x14018ed30]
mov qword [rbx + 0x3278], r15
test rax, rax
je 0x140036060
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3280], r15
mov byte [rbx], r15b
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret