Function at 0x180007640
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 0x180007690
cmp byte [rcx + 1], 0
je 0x180007690
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x180007690
mov rcx, rdi
call fcn.1800220f0
mov rax, qword [0x18003e930]
test rax, rax
je 0x180007687
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 0x180007d08
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x30d1], r14b
je 0x180007722
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x180007722
mov rsi, qword [0x18003e930]
lea rcx, [rsp + 0x40]
mov qword [0x18003e930], rbx
mov dword [rbx + 0x30d4], r14d
mov qword [rsp + 0x40], r14
call fcn.180014ad0
lea rdx, [0x180032314]
mov rcx, rdi
mov rbp, rax
call fcn.1800028b0
mov rdi, rax
test rax, rax
je 0x18000771b
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 [0x18003e930], rsi
mov edx, 6
mov rcx, rbx
call fcn.180005120
mov eax, dword [rbx + 0x1a88]
mov ebp, r14d
test eax, eax
jle 0x1800077a5
mov rsi, r14
nop
test rsi, rsi
js 0x180007749
cmp ebp, eax
jl 0x180007763
mov r8d, 0x646
lea rdx, str.C:Users1DownloadsglGL_BaseHook_mainincludeimguiimgui.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 + 0x1a90]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x180007796
mov rcx, rdi
call fcn.180004980
mov rax, qword [0x18003e930]
test rax, rax
je 0x18000778d
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 + 0x1a88]
inc ebp
inc rsi
cmp ebp, eax
jl 0x180007740
mov rcx, qword [rbx + 0x1a90]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x1800077e1
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1a88], r14
test rax, rax
je 0x1800077d4
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a90], r14
mov rcx, qword [rbx + 0x1aa0]
test rcx, rcx
je 0x180007813
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1a98], r14
test rax, rax
je 0x180007806
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1aa0], r14
mov rcx, qword [rbx + 0x1ab0]
test rcx, rcx
je 0x180007845
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1aa8], r14
test rax, rax
je 0x180007838
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ab0], r14
mov qword [rbx + 0x1ae0], r14
mov rcx, qword [rbx + 0x1ac0]
test rcx, rcx
je 0x18000787e
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1ab8], r14
test rax, rax
je 0x180007871
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 0x1800078b0
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1ac8], r14
test rax, rax
je 0x1800078a3
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ad0], r14
mov qword [rbx + 0x1c90], r14
mov qword [rbx + 0x1af8], r14
mov qword [rbx + 0x1af0], r14
mov qword [rbx + 0x1ae8], r14
mov qword [rbx + 0x1b78], r14
mov qword [rbx + 0x1b60], r14
mov qword [rbx + 0x1b00], r14
mov rcx, qword [rbx + 0x1c18]
test rcx, rcx
je 0x180007913
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1c10], r14
test rax, rax
je 0x180007906
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c18], r14
mov rcx, qword [rbx + 0x1c28]
test rcx, rcx
je 0x180007945
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1c20], r14
test rax, rax
je 0x180007938
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c28], r14
mov rcx, qword [rbx + 0x1c38]
test rcx, rcx
je 0x180007977
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1c30], r14
test rax, rax
je 0x18000796a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c38], r14
mov rcx, qword [rbx + 0x1c78]
test rcx, rcx
je 0x1800079a9
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1c70], r14
test rax, rax
je 0x18000799c
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c78], r14
mov rcx, qword [rbx + 0x1c88]
test rcx, rcx
je 0x1800079e0
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1c80], r14
test rax, rax
je 0x1800079ce
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c88], r14
nop dword [rax + rax]
mov rcx, qword [rbx + 0x1e50]
test rcx, rcx
je 0x180007a12
mov rax, qword [0x18003e930]
mov qword [rbx + 0x1e48], r14
test rax, rax
je 0x180007a05
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e50], r14
cmp qword [rbx + 0x1e60], r14
je 0x180007a4d
mov qword [rbx + 0x1e58], r14
mov rcx, qword [rbx + 0x1e60]
test rcx, rcx
je 0x180007a40
mov rax, qword [0x18003e930]
test rax, rax
je 0x180007a40
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e60], r14
lea rcx, [rbx + 0x1e70]
call fcn.18001eac0
lea rcx, [rbx + 0x1f30]
call fcn.18001eac0
lea rcx, [rbx + 0x2100]
call fcn.1800156f0
mov rcx, qword [rbx + 0x2130]
test rcx, rcx
je 0x180007aa3
mov rax, qword [0x18003e930]
mov qword [rbx + 0x2128], r14
test rax, rax
je 0x180007a96
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2130], r14
mov rcx, qword [rbx + 0x2140]
test rcx, rcx
je 0x180007ad5
mov rax, qword [0x18003e930]
mov qword [rbx + 0x2138], r14
test rax, rax
je 0x180007ac8
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2140], r14
lea rcx, [rbx + 0x20a0]
call fcn.180015850
mov rcx, qword [rbx + 0x20d0]
test rcx, rcx
je 0x180007b13
mov rax, qword [0x18003e930]
mov qword [rbx + 0x20c8], r14
test rax, rax
je 0x180007b06
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20d0], r14
mov rcx, qword [rbx + 0x20f0]
test rcx, rcx
je 0x180007b45
mov rax, qword [0x18003e930]
mov qword [rbx + 0x20e8], r14
test rax, rax
je 0x180007b38
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20f0], r14
mov rcx, qword [rbx + 0x30a8]
test rcx, rcx
je 0x180007b77
mov rax, qword [0x18003e930]
mov qword [rbx + 0x30a0], r14
test rax, rax
je 0x180007b6a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30a8], r14
mov rcx, qword [rbx + 0x30b8]
test rcx, rcx
je 0x180007ba9
mov rax, qword [0x18003e930]
mov qword [rbx + 0x30b0], r14
test rax, rax
je 0x180007b9c
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30b8], r14
mov rcx, qword [rbx + 0x2168]
test rcx, rcx
je 0x180007bdb
mov rax, qword [0x18003e930]
mov qword [rbx + 0x2160], r14
test rax, rax
je 0x180007bce
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2168], r14
mov rcx, qword [rbx + 0x2178]
test rcx, rcx
je 0x180007c0d
mov rax, qword [0x18003e930]
mov qword [rbx + 0x2170], r14
test rax, rax
je 0x180007c00
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2178], r14
mov rcx, qword [rbx + 0x2188]
test rcx, rcx
je 0x180007c3f
mov rax, qword [0x18003e930]
mov qword [rbx + 0x2180], r14
test rax, rax
je 0x180007c32
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2188], r14
mov rcx, qword [rbx + 0x3100]
test rcx, rcx
je 0x180007c71
mov rax, qword [0x18003e930]
mov qword [rbx + 0x30f8], r14
test rax, rax
je 0x180007c64
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3100], r14
mov rcx, qword [rbx + 0x30f0]
test rcx, rcx
je 0x180007ca3
mov rax, qword [0x18003e930]
mov qword [rbx + 0x30e8], r14
test rax, rax
je 0x180007c96
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30f0], r14
cmp qword [rbx + 0x3130], r14
je 0x180007cd3
mov rdi, qword [rbx + 0x3130]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x180007ccc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3130], r14
mov rcx, qword [rbx + 0x3140]
test rcx, rcx
je 0x180007d05
mov rax, qword [0x18003e930]
mov qword [rbx + 0x3138], r14
test rax, rax
je 0x180007cf8
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3140], r14
mov byte [rbx], r14b
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret