Function at 0x7ff34475b8c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4b8
mov rax, qword [0x7ff34484108]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbp, qword [rsp + 0x528]
mov r14, qword [rsp + 0x520]
xor eax, eax
mov rbx, rcx
lea rcx, str._D4
mov r12, r9
mov qword [rsp + 0x70], rbp
mov r15, r8
mov r13, rdx
mov esi, eax
mov dword [rsp + 0x60], eax
mov edi, eax
mov dword [rsp + 0x68], eax
call fcn.7ff34474f20
test eax, eax
js 0x7ff34475c24
mov r8d, dword [0x7ff34484b98]
lea rcx, [0x7ff34484b80]
xor r9d, r9d
xor edx, edx
call fcn.7ff34477068
test eax, eax
jne 0x7ff34475c24
lea r8, [rsp + 0x68]
lea rcx, str._D4
xor edx, edx
call fcn.7ff34475048
mov edi, dword [rsp + 0x68]
xor eax, eax
cmp dword [rbx + 0x140], eax
je 0x7ff34475c32
cmp edi, eax
je 0x7ff34475c9d
cmp dword [rbx + 0x110], eax
je 0x7ff34475c90
lea rcx, [rbx + 0x118]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [rbx + 0x140], eax
je 0x7ff34475c55
cmp edi, eax
je 0x7ff34475c77
mov rcx, rbx
call fcn.7ff344757b8
mov esi, eax
xor eax, eax
cmp esi, eax
jl 0x7ff34475c77
cmp dword [rbx + 0x140], eax
jne 0x7ff34475c77
mov dword [rbx + 0x140], 1
cmp dword [rbx + 0x110], eax
je 0x7ff34475c95
lea rcx, [rbx + 0x118]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x7ff34475c95
mov esi, 0x8007000e
cmp esi, eax
jl 0x7ff34476089
mov edi, 0x104
lea rdx, [rsp + 0x80]
mov rcx, r13
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor r8d, r8d
cmp eax, r8d
jne 0x7ff34475d0f
mov rdx, rdi
lea rax, [rsp + 0x80]
mov rdi, r13
lea rcx, [rsp + 0x80]
mov esi, r8d
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, r8
je 0x7ff34475cfd
movzx eax, word [rdi + rcx]
cmp ax, r8w
je 0x7ff34475cfd
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x7ff34475cda
cmp rdx, r8
jne 0x7ff34475d0b
sub rcx, 2
mov esi, 0x8007007a
mov word [rcx], r8w
cmp esi, r8d
jl 0x7ff34476089
lea rcx, [rsp + 0x80]
mov edx, 0x5c
call sub.msvcrt.dll_wcsrchr
xor r11d, r11d
mov edx, 0x104
mov rdi, rax
lea rcx, [rsp + 0x290]
mov esi, r11d
cmp rax, r11
je 0x7ff34475dbe
lea rax, [rsp + 0x80]
mov r8, rdi
lea r10, [rdi + 2]
sub r8, rax
lea rax, [rsp + 0x290]
mov r9, r10
sar r8, 1
sub r9, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, r11
je 0x7ff34475d8c
movzx eax, word [r9 + rcx]
cmp ax, r11w
je 0x7ff34475d8c
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x7ff34475d68
cmp rdx, r11
jne 0x7ff34475d9a
sub rcx, 2
mov esi, 0x8007007a
cmp r8d, r11d
mov word [rcx], r11w
jle 0x7ff34475db6
movsxd rax, r8d
cmp word [rsp + rax*2 + 0x7e], 0x3a
jne 0x7ff34475db6
xor edi, edi
mov word [r10], di
jmp 0x7ff34475e0a
mov word [rdi], r11w
xor edi, edi
jmp 0x7ff34475e0a
lea rax, [rsp + 0x290]
mov rdi, r13
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, r11
je 0x7ff34475def
movzx eax, word [rdi + rcx]
cmp ax, r11w
je 0x7ff34475def
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x7ff34475dcc
xor edi, edi
cmp rdx, rdi
jne 0x7ff34475dff
sub rcx, 2
mov esi, 0x8007007a
mov word [rcx], di
mov word [rsp + 0x80], di
cmp esi, edi
jl 0x7ff34476089
cmp dword [rbx + 0x50], edi
je 0x7ff34475e8d
mov rax, qword [rbx + 0x38]
cmp rax, rdi
je 0x7ff34475e8d
lea rcx, [rbx + 0x48]
call rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x60]
lea rdx, [rbx + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x290]
mov r9, r12
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
call fcn.7ff34476948
mov esi, eax
cmp dword [rbx + 0x50], edi
je 0x7ff34475e83
mov rax, qword [rbx + 0x28]
cmp rax, rdi
je 0x7ff34475e83
lea rcx, [rbx + 0x48]
call rax
cmp dword [rsp + 0x60], edi
jne 0x7ff34476089
cmp dword [rbx + 0x100], edi
je 0x7ff34475f21
mov rax, qword [rbx + 0xe8]
cmp rax, rdi
je 0x7ff34475f21
lea rcx, [rbx + 0xf8]
call rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0xb8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x290]
mov r9, r12
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
call fcn.7ff34476948
mov esi, eax
cmp dword [rbx + 0x100], edi
je 0x7ff34475f17
mov rax, qword [rbx + 0xd8]
cmp rax, rdi
je 0x7ff34475f17
lea rcx, [rbx + 0xf8]
call rax
cmp dword [rsp + 0x60], edi
jne 0x7ff34476089
lea rbp, [rbx + 0x1b8]
cmp di, word [rbp]
jne 0x7ff34475f92
cmp dword [rbx + 0x188], edi
je 0x7ff34475f8d
lea rcx, [rbx + 0x190]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x20]
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
mov esi, eax
jl 0x7ff34475f76
lea r8, [0x7ff34447a90]
mov edx, 0x104
mov rcx, rbp
call fcn.7ff3444bbcc
mov esi, eax
cmp dword [rbx + 0x188], edi
je 0x7ff34475f92
lea rcx, [rbx + 0x190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x7ff34475f92
mov esi, 0x8007000e
cmp esi, edi
jl 0x7ff34476085
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
mov rdx, rbp
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll__wcsnicmp
xor ecx, ecx
cmp eax, ecx
je 0x7ff34475ff5
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
mov rdx, rbp
not rcx
lea r8, [rcx - 5]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll__wcsnicmp
xor ebp, ebp
cmp eax, ebp
jne 0x7ff34475ff7
mov dword [r12], ebp
jmp 0x7ff34476089
xor ebp, ebp
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call fcn.7ff34475a4c
mov rdx, qword [rsp + 0x70]
mov qword [rdx], rbp
cmp r14, rbp
je 0x7ff34476015
mov dword [r14], ebp
mov esi, 1
cmp r15, rbp
je 0x7ff34476089
mov rcx, r13
call sub.SHLWAPI.dll_PathFindFileNameW
cmp rax, rbp
je 0x7ff34476089
lea rdx, [0x7ff34447aa0]
mov rcx, rax
call sub.msvcrt.dll__wcsicmp
cmp eax, ebp
jne 0x7ff34476089
mov edi, dword [r12]
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x68], rbp
call fcn.7ff34477378
cmp eax, ebp
mov esi, eax
jl 0x7ff34476089
mov r8, qword [rsp + 0x68]
lea rdx, [rbx + 0x60]
mov r9d, edi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call fcn.7ff34476f38
mov rcx, qword [rsp + 0x68]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7ff34476089
mov dword [r12], edi
mov eax, esi
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.7ff344779c0
add rsp, 0x4b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret