Function at 0x140018590
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.140017d40
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x14001865a
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 0x140018643
mov rcx, qword [r14]
jmp 0x140018646
mov rcx, r14
mov r8, qword [rsp + 0x40]
call qword [sym.imp.MSVCR120.dll__wcsnicmp]
test eax, eax
jne 0x14001865a
movzx esi, bl
jmp 0x14001865d
xor sil, sil
test bl, 1
je 0x140018690
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
cmp qword [rsp + 0x48], 8
jb 0x14001867c
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 0x14001876d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
cmp qword [r14 + 0x18], 8
jb 0x1400186b7
mov rcx, qword [r14]
jmp 0x1400186ba
mov rcx, r14
test rcx, rcx
jne 0x1400186c4
mov rdx, r15
jmp 0x1400186dd
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x1400186d0
inc rdx
lea r8, [rsp + 0x30]
call fcn.140018080
mov rsi, rax
mov rbx, r15
test rax, rax
je 0x140018747
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 0x14001873b
add rbx, 8
cmp rbx, 0x30
jb 0x140018700
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001876d
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 0x14001876d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018765
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 0x14001885b
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140018859
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 0x1400187b5
mov rdi, r15
jmp 0x1400187ca
lea rax, [rsp + 0x70]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400187c0
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.1400181b0
nop
cmp qword [rax + 0x18], 8
jb 0x1400187fa
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp qword [rsp + 0x68], 8
jb 0x140018819
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 0x140018840
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 0x14001885b
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140107280
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