Function at 0x10006e4b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rbp, rcx
mov ecx, 0x3f7a0
mov r13, rdx
mov eax, 2
mov r14, 0xffffffffffffffff
mov ebx, r9d
mov esi, r8d
mul rcx
cmovo rax, r14
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
xor r15d, r15d
mov rdi, rax
cmp rax, r15
jne 0x10006e57b
mov rdx, qword [rsp + 0x198]
lea rsi, [0x1000a1170]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e542
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r15d
jg 0x10006e542
mov rcx, qword [rdx]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e571
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r15d
jg 0x10006e571
mov rcx, qword [rdx]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x8007000e
jmp 0x10006eddc
mov rax, qword [0x1000a1180]
lea r8, [rsp + 0x68]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x68], rax
call fcn.10006db80
cmp eax, r15d
mov r12d, eax
jge 0x10006e639
mov rcx, qword [rsp + 0x68]
lea rsi, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e5cb
mov edx, r14d
lock xadd dword [rcx], edx
add edx, r14d
cmp edx, r15d
jg 0x10006e5cb
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call fcn.10007a394
mov r11, qword [rsp + 0x198]
mov rcx, qword [r11]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e602
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r15d
jg 0x10006e602
mov rcx, qword [r11]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e631
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r15d
jg 0x10006e631
mov rcx, qword [rdx]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, r12d
jmp 0x10006eddc
mov rax, qword [0x1000a1180]
lea r15, [0x100002dec]
mov qword [rsp + 0x60], rax
cmp ebx, 5
je 0x10006e680
cmp ebx, 0xd
je 0x10006e680
cmp ebx, 0xe
je 0x10006e680
cmp ebx, 0x27
je 0x10006e680
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x60]
mov r8, r15
mov edx, eax
call fcn.100016504
xor r12d, r12d
jmp 0x10006e86f
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.100016600
xor r12d, r12d
cmp rax, r12
jne 0x10006e756
mov rcx, qword [rsp + 0x60]
lea rsi, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e6c4
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r12d
jg 0x10006e6c4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e6e6
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r12d
jg 0x10006e6e6
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call fcn.10007a394
mov r11, qword [rsp + 0x198]
mov rcx, qword [r11]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e71d
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r12d
jg 0x10006e71d
mov rcx, qword [r11]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e74c
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r12d
jg 0x10006e74c
mov rcx, qword [rdx]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004003
jmp 0x10006eddc
bts ebx, 0xf
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, r12d
mov ebx, eax
jge 0x10006e832
mov rcx, qword [rsp + 0x60]
lea rsi, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e7a3
mov edx, r14d
lock xadd dword [rcx], edx
add edx, r14d
cmp edx, r12d
jg 0x10006e7a3
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e7c5
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r12d
jg 0x10006e7c5
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call fcn.10007a394
mov r11, qword [rsp + 0x198]
mov rcx, qword [r11]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e7fc
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r12d
jg 0x10006e7fc
mov rcx, qword [r11]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e82b
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r12d
jg 0x10006e82b
mov rcx, qword [rdx]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, ebx
jmp 0x10006eddc
lea rcx, [rsp + 0x60]
call fcn.1000166e4
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [rsp + 0x60]
mov edx, esi
movsxd rcx, eax
mov dword [rbx - 8], eax
mov word [rbx + rcx*2], r12w
mov rcx, rbp
call fcn.10006de08
cmp eax, r12d
mov ebx, eax
jl 0x10006e77a
lea rcx, [rsp + 0x78]
mov rdx, r15
call fcn.100017e84
lea rcx, [rsp + 0x70]
mov rdx, r15
call fcn.100017e84
cmp byte [rsp + 0x190], r12b
mov r15, qword [rsp + 0x1a8]
mov r14, qword [rsp + 0x198]
mov qword [rsp + 0x50], r13
mov r13, qword [rsp + 0x1a0]
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r12d
mov eax, 0x1200
mov r11d, 0x1000
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x78]
cmovne r11d, eax
lea rax, [rsp + 0x68]
mov r8, rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r11d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov byte [r15], r12b
mov qword [rsp + 0x20], r14
call fcn.10006ff90
lea rsi, [0x1000a1170]
cmp eax, r12d
jl 0x10006ea2f
mov byte [r15], 1
cmp dword [rbp + 8], r12d
jg 0x10006e92d
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, qword [rbp]
mov edx, dword [rsp + 0x180]
mov rcx, rbp
call fcn.10006e118
cmp eax, r12d
mov ebx, eax
jge 0x10006ed01
lea rsi, [0x1000a1170]
mov rcx, qword [rsp + 0x70]
or rbp, 0xffffffffffffffff
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e976
mov edx, ebp
lock xadd dword [rcx], edx
add edx, ebp
cmp edx, r12d
jg 0x10006e976
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e996
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r12d
jg 0x10006e996
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e9b6
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r12d
jg 0x10006e9b6
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e9d6
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r12d
jg 0x10006e9d6
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call fcn.10007a394
mov r11, qword [r14]
add r11, 0xfffffffffffffff4
cmp r11, rsi
je 0x10006ea04
mov eax, ebp
lock xadd dword [r11], eax
add eax, ebp
cmp eax, r12d
jg 0x10006ea04
mov rcx, qword [r14]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [r13]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006e82b
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r12d
jg 0x10006e82b
mov rcx, qword [r13]
jmp 0x10006e822
cmp ax, 0x4c7
je 0x10006ed01
mov rbx, qword [rsp + 0x68]
mov edx, 0x7c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r12, rax
test rax, rax
je 0x10006eaa3
sub r12, rbx
sar r12, 1
cmp r12d, 0xffffffff
je 0x10006eaa3
xor r13d, r13d
lea rcx, [rsp + 0x68]
call fcn.1000166e4
mov rbx, qword [rsp + 0x68]
movsxd r11, r12d
mov rcx, rbx
mov edx, 0x7c
mov word [rbx + r11*2], r13w
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, r13
je 0x10006ea9b
sub rax, rbx
sar rax, 1
mov r12d, eax
cmp eax, 0xffffffff
jne 0x10006ea63
mov r13, qword [rsp + 0x1a0]
mov ebx, ILFree
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8, rbx
call sub.msvcrt.dll_memset
xor r12d, r12d
mov dword [rsp + 0x90], ebx
mov bl, byte [rsp + 0x190]
mov word [rdi], r12w
mov eax, 0x881004
mov ecx, 0x881204
cmp bl, r12b
mov qword [rsp + 0xc0], rdi
cmovne eax, ecx
mov rcx, qword [rsp + 0xe0]
mov dword [rsp + 0xc8], 0x3f7a0
mov dword [rsp + 0xf0], eax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax - 8], r12d
mov byte [r15], r12b
cmovne rcx, rax
mov qword [rsp + 0xe0], rcx
lea rcx, [rsp + 0x90]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp eax, r12d
je 0x10006ed01
mov byte [r15], 1
cmp bl, r12b
je 0x10006eb79
mov rdx, rdi
mov rcx, rbp
call fcn.10006f624
cmp eax, r12d
mov ebx, eax
jge 0x10006ecc7
jmp 0x10006e94b
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call fcn.100017e84
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.10001dd08
mov rcx, qword [rsp + 0x80]
cmp eax, r12d
setne bl
add rcx, 0xfffffffffffffff4
or r12, 0xffffffffffffffff
xor r15d, r15d
cmp rcx, rsi
je 0x10006ebd0
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r15d
jg 0x10006ebd0
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp bl, r15b
jne 0x10006ecc4
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ebfb
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r15d
jg 0x10006ebfb
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ec1d
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r15d
jg 0x10006ec1d
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ec3f
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r15d
jg 0x10006ec3f
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ec61
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r15d
jg 0x10006ec61
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call fcn.10007a394
mov r11, qword [r14]
add r11, 0xfffffffffffffff4
cmp r11, rsi
je 0x10006ec91
mov eax, r12d
lock xadd dword [r11], eax
add eax, r12d
cmp eax, r15d
jg 0x10006ec91
mov rcx, qword [r14]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [r13]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ecba
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
cmp eax, r15d
jg 0x10006ecba
mov rcx, qword [r13]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004005
jmp 0x10006eddc
xor r12d, r12d
cmp dword [rbp + 8], r12d
jg 0x10006ece3
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, qword [rbp]
mov edx, dword [rsp + 0x180]
mov rcx, rbp
call fcn.10006e118
cmp eax, r12d
mov ebx, eax
jl 0x10006e952
mov rcx, qword [rsp + 0x70]
or rbx, 0xffffffffffffffff
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ed25
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
cmp eax, r12d
jg 0x10006ed25
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ed45
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
cmp eax, r12d
jg 0x10006ed45
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ed65
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
cmp eax, r12d
jg 0x10006ed65
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006ed85
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
cmp eax, r12d
jg 0x10006ed85
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call fcn.10007a394
mov r11, qword [r14]
add r11, 0xfffffffffffffff4
cmp r11, rsi
je 0x10006edb3
mov eax, ebx
lock xadd dword [r11], eax
add eax, ebx
cmp eax, r12d
jg 0x10006edb3
mov rcx, qword [r14]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [r13]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006edda
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
cmp eax, r12d
jg 0x10006edda
mov rcx, qword [r13]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret