Function at 0x140041160
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1608]
mov eax, 0x1708
call fcn.140001110
sub rsp, rax
mov rax, qword [0x1400a0f20]
xor rax, rsp
mov qword [rbp + 0x15e0], rax
cmp qword [0x1400a9830], 0
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winldrNative_win.cpp
mov r13, r9
mov r12d, r8d
mov r14, rdx
mov rsi, rcx
jne 0x1400411de
lea r9, str.int___cdecl_rtldrNativeLoadSystem_const_char__const_char__unsigned_int_struct_RTLDRMODINTERNAL__
mov r8, rax
mov edx, 0xbf
lea rcx, str.g_hModKernel32
call fcn.1400293b0
mov rdx, rsi
lea rcx, str.rtldrNativeLoadSystem__s____is_called_before_IPRT_has_configured_the_windows_loader__n
call fcn.1400293c0
call fcn.1400293f0
int3
movzx eax, byte [0x1400aacc4]
test al, al
jne 0x14004120b
mov rcx, qword [0x1400a98b0]
lea rdx, str.RtlDosApplyFileIsolationRedirection_Ustr
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400aacc8], rax
mov byte [0x1400aacc4], 1
lea rax, [rbp + 0x5d0]
mov edx, 0x104
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x60], rax
mov r15d, 0xffffffcc
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jb 0x14004123c
lea eax, [r15 - 0x44]
jmp 0x1400414e8
mov qword [rsp + 0x1700], rbx
xor ebx, ebx
cmp qword [0x1400aacc8], rbx
mov qword [rsp + 0x16f8], rdi
je 0x140041447
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winldrNative_win.cpp
mov r9d, 0x104
mov qword [rsp + 0x28], rax
lea rdx, [rbx - 1]
lea rax, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400343e0
test eax, eax
js 0x140041447
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x3c0]
mov qword [rbp - 0x78], rax
lea r9, [rbp - 0x80]
movzx eax, word [rsp + 0x50]
lea r8, [0x1400749d8]
add ax, ax
mov qword [rsp + 0x38], rbx
mov word [rbp - 0x70], ax
lea rdx, [rbp - 0x70]
add ax, 2
mov qword [rsp + 0x30], rbx
mov word [rbp - 0x6e], ax
lea ecx, [rbx + 1]
lea rax, [rbp + 0x1b0]
mov dword [rbp - 0x80], 0x2060000
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400aacc8]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x58], rbx
call qword [case.0x14004be35.0]
test eax, eax
js 0x140041447
mov rdi, qword [rsp + 0x58]
mov r11d, ebx
mov r9d, ebx
movzx r10d, word [rdi]
test r10, r10
je 0x14004143c
mov rbx, qword [rdi + 8]
nop word [rax + rax]
movzx edx, word [rbp + r9*2 - 0x60]
lea rax, [rbx + r9*2]
movzx ecx, word [rax]
cmp edx, 0x5c
je 0x1400413a1
cmp edx, 0x2f
je 0x1400413a1
cmp dx, cx
je 0x14004139c
cmp edx, 0x7f
jae 0x1400413f1
cmp ecx, 0x7f
jae 0x1400413f1
mov r8d, edx
lea eax, [rcx - 0x41]
cmp eax, 0x1a
lea edx, [rcx + 0x20]
cmovae edx, ecx
lea eax, [r8 - 0x41]
cmp eax, 0x1a
lea ecx, [r8 + 0x20]
cmovae ecx, r8d
cmp ecx, edx
jne 0x1400413f1
inc r9
jmp 0x1400413e8
cmp ecx, 0x5c
je 0x1400413ab
cmp ecx, 0x2f
jne 0x1400413f1
xor ecx, ecx
lea rdx, [rbp - 0x60]
test r9, r9
setne cl
add r11d, ecx
sub rdx, rbx
nop dword [rax]
inc r9
lea rax, [rax + 2]
cmp r9, r10
jae 0x1400413f1
movzx ecx, word [rdx + rax]
cmp cx, 0x5c
je 0x1400413dc
cmp cx, 0x2f
jne 0x1400413e8
cmp word [rax], 0x5c
je 0x1400413c0
cmp word [rax], 0x2f
je 0x1400413c0
cmp r9, r10
jb 0x140041350
xor ebx, ebx
cmp r11d, 2
jb 0x14004143c
movzx edx, word [rdi]
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winldrNative_win.cpp
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 0x1004
shr rdx, 1
mov qword [rsp + 0x20], rbx
call fcn.140035c80
test eax, eax
lea rcx, [rsp + 0x68]
cmovns r15d, ebx
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test r15d, r15d
jns 0x1400414ac
jmp 0x140041447
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winldrNative_win.cpp
mov r9d, 0x1004
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
lea rcx, [rbp - 0x60]
call fcn.140035c80
test eax, eax
js 0x1400414d8
mov r8, rsi
lea rcx, [rbp + 0x5d0]
mov edx, 0x1004
call fcn.1400274a0
test r14, r14
je 0x1400414a8
test eax, eax
js 0x1400414d8
mov r8, r14
lea rcx, [rbp + 0x5d0]
mov edx, 0x1004
call fcn.1400350a0
test eax, eax
js 0x1400414d8
lea rcx, [rbp + 0x5d0]
call fcn.140034ff0
test al, al
je 0x1400414d3
xor r9d, r9d
lea rcx, [rbp + 0x5d0]
mov r8d, r12d
mov rdx, r13
call fcn.14001f910
jmp 0x1400414d8
mov eax, 0xfffffd9e
mov rdi, qword [rsp + 0x16f8]
mov rbx, qword [rsp + 0x1700]
mov rcx, qword [rbp + 0x15e0]
xor rcx, rsp
call fcn.140001250
add rsp, 0x1708
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret