Function at 0x1400185c0
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.140017d70
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x14001868a
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.140007d00
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 0x140018673
mov rcx, qword [r14]
jmp 0x140018676
mov rcx, r14
mov r8, qword [rsp + 0x40]
call qword [sym.imp.MSVCR120.dll__wcsnicmp]
test eax, eax
jne 0x14001868a
movzx esi, bl
jmp 0x14001868d
xor sil, sil
test bl, 1
je 0x1400186c0
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
cmp qword [rsp + 0x48], 8
jb 0x1400186ac
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 0x14001879d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
cmp qword [r14 + 0x18], 8
jb 0x1400186e7
mov rcx, qword [r14]
jmp 0x1400186ea
mov rcx, r14
test rcx, rcx
jne 0x1400186f4
mov rdx, r15
jmp 0x14001870d
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x140018700
inc rdx
lea r8, [rsp + 0x30]
call fcn.1400180b0
mov rsi, rax
mov rbx, r15
test rax, rax
je 0x140018777
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 0x14001876b
add rbx, 8
cmp rbx, 0x30
jb 0x140018730
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001879d
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 0x14001879d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018795
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 0x14001888b
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140018889
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 0x1400187e5
mov rdi, r15
jmp 0x1400187fa
lea rax, [rsp + 0x70]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400187f0
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140007d00
nop
mov r8, r14
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400181e0
nop
cmp qword [rax + 0x18], 8
jb 0x14001882a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp qword [rsp + 0x68], 8
jb 0x140018849
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 0x140018870
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 0x14001888b
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140108d90
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