Function at 0x1400813d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x6d8]
sub rsp, 0x7b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rbp + 0x6a0], rax
mov r15, rcx
cmp qword [0x140130df0], 0
je 0x1400816ee
cmp qword [0x140130dc8], 0
je 0x1400816ee
cmp qword [0x140130e08], 0
je 0x1400816ee
cmp qword [0x140130de0], 0
je 0x1400816ee
mov dword [rsp + 0x40], 0x3e8
mov ecx, 0x3e8
call fcn.1400a82f0
mov rsi, rax
lea r9, [rsp + 0x40]
mov r8d, 0x3e8
mov rdx, rax
mov ecx, ntohs
call qword [0x140130cc8]
xor r12d, r12d
mov ecx, r12d
test eax, eax
setne cl
test ecx, ecx
je 0x1400814d0
nop dword [rax]
nop word [rax + rax]
add dword [rsp + 0x40], 0x3e8
mov rcx, rsi
call fcn.1400a82b0
mov ebx, dword [rsp + 0x40]
mov ecx, ebx
call fcn.1400a82f0
mov rsi, rax
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov ecx, ntohs
call qword [0x140130cc8]
mov ecx, r12d
test eax, eax
setne cl
test ecx, ecx
jne 0x140081490
call fcn.140062740
mov edx, 0x104
lea rcx, [rbp + 0x70]
test al, al
lea r8, str.ntkrnlpa.exe
jne 0x1400814f0
lea r8, [0x1400ee660]
call fcn.1400a97ac
mov edi, r12d
cmp dword [rsi], r12d
jbe 0x140081591
call fcn.1400450d0
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
je 0x140081586
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov eax, edi
imul rdx, rax, 0x128
add rdx, 0x30
add rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14004ed00
nop
lea rdx, [rbp + 0x70]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400a99c0
mov r14, rax
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140081569
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
test r14, r14
jne 0x140081576
inc edi
cmp edi, dword [rsi]
jb 0x140081501
jmp 0x140081591
mov eax, edi
imul rcx, rax, 0x128
mov rbx, qword [rcx + rsi + 0x18]
jmp 0x140081596
mov ecx, 0x80004005
call fcn.140044890
int3
mov rbx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.1400a82b0
mov edx, 0x104
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rbp + 0x70]
lea r8, [rbp + 0x280]
lea rdx, [0x1400d7708]
lea rcx, [rbp + 0x490]
call fcn.14002d7d0
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [0x14012c178]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [0x140130dc8]
test eax, eax
jne 0x14008163c
lea rcx, [0x14012c178]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400816ee
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0x70]
mov rdx, rdi
call qword [0x140130e08]
test rax, rax
jne 0x14008168b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [0x140130df0]
lea rcx, [0x14012c178]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400816ee
mov dword [rsp + 0x60], 0x20
mov dword [rsp + 0x78], 0xe5
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r8, [rsp + 0x60]
mov rdx, r15
call qword [0x140130de0]
mov rcx, qword [rsp + 0x68]
test eax, eax
cmove rcx, r12
mov qword [rsp + 0x68], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [0x140130df0]
lea rcx, [0x14012c178]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x68]
jmp 0x1400816f0
xor eax, eax
mov rcx, qword [rbp + 0x6a0]
xor rcx, rsp
call fcn.1400ab140
lea r11, [rsp + 0x7b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret