Function at 0x140116940
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r12, r9
mov r13d, r8d
mov r14, rcx
mov rax, qword [rbp + 0x1f0]
mov qword [rsp + 0x40], rax
mov r15, qword [rbp + 0x1f8]
xor esi, esi
mov dword [rsp + 0x48], esi
cmp dword [rbp + 0x200], esi
jne 0x140116fc6
lea ebx, [rsi + 1]
cmp r8d, 0x110
jne 0x1401169ce
mov dword [rsp + 0x4c], ebx
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov r8, r12
mov edx, r13d
mov rcx, r14
call fcn.140117380
mov qword [r15], rax
jmp 0x140116a1f
cmp r13d, 0x111
jne 0x140116a2e
cmp bx, r12w
jne 0x1401169f7
mov rax, r12
shr rax, 0x10
cmp si, ax
jne 0x140116a29
mov dword [rsp + 0x4c], ebx
call fcn.140118680
mov qword [r15], rax
jmp 0x140116a1f
mov edx, 2
cmp dx, r12w
jne 0x140116a2e
mov rax, r12
shr rax, 0x10
cmp si, ax
jne 0x140116a29
mov dword [rsp + 0x4c], ebx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_EndDialog]
mov qword [r15], rsi
cmp dword [rsp + 0x4c], esi
jne 0x140116f87
mov rax, qword [rsp + 0x40]
mov ecx, 0x3fd
mov rdi, 0xffffffffffffffff
cmp r13d, dword [0x1403017a0]
jne 0x140116b15
mov dword [rsp + 0x4c], ebx
cmp rax, rcx
jne 0x140116b07
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x50], rsi
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140116ffd
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
lea rcx, [r14 + 0x3b0]
lea rdx, [rsp + 0x50]
call fcn.14001e9d0
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400247b0
test eax, eax
je 0x140116acc
mov dword [r14 + 0xb10], 1
lea rcx, [r14 + 0x178]
mov rdx, rbx
call fcn.14007d230
mov dword [r14 + 0xb10], esi
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x48], eax
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140116af8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov ecx, 0x3fd
mov ebx, 1
mov rax, qword [rsp + 0x40]
mov qword [r15], rsi
cmp dword [rsp + 0x4c], 0
jne 0x140116f87
cmp r13d, 0x111
jne 0x140116ee2
mov dword [rsp + 0x4c], ebx
cmp r12w, cx
jne 0x140116b77
lea rcx, [r14 + 0x3a8]
cmp qword [rcx + 8], 0
jne 0x140116b46
mov eax, esi
mov qword [r15], rsi
test eax, eax
jmp 0x140116c9b
cmp dword [rcx + 0x760], 0
jne 0x140116b6b
mov rax, r12
shr rax, 0x10
mov edx, 0x300
cmp ax, dx
je 0x140116b66
cmp ax, 5
jne 0x140116b6b
call fcn.14001d220
mov eax, ebx
mov qword [r15], rsi
test ebx, ebx
jmp 0x140116c9b
mov qword [r15], rsi
mov eax, 0x801e
cmp ax, r12w
jne 0x140116c2b
mov dword [rsp + 0x4c], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140117008
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140018bb0
test al, al
jne 0x140116c0d
lea rax, [rsp + 0x70]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140116bf0
mov r8d, edi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140018f50
nop
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140118b80
mov qword [r15], rsi
cmp dword [rsp + 0x4c], 0
je 0x140116ca1
mov eax, ebx
jmp 0x140116fc8
mov eax, 0x8022
cmp ax, r12w
jne 0x140116d6f
mov dword [rsp + 0x4c], ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x140116c93
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x50], rax
lea rcx, [r14 + 0x178]
lea rdx, [rsp + 0x50]
call fcn.14007d2d0
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_ILFree]
mov qword [r15], rsi
cmp dword [rsp + 0x4c], 0
jne 0x140116f87
mov ebx, 1
cmp r13d, dword [0x14030c220]
jne 0x140116cc9
mov dword [rsp + 0x4c], ebx
mov rcx, r14
call fcn.140118ff0
mov qword [r15], rax
cmp dword [rsp + 0x4c], 0
jne 0x140116c24
cmp r13d, 0x2e0
jne 0x140116f8e
mov dword [rsp + 0x4c], ebx
call fcn.140044d30
mov rcx, rax
mov rdx, qword [r14 + 8]
call fcn.140048190
mov rax, r12
shr rax, 0x10
movzx edi, ax
lea rcx, [r14 + 0x40]
mov edx, edi
call fcn.14002fc50
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140116d39
mov r9d, dword [rbx + 4]
mov r8d, dword [rbx]
mov ecx, dword [rbx + 0xc]
sub ecx, r9d
mov eax, dword [rbx + 8]
sub eax, r8d
mov dword [rsp + 0x30], ILIsEqual
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rcx, [r14 + 0x178]
mov edx, edi
call fcn.14007e670
mov edx, edi
mov rcx, qword [r14 + 0xb68]
call fcn.1400c9980
mov qword [r15], rsi
cmp dword [rsp + 0x4c], 0
je 0x140116f93
mov ebx, 1
mov eax, ebx
jmp 0x140116fc8
mov eax, 0x8024
cmp ax, r12w
jne 0x140116e02
mov dword [rsp + 0x4c], ebx
xor r9d, r9d
lea r8d, [r9 + 5]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140117013
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140018bb0
test al, al
jne 0x140116dfd
lea rax, [rsp + 0x70]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140116de0
mov r8d, edi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140018f50
nop
jmp 0x140116c0d
mov eax, 0x8023
cmp ax, r12w
jne 0x140116eaf
mov dword [rsp + 0x4c], ebx
xor r9d, r9d
lea r8d, [r9 + 0x27]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140116ff2
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140018bb0
test al, al
jne 0x140116e8f
lea rax, [rsp + 0x70]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140116e72
mov r8d, edi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140018f50
nop
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140118b80
mov qword [r15], rsi
cmp dword [rsp + 0x4c], 0
jne 0x140116c24
jmp 0x140116ca1
mov eax, 9
cmp ax, r12w
jne 0x140116ca1
mov rax, r12
shr rax, 0x10
cmp si, ax
jne 0x140116ca1
mov dword [rsp + 0x4c], ebx
mov rcx, r14
call fcn.140118d40
mov qword [r15], rax
jmp 0x140116c96
cmp r13d, 5
jne 0x140116f38
mov dword [rsp + 0x4c], esi
lea rcx, [r14 + 0x40]
call fcn.14002f510
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rdx, [rsp + 0x58]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [rsp + 0x64]
sub ebx, dword [rsp + 0x5c]
call fcn.140166630
mov dword [rax + 0xf8], ebx
mov ebx, dword [rsp + 0x60]
sub ebx, dword [rsp + 0x58]
call fcn.140166630
mov dword [rax + 0xf4], ebx
jmp 0x140116c93
cmp r13d, 0x24
jne 0x140116f53
mov dword [rax + 0x18], 0x1fe
mov dword [rax + 0x1c], 0x1fe
mov qword [r15], rsi
mov eax, ebx
jmp 0x140116fc8
cmp r13d, 0x113
jne 0x140116ca1
mov dword [rsp + 0x4c], ebx
mov rdx, r12
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, r14
call fcn.140118350
mov qword [r15], rsi
cmp dword [rsp + 0x4c], 0
je 0x140116ca1
mov eax, 1
jmp 0x140116fc8
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x4c], 1
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r12
mov edx, r13d
mov rcx, r14
call fcn.140109e90
mov qword [r15], rax
cmp dword [rsp + 0x4c], 0
setne sil
mov eax, esi
jmp 0x140116fc8
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
int3
mov ecx, 0x80004005
call fcn.140019300
int3