Function at 0x140006010
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x14003a6e8]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, r9
mov qword [rsp + 0x60], r9
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r13, qword [rbp + 0x280]
mov qword [rsp + 0x68], r13
movups xmm0, xmmword [0x14002ce90]
movdqu xmmword [rbp - 0x68], xmm0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea r8, [rsp + 0x50]
lea edx, [rbx + 0xc]
lea rcx, str.eapphost.dll
call fcn.140004798
test al, al
je 0x140006455
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov r12d, 0xa
test r15d, r15d
jne 0x140006102
lea rdx, [rbp - 0x68]
test rdi, rdi
cmovne rdx, rdi
call fcn.140006470
mov r15d, eax
test eax, eax
jne 0x140006102
mov r15d, dword [rsi]
lea eax, [r15 - 0x258]
cmp eax, 0x115
ja 0x140006102
lea r8, [rsp + 0x50]
mov edx, r12d
lea rcx, str.mprmsg.dll
call fcn.140004798
test al, al
je 0x14000645b
mov rcx, rbx
call fcn.140002d40
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
lea rax, [rbp - 0x40]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0x208
and qword [rbp + 0x1c8], 0
mov edi, 0x104
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll_memset
mov edx, edi
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov esi, eax
cmp eax, edi
jb 0x1400061bb
mov rcx, qword [rbp + 0x1c8]
lea r13, [rcx + rcx]
mov edi, esi
add rdi, rdi
cmp rdi, qword [rbp - 0x48]
jbe 0x14000619a
mov rcx, rdi
call fcn.140002d98
mov r14, rax
test rax, rax
je 0x140006461
mov r8, r13
mov rdx, qword [rbp - 0x50]
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
cmp rcx, rax
je 0x140006190
call fcn.140002d40
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rdi
jmp 0x14000619e
mov r14, qword [rbp - 0x50]
mov edx, esi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov esi, eax
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
xor edi, edi
test esi, esi
je 0x140006440
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8d, esi
mov rdx, qword [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140004944
nop
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
cmp rcx, rax
je 0x1400061fb
call fcn.140002d40
nop
lea rdx, [0x14002c5c0]
lea rcx, [rsp + 0x78]
call fcn.140006a7c
lea rdx, [0x14002cc00]
test rbx, rbx
cmovne rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140006a7c
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140006340
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test byte [0x14003bf00], 1
je 0x1400062fa
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov dword [rsp + 0x40], eax
xor r15d, r15d
test rcx, rcx
je 0x140006299
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140006287
lea r12d, [rax*2 + 2]
lea rax, str.NULL
test rcx, rcx
cmovne rax, rcx
mov qword [rbp + 0x1e0], rax
mov dword [rbp + 0x1e8], r12d
mov dword [rbp + 0x1ec], r15d
lea rax, [rsp + 0x40]
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x1f8], 4
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
mov r9d, 3
lea rdx, [0x14002ce70]
lea rcx, [0x14003a010]
call fcn.140005898
jmp 0x1400062fd
xor r15d, r15d
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x1400063c3
test byte [rcx + 0x1c], 1
je 0x1400063c3
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r9, qword [rsp + 0x78]
mov dword [rsp + 0x20], edi
mov rcx, qword [rcx + 0x10]
call fcn.14000580c
jmp 0x1400063c3
mov rax, r13
neg rax
sbb ecx, ecx
and ecx, 0xfffffe00
add ecx, 0x1b00
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 2
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, r15d
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
nop dword [rax + rax]
xor r15d, r15d
test eax, eax
jne 0x140006395
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400063c3
mov rdi, qword [r14]
xor ecx, ecx
call fcn.140002d40
mov rcx, rdi
call fcn.140002d40
mov qword [rsp + 0x40], r15
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140007978
mov rax, qword [rsp + 0x40]
mov qword [r14], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test rsi, rsi
je 0x1400063e9
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x70], 8
jb 0x1400063fa
mov rcx, qword [rsp + 0x78]
call fcn.140002d40
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r15
mov word [rsp + 0x78], r15w
mov rcx, rbx
call fcn.140002d40
nop
xor ecx, ecx
call fcn.140002d40
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400258c0
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
mov edx, eax
call fcn.140004e24
nop
call fcn.140005114
nop
call fcn.140005114
nop
call fcn.140005114
int3