Function at 0x140136810
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rbp + 0x38], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r15, [0x140298030]
nop word [rax + rax]
movzx eax, byte [0x140295e85]
test al, al
jne 0x140136bc8
mov ebx, dword [0x140295e8c]
xor ecx, ecx
call fcn.1401bcc14
sub eax, 0x1e
cmp ebx, eax
jge 0x140136bc8
call fcn.1401376c0
mov rbx, rax
mov rcx, r15
call fcn.14016e8f8
test eax, eax
je 0x1401368a2
mov ecx, eax
call fcn.14016e464
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1401368b2
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rcx, r15
call fcn.14016e91c
test eax, eax
je 0x1401368c6
mov ecx, eax
call fcn.14016e464
nop
mov word [rsp + 0x24], r14w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r8, [rsp + 0x24]
lea rcx, [rsp + 0x40]
call fcn.1400d1cd0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
lea rdx, str.System32cmd.exe
lea rcx, [rsp + 0x78]
call fcn.1400c3720
nop
mov edx, 0x104
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x140136974
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
cmp word [rdi], 0
jne 0x140136947
mov r8, r14
jmp 0x14013695b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140136950
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.1400c3720
lea rdx, [rbp - 0x48]
mov ebx, dword [rsp + 0x20]
or ebx, 1
jmp 0x1401369a6
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
mov r8d, 0xa
lea rdx, str.C:Windows
lea rcx, [rbp - 0x68]
call fcn.1400c3720
lea rdx, [rbp - 0x68]
mov ebx, dword [rsp + 0x20]
or ebx, 2
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.1400fdb80
mov rsi, rax
lea rax, [rsp + 0x78]
cmp rax, rsi
je 0x140136a01
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1401369e1
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400c3a10
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400c3980
nop
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x140136a1b
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.1400c3a10
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r14
mov word [rbp - 8], r14w
test bl, 2
je 0x140136a63
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x140136a52
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400c3a10
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
test bl, 1
je 0x140136a89
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x140136a89
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400c3a10
mov word [rsp + 0x26], r14w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x26]
lea rcx, [rsp + 0x28]
call fcn.1400d1cd0
nop
mov r8d, 0x104
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
cmp word [rbx], 0
jne 0x140136adf
mov r8, r14
jmp 0x140136aee
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140136ae3
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1400c3720
nop
lea r8, [rbp - 0x28]
lea rdx, str._c__timeout_5__del
lea rcx, [rbp + 0x18]
call fcn.1400cac40
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140144200
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x140136b38
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.1400c3a10
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r14
mov word [rbp + 0x18], r14w
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x140136b64
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400c3a10
nop
mov r8, qword [rsp + 0x38]
sub r8, rbx
sar r8, 1
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400c3a10
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x140136b99
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400c3a10
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
test rdi, rdi
je 0x140136bc8
mov r8, qword [rsp + 0x50]
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400c3a10
mov qword [rsp + 0x68], r15
mov rcx, r15
call fcn.14016e8f8
test eax, eax
je 0x140136be0
mov ecx, eax
call fcn.14016e464
mov byte [rsp + 0x70], 1
mov rbx, qword [0x140297eb0]
test rbx, rbx
jne 0x140136c10
lea ecx, [rbx + 0x30]
call fcn.14016d134
mov qword [rsp + 0x60], rax
mov rcx, rax
call fcn.1401374c0
mov rbx, rax
mov qword [0x140297eb0], rax
mov rcx, r15
call fcn.14016e91c
test eax, eax
je 0x140136c24
mov ecx, eax
call fcn.14016e464
nop
mov rcx, r15
call fcn.14016e8f8
test eax, eax
je 0x140136c37
mov ecx, eax
call fcn.14016e464
mov rbx, qword [rbx + 0x28]
mov rcx, r15
call fcn.14016e91c
test eax, eax
je 0x140136c4f
mov ecx, eax
call fcn.14016e464
nop
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140136860
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14016ce60
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret