Function at 0x140011780
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x368
mov edx, 1
lea rcx, [rsp + 0x380]
call fcn.14000f5a0
mov rdx, rax
lea rcx, [rsp + 0x290]
call fcn.140002e20
lea rcx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x58]
lea rcx, [rsp + 0xb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x388]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140011834
cmp dword [rsp + 0x30], 1
je 0x140011a48
cmp dword [rsp + 0x30], 2
je 0x140011aa0
cmp dword [rsp + 0x30], 3
je 0x140011bc4
cmp dword [rsp + 0x30], 4
je 0x140011d67
jmp 0x140011fb7
lea rcx, [0x1402e7bf0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1402e6480], 0
je 0x1400119f4
mov dword [0x1402e6480], 0
mov dword [rsp + 0x48], 0x8000
mov eax, dword [rsp + 0x48]
shl rax, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140002cc0
mov qword [rsp + 0x70], rax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov r8d, eax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x2a0]
call fcn.14000a160
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0xc0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x2b0]
call fcn.14000e2a0
lea rcx, [rsp + 0xe0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0xe0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0xf0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x2c0]
call fcn.14000cd60
lea rcx, [rsp + 0x110]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x120]
lea rcx, [rsp + 0x110]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
lea rcx, [rsp + 0x120]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x130]
mov rdx, qword [0x1402e7ba8]
lea rcx, [rsp + 0x2d0]
call fcn.14000ad70
lea rcx, [rsp + 0x140]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [0x1402e7da8]
lea rcx, [rsp + 0x140]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [0x1402e7bf0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x150]
lea rcx, [0x1402e7da8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x150]
mov rdx, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x380]
call fcn.14000c540
jmp 0x140011fb7
cmp qword [0x1402e7c18], 0
jne 0x140011a53
int3
xor eax, eax
test eax, eax
jne 0x140011a48
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x160]
lea rcx, [0x1402e7c18]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x160]
mov rdx, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x380]
call fcn.14000c540
jmp 0x140011fb7
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
shl rax, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140002cc0
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x34]
inc eax
mov rdx, qword [rsp + 0x78]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x2e0]
call fcn.14000a160
lea rcx, [rsp + 0x170]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x180]
lea rcx, [rsp + 0x170]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x180]
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0x2f0]
call fcn.14000e2a0
lea rcx, [rsp + 0x190]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1a0]
lea rcx, [rsp + 0x190]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x1b0]
lea rcx, [rsp + 0x1a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x1b0]
mov rdx, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x380]
call fcn.14000c540
jmp 0x140011fb7
cmp dword [0x1402e6484], 0
je 0x140011d20
mov dword [0x1402e6484], 0
mov qword [rsp + 0xa0], 0x8000
mov rax, qword [rsp + 0xa0]
shl rax, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140002cc0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x140011d20
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x300]
call fcn.14000a250
lea rcx, [rsp + 0x1c0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1d0]
lea rcx, [rsp + 0x1c0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x1d0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x310]
call fcn.14000e2a0
lea rcx, [rsp + 0x1e0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [0x1402e7db8]
lea rcx, [rsp + 0x1e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [0x1402e7bf0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x1402e7dc0]
mov rcx, qword [0x1402e7ba8]
call fcn.140002cc0
mov qword [rsp + 0x88], rax
lea rcx, [0x1402e7bf0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, qword [0x1402e7dc0]
mov rdx, qword [0x1402e7db8]
mov rcx, qword [rsp + 0x88]
call fcn.140226460
mov rax, qword [rsp + 0x88]
mov qword [0x1402e7db8], rax
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x1f0]
lea rcx, [0x1402e7db8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x1f0]
mov rdx, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x380]
call fcn.14000c540
jmp 0x140011fb7
mov rax, qword [rsp + 0x390]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xa8], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jbe 0x140011e8b
mov eax, dword [rsp + 0x38]
shl rax, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140002cc0
mov qword [rsp + 0x90], rax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jbe 0x140011e8b
mov eax, dword [rsp + 0x4c]
mov r8d, eax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x320]
call fcn.14000a160
lea rcx, [rsp + 0x200]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x210]
lea rcx, [rsp + 0x200]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x210]
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0x330]
call fcn.14000e2a0
lea rcx, [rsp + 0x220]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x230]
lea rcx, [rsp + 0x220]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x230]
mov rdx, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x380]
call fcn.14000c540
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jbe 0x140011f9b
mov eax, dword [rsp + 0x3c]
shl rax, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140002cc0
mov qword [rsp + 0x98], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jbe 0x140011f9b
mov eax, dword [rsp + 0x50]
mov r8d, eax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x340]
call fcn.14000a160
lea rcx, [rsp + 0x240]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x250]
lea rcx, [rsp + 0x240]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x250]
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0x350]
call fcn.14000e2a0
lea rcx, [rsp + 0x260]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x270]
lea rcx, [rsp + 0x260]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x270]
mov rdx, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x380]
call fcn.14000c540
mov rax, qword [rsp + 0x390]
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rax + 0x10]
sub rax, rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x280]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x280]
call fcn.140002e80
mov rax, qword [rsp + 0x40]
add rsp, 0x368
pop rdi
pop rsi
ret