Function at 0x140017d80
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
mov dword [rsp + 0x20], ebx
call fcn.140017530
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x140017e4a
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
lea r8d, [r15 + 0xa]
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x30]
call fcn.140007c60
nop
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
cmp qword [r14 + 0x18], 8
jb 0x140017e33
mov rcx, qword [r14]
jmp 0x140017e36
mov rcx, r14
mov r8, qword [rsp + 0x40]
call qword [sym.imp.MSVCR120.dll__wcsnicmp]
test eax, eax
jne 0x140017e4a
movzx esi, bl
jmp 0x140017e4d
xor sil, sil
test bl, 1
je 0x140017e80
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
cmp qword [rsp + 0x48], 8
jb 0x140017e6c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
or rdi, 0xffffffffffffffff
test sil, sil
je 0x140017f5d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
cmp qword [r14 + 0x18], 8
jb 0x140017ea7
mov rcx, qword [r14]
jmp 0x140017eaa
mov rcx, r14
test rcx, rcx
jne 0x140017eb4
mov rdx, r15
jmp 0x140017ecd
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x140017ec0
inc rdx
lea r8, [rsp + 0x30]
call fcn.140017870
mov rsi, rax
mov rbx, r15
test rax, rax
je 0x140017f37
lea r12, str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0.DLL
nop dword [rax]
mov rdx, qword [rbx + r12]
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
je 0x140017f2b
add rbx, 8
cmp rbx, 0x30
jb 0x140017ef0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017f5d
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
jmp 0x140017f5d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017f55
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov rax, rbx
jmp 0x14001804b
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140018049
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
cmp word [rsp + 0x70], 0
jne 0x140017fa5
mov rdi, r15
jmp 0x140017fba
lea rax, [rsp + 0x70]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140017fb0
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140007c60
nop
mov r8, r14
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400179a0
nop
cmp qword [rax + 0x18], 8
jb 0x140017fea
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp qword [rsp + 0x68], 8
jb 0x140018009
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp qword [rsp + 0x48], 8
jb 0x140018030
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
mov rax, rbx
jmp 0x14001804b
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400f5ff0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret