Function at 0x128ab870
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x280
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x129ae54c], 0
jne 0x128abb08
mov qword [rsp + 0x48], 7
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.12803dc0
mov word [rsp + 0x60], r13w
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8d, [r13 + 1]
lea rdx, [0x129b4198]
lea rcx, [rsp + 0x28]
call fcn.12803a10
mov r12, qword [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.12803a10
lea r8d, [r13 + 1]
lea rdx, [0x129b4198]
lea rcx, [rsp + 0x28]
call fcn.12803a10
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.12803a10
xor eax, eax
or rcx, 0xffffffffffffffff
lea rsi, str.Drivers
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rbp, [rsi + rcx*2 - 2]
cmp rsi, rbp
je 0x128aba2a
lea edi, [rax + 0x5c]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x128ab9dd
lea rbx, [rax - 1]
cmp rax, rbx
ja 0x128ab9c6
call fcn.129581ac
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
cmp word [rax + rbx*2], di
je 0x128ab9ef
mov r8d, edi
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.12803b90
lea rax, [0x129bcb5c]
mov ecx, 0x44
nop dword [rax + rax]
cmp cx, di
je 0x128aba13
add rax, 2
mov di, word [rax]
test di, di
jne 0x128aba00
jmp 0x128aba1a
lea rsi, [0x129db2da]
mov r8, rbp
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1281aed0
lea rcx, [rsp + 0x50]
mov rax, qword [0x12a23968]
mov qword [rcx], rax
mov rax, qword [0x12a23970]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0x30]
mov rax, qword [rcx]
mov qword [0x12a23968], rax
mov rax, qword [rcx + 8]
mov qword [0x12a23970], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rcx, qword [0x12a23978]
mov rax, qword [rsp + 0x40]
mov qword [0x12a23978], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [0x12a23980]
mov rcx, qword [rsp + 0x48]
mov qword [0x12a23980], rcx
mov qword [rsp + 0x48], rax
lea rax, [0x12a23968]
cmp rcx, 8
cmovae rax, qword [0x12a23968]
mov qword [0x129ae550], rax
lea rax, [rax + r12*2]
mov qword [0x129ae558], rax
lea rcx, [0x12a23990]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x129ae54c], 1
cmp qword [rsp + 0x48], 8
jb 0x128abaf4
mov rcx, qword [rsp + 0x30]
call fcn.12958250
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret