Function at 0x14001ae10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14001ae76
cmp byte [rcx + 1], 0
je 0x14001ae76
mov byte [rax + 0x18], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x14001ae76
mov rcx, rdi
call fcn.140046700
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001ae67
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x14001b64d
cmp byte [rbx + 0x31f8], r15b
je 0x14001aef9
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001aef9
mov rsi, qword [0x14011c538]
mov qword [0x14011c538], rbx
mov dword [rbx + 0x31fc], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14002c1d0
mov rbp, rax
lea rdx, [0x140100ebc]
mov rcx, rdi
call fcn.140015410
mov rdi, rax
test rax, rax
je 0x14001af00
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 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]
jmp 0x14001af00
mov rsi, qword [0x14011c538]
mov qword [0x14011c538], rbx
call fcn.14002f0e0
mov qword [0x14011c538], rsi
mov esi, r15d
mov eax, dword [rbx + 0x31c0]
test eax, eax
jle 0x14001afd9
mov rbp, r15
mov r14, r15
nop word [rax + rax]
test rbp, rbp
js 0x14001af39
cmp esi, eax
jl 0x14001af53
mov r8d, 0x6c7
lea rdx, str.C:UserswhatwDocumentsGitHubPain_Patek_Loaderimguiimgui.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 + 0x31c8]
mov rdi, qword [r14 + rax + 8]
test rdi, rdi
je 0x14001afc2
mov rcx, qword [rdi + 0x38]
call fcn.14003a6e0
mov qword [rdi + 0x38], r15
mov qword [rdi + 0x20], r15
mov qword [rdi + 0x18], r15
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001afa1
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001af94
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001afb3
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
inc rbp
add r14, 0x10
mov eax, dword [rbx + 0x31c0]
cmp esi, eax
jl 0x14001af30
mov edx, 6
mov rcx, rbx
call fcn.140018060
mov ebp, r15d
mov eax, dword [rbx + 0x1cb8]
test eax, eax
jle 0x14001b061
mov rsi, r15
test rsi, rsi
js 0x14001afff
cmp ebp, eax
jl 0x14001b019
mov r8d, 0x6c7
lea rdx, str.C:UserswhatwDocumentsGitHubPain_Patek_Loaderimguiimgui.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 + 0x1cc0]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x14001b052
mov rcx, rdi
call fcn.140017870
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b043
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
inc rsi
mov eax, dword [rbx + 0x1cb8]
cmp ebp, eax
jl 0x14001aff6
mov rcx, qword [rbx + 0x1cc0]
test rcx, rcx
je 0x14001b099
mov qword [rbx + 0x1cb8], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b086
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cc0], r15
mov rcx, qword [rbx + 0x1cd0]
test rcx, rcx
je 0x14001b0d1
mov qword [rbx + 0x1cc8], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b0be
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cd0], r15
mov rcx, qword [rbx + 0x1ce0]
test rcx, rcx
je 0x14001b109
mov qword [rbx + 0x1cd8], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b0f6
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ce0], r15
mov qword [rbx + 0x1d18], r15
mov rcx, qword [rbx + 0x1cf0]
test rcx, rcx
je 0x14001b148
mov qword [rbx + 0x1ce8], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b135
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cf0], r15
mov rcx, qword [rbx + 0x1d00]
test rcx, rcx
je 0x14001b180
mov qword [rbx + 0x1cf8], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b16d
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1d00], r15
mov qword [rbx + 0x1f50], r15
mov qword [rbx + 0x1d28], r15
mov qword [rbx + 0x1d20], r15
mov qword [rbx + 0x1db0], r15
mov qword [rbx + 0x1d98], r15
mov qword [rbx + 0x1d38], r15
mov rcx, qword [rbx + 0x1e78]
test rcx, rcx
je 0x14001b1e2
mov qword [rbx + 0x1e70], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b1cf
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e78], r15
mov rcx, qword [rbx + 0x1e88]
test rcx, rcx
je 0x14001b21a
mov qword [rbx + 0x1e80], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b207
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e88], r15
mov rcx, qword [rbx + 0x1e98]
test rcx, rcx
je 0x14001b252
mov qword [rbx + 0x1e90], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b23f
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e98], r15
mov rcx, qword [rbx + 0x1ed8]
test rcx, rcx
je 0x14001b28a
mov qword [rbx + 0x1ed0], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b277
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ed8], r15
mov rcx, qword [rbx + 0x1ee8]
test rcx, rcx
je 0x14001b2c2
mov qword [rbx + 0x1ee0], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b2af
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ee8], r15
mov qword [rbx + 0x1f18], r15
mov qword [rbx + 0x1f10], r15
mov qword [rbx + 0x1f08], r15
mov edi, r15d
mov eax, dword [rbx + 0x1ef0]
test eax, eax
jle 0x14001b329
mov rsi, r15
test rsi, rsi
js 0x14001b2f0
cmp edi, eax
jl 0x14001b30a
mov r8d, 0x6c7
lea rdx, str.C:UserswhatwDocumentsGitHubPain_Patek_Loaderimguiimgui.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 + 0x1ef8]
mov rcx, qword [rcx + rsi*8]
call fcn.14003a5e0
inc edi
inc rsi
mov eax, dword [rbx + 0x1ef0]
cmp edi, eax
jl 0x14001b2e7
mov rcx, qword [rbx + 0x1ef8]
test rcx, rcx
je 0x14001b361
mov qword [rbx + 0x1ef0], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b34e
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ef8], r15
lea rcx, [rbx + 0x21e0]
call fcn.1400395b0
mov rcx, qword [rbx + 0x2210]
test rcx, rcx
je 0x14001b3a5
mov qword [rbx + 0x2208], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b392
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2210], r15
mov rcx, qword [rbx + 0x2220]
test rcx, rcx
je 0x14001b3dd
mov qword [rbx + 0x2218], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b3ca
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2220], r15
lea rcx, [rbx + 0x2180]
call fcn.1400397a0
mov rcx, qword [rbx + 0x21b0]
test rcx, rcx
je 0x14001b421
mov qword [rbx + 0x21a8], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b40e
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x21b0], r15
mov rcx, qword [rbx + 0x21d0]
test rcx, rcx
je 0x14001b459
mov qword [rbx + 0x21c8], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b446
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x21d0], r15
mov rcx, qword [rbx + 0x3188]
test rcx, rcx
je 0x14001b491
mov qword [rbx + 0x3180], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b47e
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3188], r15
mov rcx, qword [rbx + 0x3198]
test rcx, rcx
je 0x14001b4c9
mov qword [rbx + 0x3190], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b4b6
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3198], r15
mov rcx, qword [rbx + 0x2248]
test rcx, rcx
je 0x14001b501
mov qword [rbx + 0x2240], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b4ee
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2248], r15
mov rcx, qword [rbx + 0x2258]
test rcx, rcx
je 0x14001b539
mov qword [rbx + 0x2250], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b526
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2258], r15
mov rcx, qword [rbx + 0x2268]
test rcx, rcx
je 0x14001b571
mov qword [rbx + 0x2260], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b55e
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2268], r15
mov rcx, qword [rbx + 0x3228]
test rcx, rcx
je 0x14001b5a9
mov qword [rbx + 0x3220], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b596
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3228], r15
mov rcx, qword [rbx + 0x3218]
test rcx, rcx
je 0x14001b5e1
mov qword [rbx + 0x3210], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b5ce
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3218], r15
cmp qword [rbx + 0x3260], 0
je 0x14001b612
mov rdi, qword [rbx + 0x3260]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14001b60b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3260], r15
mov rcx, qword [rbx + 0x3270]
test rcx, rcx
je 0x14001b64a
mov qword [rbx + 0x3268], r15
mov rax, qword [0x14011c538]
test rax, rax
je 0x14001b637
dec dword [rax + 0x3b0]
mov rdx, qword [0x14011c540]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3270], r15
mov byte [rbx], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret