Function at 0x180078720
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x2a0
mov rax, qword [0x1801a7040]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rax, qword [0x1801d1228]
mov rsi, rcx
mov rbp, qword [0x1801d12a0]
mov rbx, qword [rax + 0x58]
mov eax, dword [0x1801d1214]
test al, 1
jne 0x18007877c
or eax, 1
movabs rcx, 0x9241b8778dd136bd
mov dword [0x1801d1214], eax
call fcn.180076d90
mov dword [0x1801d1484], eax
jmp 0x180078782
mov eax, dword [0x1801d1484]
mov edx, eax
mov edx, dword [rdx + rbp]
cmp edx, 0xffffffff
je 0x180078a90
and edx, 0x7fff
mov qword [rsp + 0x2d0], r14
mov rcx, rbx
call fcn.18005f9f0
mov r14, rax
test rax, rax
je 0x180078a88
mov rcx, qword [0x1801d1b20]
shl rcx, 5
add rcx, qword [0x1801ceea0]
cmp qword [rcx + 0x10], 8
lea rdx, [rcx + 0x18]
jbe 0x1800787d2
mov rdx, qword [rdx]
mov rax, qword [0x1801d11c8]
movzx ecx, byte [rdx]
mov dword [rax + 0x40], ecx
call fcn.180078490
call fcn.180082ea0
call fcn.18007af40
xorps xmm0, xmm0
mov qword [rsp + 0x60], 0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x30], xmm0
mov rdx, rsi
movdqa xmmword [rsp + 0x40], xmm1
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x68], 0
call fcn.1800814b0
mov rax, qword [0x1801d1c18]
shl rax, 5
add rax, qword [0x1801ceea0]
cmp qword [rax + 0x10], 8
lea rcx, [rax + 0x18]
jbe 0x180078844
mov rcx, qword [rcx]
cmp byte [rcx], 0
je 0x1800789d9
mov rcx, qword [0x1801d1218]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x100]
call rdx
test al, al
je 0x1800789d9
mov eax, dword [0x1801d1780]
mov qword [rsp + 0x2c8], rdi
mov rdi, qword [0x1801d12a0]
test al, 1
jne 0x1800788a1
or eax, 1
movabs rcx, 0x9b08cd05934e8b05
mov dword [0x1801d1780], eax
call fcn.180076d90
mov dword [0x1801d17a8], eax
jmp 0x1800788a7
mov eax, dword [0x1801d17a8]
mov eax, eax
mov rdi, qword [rax + rdi]
mov eax, dword [0x1801d17e0]
test al, 1
jne 0x1800788d7
or eax, 1
movabs rcx, 0xa281a13d0e873e0
mov dword [0x1801d17e0], eax
call fcn.180076d90
mov dword [0x1801d179c], eax
jmp 0x1800788dd
mov eax, dword [0x1801d179c]
mov eax, eax
mov ebx, dword [rax + rdi]
mov eax, dword [0x1801d1794]
test al, 1
jne 0x18007890c
or eax, 1
movabs rcx, 0xb6a14a13d12c5bc9
mov dword [0x1801d1794], eax
call fcn.180076d90
mov dword [0x1801d1758], eax
jmp 0x180078912
mov eax, dword [0x1801d1758]
mov eax, eax
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rcx, [0x180143718]
mov edx, 0x8000
mov edi, dword [rax + rdi]
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1800789d1
cmp ebx, dword [0x1801d17a0]
jbe 0x18007897e
mov r9, qword [rsp + 0x20]
lea r8, str._s.vapehookexample.wav
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.180079e80
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x20001
call qword [sym.imp.WINMM.dll_PlaySoundW]
cmp edi, dword [0x1801d173c]
jbe 0x1800789ba
mov r9, qword [rsp + 0x20]
lea r8, str._s.vapehook_bubble.wav
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.180079e80
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x20001
call qword [sym.imp.WINMM.dll_PlaySoundW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [0x1801d17a0], ebx
mov dword [0x1801d173c], edi
mov rdi, qword [rsp + 0x2c8]
mov rcx, rsi
call fcn.18007c700
mov r8, r14
mov rdx, rbp
mov rcx, rsi
call fcn.18007f080
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x180078a4c
mov rcx, qword [rsp + 0x58]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, r8
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r8
lea rdx, [rdx + rdx*2]
shl rdx, 2
cmp rdx, 0x1000
jb 0x180078a44
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180078aab
mov rcx, r8
call fcn.1800f3cac
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180078a88
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x180078a83
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180078aab
call fcn.1800f3cac
mov r14, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800f39f0
add rsp, 0x2a0
pop rsi
pop rbp
pop rbx
ret
call fcn.180101fd4
int3