Function at 0x14002be20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x14011d710]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x14002be86
cmp byte [rax + 1], 0
je 0x14002be86
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x14002be86
mov rcx, rbx
call fcn.140063380
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002be76
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x14011d710]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3d80]
test rcx, rcx
je 0x14002bebf
mov qword [rdi + 0x3d78], r12
test rax, rax
je 0x14002beab
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d80], r12
mov rax, qword [0x14011d710]
cmp byte [rdi], r12b
je 0x14002c6e1
cmp byte [rdi + 0x5db0], r12b
je 0x14002bf29
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14002bf29
mov dword [rax + 0x5db4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140045590
mov rsi, rax
lea rdx, [0x1400de79c]
mov rcx, rbx
call fcn.140028840
mov rbx, rax
test rax, rax
je 0x14002bf29
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
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]
call fcn.140048be0
mov esi, r12d
mov eax, dword [rdi + 0x5d70]
test eax, eax
jle 0x14002bfab
mov rbp, r12
mov r14, r12
test rbp, rbp
js 0x14002bf4a
cmp esi, eax
jl 0x14002bf64
mov r8d, 0x754
lea rdx, str.F:OvixLoaderimguiimgui.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 + 0x5d78]
mov rbx, qword [rax + r14 + 8]
test rbx, rbx
je 0x14002bf98
mov rcx, rbx
call fcn.14004b170
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002bf8f
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
inc rbp
add r14, 0x10
mov eax, dword [rdi + 0x5d70]
cmp esi, eax
jl 0x14002bf41
mov edx, 6
mov rcx, rdi
call fcn.14002c700
mov esi, r12d
cmp dword [rdi + 0x3fa8], r12d
jle 0x14002c011
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3fb0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14002c003
mov rcx, rbx
call fcn.14002ce40
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002bffa
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3fa8]
jl 0x14002bfd0
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x14002c043
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c036
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb0], r12
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x14002c075
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c068
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x14002c0a7
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c09a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov qword [rdi + 0x4008], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x14002c0e0
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c0d3
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x14002c112
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c105
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov qword [rdi + 0x4a58], r12
mov qword [rdi + 0x4018], r12
mov qword [rdi + 0x4010], r12
mov qword [rdi + 0x40a0], r12
mov qword [rdi + 0x4088], r12
mov qword [rdi + 0x4020], r12
lea rcx, [rdi + 0x4740]
call fcn.1400266e0
mov rcx, qword [rdi + 0x4978]
test rcx, rcx
je 0x14002c17a
mov qword [rdi + 0x4970], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c16d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4978], r12
mov rcx, qword [rdi + 0x4988]
test rcx, rcx
je 0x14002c1ac
mov qword [rdi + 0x4980], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c19f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4988], r12
mov rcx, qword [rdi + 0x4998]
test rcx, rcx
je 0x14002c1de
mov qword [rdi + 0x4990], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c1d1
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4998], r12
mov rcx, qword [rdi + 0x49d8]
test rcx, rcx
je 0x14002c210
mov qword [rdi + 0x49d0], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c203
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49d8], r12
mov rcx, qword [rdi + 0x49e8]
test rcx, rcx
je 0x14002c242
mov qword [rdi + 0x49e0], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c235
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49e8], r12
mov qword [rdi + 0x4a20], r12
mov qword [rdi + 0x4a18], r12
mov qword [rdi + 0x4a10], r12
mov ebx, r12d
cmp dword [rdi + 0x49f8], r12d
jle 0x14002c28e
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x4a00]
mov rcx, qword [rcx + rsi]
call fcn.140056bb0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x49f8]
jl 0x14002c270
mov rcx, qword [rdi + 0x4a00]
test rcx, rcx
je 0x14002c2c0
mov qword [rdi + 0x49f8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c2b3
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a00], r12
lea rcx, [rdi + 0x4d28]
call fcn.1400552b0
mov rcx, qword [rdi + 0x4d58]
test rcx, rcx
je 0x14002c2fe
mov qword [rdi + 0x4d50], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c2f1
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d58], r12
mov rcx, qword [rdi + 0x4d68]
test rcx, rcx
je 0x14002c330
mov qword [rdi + 0x4d60], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c323
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d68], r12
mov ebx, r12d
cmp dword [rdi + 0x4ca8], r12d
jle 0x14002c378
mov rsi, r12
nop
mov rax, qword [rdi + 0x4cb0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14002c36a
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c363
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4ca8]
jl 0x14002c340
mov rcx, qword [rdi + 0x4cb0]
test rcx, rcx
je 0x14002c3aa
mov qword [rdi + 0x4ca8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c39d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cb0], r12
lea rcx, [rdi + 0x4cd8]
call fcn.140055490
mov esi, r12d
cmp dword [rdi + 0x4cc8], r12d
jle 0x14002c415
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4cd0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140062a20
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14002c407
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c400
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4cc8]
jl 0x14002c3d0
mov rcx, qword [rdi + 0x4cd0]
test rcx, rcx
je 0x14002c447
mov qword [rdi + 0x4cc8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c43a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cd0], r12
mov rcx, qword [rdi + 0x4d18]
test rcx, rcx
je 0x14002c479
mov qword [rdi + 0x4d10], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c46c
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d18], r12
mov rcx, qword [rdi + 0x5d30]
test rcx, rcx
je 0x14002c4ab
mov qword [rdi + 0x5d28], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c49e
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d30], r12
mov rcx, qword [rdi + 0x5d40]
test rcx, rcx
je 0x14002c4dd
mov qword [rdi + 0x5d38], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c4d0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d40], r12
mov rcx, qword [rdi + 0x4da8]
test rcx, rcx
je 0x14002c50f
mov qword [rdi + 0x4da0], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c502
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da8], r12
mov rcx, qword [rdi + 0x4db8]
test rcx, rcx
je 0x14002c541
mov qword [rdi + 0x4db0], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c534
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db8], r12
mov rcx, qword [rdi + 0x4dc8]
test rcx, rcx
je 0x14002c573
mov qword [rdi + 0x4dc0], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c566
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dc8], r12
mov dword [rdi + 0x5c18], r12d
mov rcx, qword [rdi + 0x5c28]
test rcx, rcx
je 0x14002c5ac
mov qword [rdi + 0x5c20], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c59f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c28], r12
mov rcx, qword [rdi + 0x5de0]
test rcx, rcx
je 0x14002c5de
mov qword [rdi + 0x5dd8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c5d1
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5de0], r12
mov rcx, qword [rdi + 0x5dd0]
test rcx, rcx
je 0x14002c610
mov qword [rdi + 0x5dc8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c603
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5dd0], r12
cmp qword [rdi + 0x5e58], 0
je 0x14002c641
mov rbx, qword [rdi + 0x5e58]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14002c63a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5e58], r12
mov rcx, qword [rdi + 0x5e68]
test rcx, rcx
je 0x14002c673
mov qword [rdi + 0x5e60], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c666
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e68], r12
mov rcx, qword [rdi + 0x5ea0]
test rcx, rcx
je 0x14002c6a5
mov qword [rdi + 0x5e98], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c698
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ea0], r12
mov rcx, qword [rdi + 0x5eb0]
test rcx, rcx
je 0x14002c6d7
mov qword [rdi + 0x5ea8], r12
mov rax, qword [0x14011d710]
test rax, rax
je 0x14002c6ca
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5eb0], r12
mov dword [rdi + 0x5eb8], r12d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret