Function at 0x140041370
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x1400bc060]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rdx
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp - 0x50]
call fcn.14004d8a0
lea rcx, [rbp - 0x50]
call fcn.14001cec0
nop
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp + 0x130]
call fcn.14004d8a0
lea rcx, [rbp + 0x130]
call fcn.14001cec0
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2b0]
call fcn.14004d8a0
mov edx, 0x104
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
lea rax, [rbp + 0x2b0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x140041433
lea rdx, [rbp + 0x2b0]
lea rcx, [rsp + 0x70]
call fcn.140007120
nop
cmp byte [rbx], 0
je 0x140041501
movabs rbx, 0x7ffffffffffffffe
mov rax, qword [rbp - 0x80]
sub rbx, rax
cmp rbx, 0x13
jb 0x14004171d
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], 0x13
lea rdx, str.System32_ntdll.dll
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x70]
call fcn.140008b90
nop
mov r8b, 1
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.14001d1e0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140041677
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400414f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041723
call fcn.14004afd0
jmp 0x140041677
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movzx eax, byte [rbx + 1]
mov qword [rbp - 0x70], rsi
mov byte [rbp - 0x68], al
test al, al
je 0x140041522
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop
movabs rbx, 0x7ffffffffffffffe
mov rax, rbx
mov rcx, qword [rbp - 0x80]
sub rax, rcx
cmp rax, 0x13
jb 0x140041729
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], 0x13
lea rdx, str.System32_ntdll.dll
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.140008b90
nop
mov r8b, 1
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x130]
call fcn.14001d1e0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400415cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400415c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004172f
call fcn.14004afd0
mov rax, qword [rbp - 0x80]
sub rbx, rax
cmp rbx, 0x13
jb 0x140041735
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], 0x13
lea rcx, str.SysWOW64_ntdll.dll
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.140008b90
nop
mov r8b, 1
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.14001d1e0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140041667
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041661
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004173b
call fcn.14004afd0
nop
cmp byte [rbp - 0x68], 0
je 0x140041677
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140041750
nop
lea rcx, [rdi + 0x180]
lea rdx, [rbp + 0x130]
call fcn.140041750
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400416d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400416d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041717
call fcn.14004afd0
nop
lea rcx, [rbp + 0x130]
call fcn.14001cfe0
nop
lea rcx, [rbp - 0x50]
call fcn.14001cfe0
mov rax, rdi
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.14004afb0
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140058230
nop
call fcn.140001390
int3
call fcn.140058230
nop
call fcn.140001390
int3
call fcn.140058230
int3
call fcn.140001390
int3
call fcn.140058230
int3