Function at 0x1400047d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x540]
sub rsp, 0x640
mov r12, r8
mov rsi, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x130]
call fcn.140006ad0
xor r13d, r13d
lea rbx, [rsi + 8]
mov r15d, r13d
cmp word [rbx], r13w
jne 0x140004823
xor eax, eax
jmp 0x140004a7f
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0x25
cmp word [rsp + 0x20], dx
jne 0x140004a70
lea rcx, [rsp + 0x22]
call fcn.140006f28
mov rdi, rax
test rax, rax
je 0x140004a70
mov word [rsp + 0x20], r13w
mov word [rax], r13w
movzx eax, word [rsp + 0x22]
mov qword [rbp + 0x598], r13
mov qword [rbp + 0x588], r13
cmp eax, 0x44
je 0x1400049cf
cmp eax, 0x4d
je 0x1400049b4
cmp eax, 0x50
je 0x140004999
cmp eax, 0x53
je 0x14000496f
cmp eax, 0x57
je 0x14000493e
cmp word [rsp + 0x22], 0x74
jne 0x140004a3d
lea rdx, str.temp
lea rcx, [rsp + 0x22]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400048d5
lea rdx, [rbp + 0x130]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str._temp_
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400049f6
cmp dword [rsi + 0x318], r13d
je 0x1400049f6
lea r8, [rbp + 0x330]
xor edx, edx
mov rcx, r12
call fcn.140003a58
lea rdx, [0x140016a20]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x330]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r15d, 1
jmp 0x1400049f6
lea rdx, str.WinDir
lea rcx, [rsp + 0x22]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400049f6
mov edx, 0x100
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1400049f6
lea rdx, str.SystemDir
lea rcx, [rsp + 0x22]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400049f6
mov edx, 0x100
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1400049f6
lea rdx, str.ProgramFiles
lea rcx, [rsp + 0x22]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400049f6
lea edx, [rax + 0x26]
jmp 0x1400049e8
lea rdx, str.MyDocuments
lea rcx, [rsp + 0x22]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400049f6
lea edx, [rax + 5]
jmp 0x1400049e8
lea rdx, str.Desktop
lea rcx, [rsp + 0x22]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400049f6
lea edx, [rax + 0x10]
lea r8, [rbp + 0x588]
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov rcx, qword [rbp + 0x588]
test rcx, rcx
je 0x140004a3d
lea rdx, [rbp + 0x130]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea rcx, [rbp + 0x598]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rcx, qword [rbp + 0x598]
mov rdx, qword [rbp + 0x588]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x598]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
cmp word [rbp + 0x130], r13w
je 0x140004a53
lea rcx, [rbp + 0x130]
call fcn.140003820
lea r9, [rdi + 2]
mov rcx, r14
lea r8, [rbp + 0x130]
lea rdx, [0x140016790]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140004a7c
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, r15d
mov rbx, qword [rsp + 0x680]
add rsp, 0x640
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret