Function at 0x100009380
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x8b0
mov rax, qword [0x100015138]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
xor r13d, r13d
mov rdi, rcx
lea rax, [rsp + 0x38]
lea r9, [0x1000019a8]
lea rcx, [0x100001c60]
lea r8d, [r13 + 3]
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r13d
jl 0x100009711
cmp qword [rsp + 0x38], r13
je 0x100009711
xor ecx, ecx
call fcn.10000e19c
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r12d, eax
mov ebp, r13d
call fcn.10000885c
mov rbx, qword [rsp + 0x30]
or rsi, 0xffffffffffffffff
mov r14d, 0x1fe
cmp dword [rbx - 0x10], r13d
jne 0x100009573
cmp r12d, r13d
jne 0x100009682
lea r8d, [r14 - 0x14]
lea rcx, [rsp + 0x2b2]
xor edx, edx
mov word [rsp + 0x2b0], r13w
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x2b0]
mov ecx, 0xf6
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
or rsi, rsi
xor eax, eax
lea rdi, [rsp + 0x2b0]
mov rcx, rsi
lea rdx, [rsp + 0x2b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.1000054e4
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x4a2]
mov r8, r14
xor edx, edx
mov word [rsp + 0x4a0], r13w
call sub.msvcrt.dll_memset
mov rcx, qword [0x100015570]
lea r8, [rsp + 0x4a0]
mov r9d, 0x100
mov edx, 0x6d
call qword [sym.imp.USER32.dll_LoadStringW]
lea rcx, [rsp + 0x6a2]
mov r8, r14
xor edx, edx
mov word [rsp + 0x6a0], r13w
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x4a0]
lea rcx, [rsp + 0x6a0]
mov r9, rbx
mov edx, 0x100
call fcn.100008ad0
mov rax, qword [0x100015100]
lea rcx, [0x100015100]
call qword [rax + 0x18]
mov rdx, qword [0x100015570]
lea rcx, [rsp + 0x50]
add rax, 0x18
mov r8d, 0x64
mov qword [rsp + 0x50], rax
call fcn.100004860
call fcn.10000e354
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x6a0]
mov r9d, eax
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r13d
jg 0x100009569
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x30]
jmp 0x1000097b4
mov eax, dword [rbx - 0xc]
mov ecx, 1
mov edx, 0x104
sub ecx, dword [rbx - 8]
sub eax, edx
or ecx, eax
jge 0x100009598
lea rcx, [rsp + 0x30]
call fcn.100005cf4
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
cmp eax, r13d
je 0x1000095b5
mov rcx, rbx
call fcn.10000e19c
mov ebp, eax
jmp 0x100009638
lea rcx, [rsp + 0xb2]
mov r8, r14
xor edx, edx
mov word [rsp + 0xb0], r13w
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0xb0]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r13d
je 0x100009638
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
cmp eax, r13d
je 0x100009638
lea rcx, [rsp + 0xb0]
call fcn.10000e19c
lea rdi, [rsp + 0xb0]
mov rcx, rsi
mov ebp, eax
xor eax, eax
lea rdx, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.1000054e4
mov rbx, qword [rsp + 0x30]
cmp rbx, r13
jne 0x100009642
mov ecx, r13d
jmp 0x10000965c
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r13d
jl 0x100009706
cmp ecx, dword [rbx - 0xc]
jg 0x100009706
movsxd rax, ecx
mov dword [rbx - 0x10], ecx
mov word [rbx + rax*2], r13w
cmp ebp, r13d
je 0x10000948a
cmp r12d, r13d
je 0x10000948a
call qword [sym.imp.WINMM.dll_waveInGetNumDevs]
cmp eax, r13d
jbe 0x1000096f8
xor edx, edx
lea rcx, [rsp + 0x62]
mov word [rsp + 0x60], r13w
lea r8d, [rdx + 0x4e]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x60]
mov r8d, 0x50
xor ecx, ecx
call qword [sym.imp.WINMM.dll_waveInGetDevCapsW]
cmp eax, r13d
jne 0x1000096f8
bt dword [rsp + 0xa8], 0xb
jae 0x1000096f8
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r13d
jg 0x1000096e1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x1000096f1
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x1000097e4
call fcn.100009818
lea rdx, [rbx - 0x18]
jmp 0x1000097b8
mov ecx, 0x80070057
call fcn.100006d54
int3
mov rax, qword [0x100015100]
lea rcx, [0x100015100]
call qword [rax + 0x18]
mov rdx, qword [0x100015570]
lea rcx, [rsp + 0x40]
add rax, 0x18
mov r8d, 0xd7
mov qword [rsp + 0x40], rax
call fcn.100004860
mov rax, qword [0x100015100]
lea rcx, [0x100015100]
call qword [rax + 0x18]
mov rdx, qword [0x100015570]
lea rcx, [rsp + 0x48]
add rax, 0x18
mov r8d, 0x64
mov qword [rsp + 0x48], rax
call fcn.100004860
call fcn.10000e354
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9d, eax
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
or rsi, 0xffffffffffffffff
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r13d
jg 0x1000097af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
cmp eax, r13d
jg 0x1000097cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x1000097df
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.1000115c0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret