Function at 0x180005be0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x7f8]
sub rsp, 0x8e0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800c4650]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rsi, rdx
mov rdi, rcx
xor r12d, r12d
lea r8d, [r12 + 1]
lea rdx, [0x1800ddb30]
lea rcx, [rbp - 0x50]
call fcn.1800266d0
lock inc dword [0x1800d7334]
mov r8d, dword [rdi + 8]
xor edx, edx
mov eax, r8d
div dword [0x1800ddb70]
mov rcx, qword [0x1800ddb68]
test rcx, rcx
je 0x180005c77
mov rcx, qword [rcx + rdx*8]
test rcx, rcx
je 0x180005c77
nop
cmp dword [rcx + 0x18], r8d
je 0x180005c70
mov rcx, qword [rcx]
test rcx, rcx
jne 0x180005c60
jmp 0x180005c77
mov ebx, 1
jmp 0x180005c7a
mov ebx, r12d
lea rcx, [rbp - 0x50]
call fcn.180026710
test ebx, ebx
jne 0x18000609f
lea rax, vtable.CObjectID.0
mov qword [rsp + 0x20], rax
mov eax, 1
lock xadd dword [0x1800d7334], eax
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [0x180081bb8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov ecx, dword [rdi + 8]
xor edx, edx
mov eax, ecx
div dword [0x1800ddb10]
mov rbx, qword [0x1800ddb08]
test rbx, rbx
je 0x18000603f
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x18000603f
cmp dword [rbx + 0x18], ecx
je 0x180005d17
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180005d05
jmp 0x18000603f
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x28], eax
lea rdx, [rbx + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1800233a0
lea rdx, [rbx + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1800233a0
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1800233a0
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1800233a0
lea rdx, [rbx + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1800233a0
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1800233a0
mov r11d, dword [rbx + 0x60]
mov dword [rsp + 0x60], r11d
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x64], eax
mov eax, dword [rbx + 0x68]
mov dword [rsp + 0x68], eax
mov eax, dword [rbx + 0x6c]
mov dword [rsp + 0x6c], eax
mov eax, dword [rbx + 0x70]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x74]
mov dword [rsp + 0x74], eax
mov eax, dword [rbx + 0x78]
mov dword [rsp + 0x78], eax
lea rdx, [rbx + 0x80]
lea rcx, [rbp - 0x80]
call fcn.1800233a0
lea rdx, [rbx + 0x88]
lea rcx, [rbp - 0x78]
call fcn.1800233a0
lea rdx, [rbx + 0x90]
lea rcx, [rbp - 0x70]
call fcn.1800233a0
mov r11, qword [rbx + 0x98]
mov qword [rbp - 0x68], r11
mov rcx, rdi
call fcn.180006630
test eax, eax
jne 0x180005e51
lea rcx, [rbp - 0x70]
call fcn.180023290
nop
lea rcx, [rbp - 0x78]
call fcn.180023290
nop
lea rcx, [rbp - 0x80]
call fcn.180023290
nop
lea rcx, [rsp + 0x58]
call fcn.180023290
nop
lea rcx, [rsp + 0x50]
call fcn.180023290
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
nop
lea rcx, [rsp + 0x38]
call fcn.180023290
nop
lea rcx, [rsp + 0x30]
call fcn.180023290
nop
jmp 0x18000609f
mov rcx, rdi
call fcn.180005ab0
test eax, eax
je 0x180005ec2
lea rcx, [rbp - 0x70]
call fcn.180023290
nop
lea rcx, [rbp - 0x78]
call fcn.180023290
nop
lea rcx, [rbp - 0x80]
call fcn.180023290
nop
lea rcx, [rsp + 0x58]
call fcn.180023290
nop
lea rcx, [rsp + 0x50]
call fcn.180023290
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
nop
lea rcx, [rsp + 0x38]
call fcn.180023290
nop
lea rcx, [rsp + 0x30]
call fcn.180023290
nop
jmp 0x18000609f
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180005f3d
mov rax, qword [rcx]
call qword [rax]
mov ebx, eax
test eax, eax
jne 0x180005f3d
lea rcx, [rbp - 0x70]
call fcn.180023290
nop
lea rcx, [rbp - 0x78]
call fcn.180023290
nop
lea rcx, [rbp - 0x80]
call fcn.180023290
nop
lea rcx, [rsp + 0x58]
call fcn.180023290
nop
lea rcx, [rsp + 0x50]
call fcn.180023290
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
nop
lea rcx, [rsp + 0x38]
call fcn.180023290
nop
lea rcx, [rsp + 0x30]
call fcn.180023290
nop
mov eax, ebx
jmp 0x1800060a2
cmp dword [rsp + 0x68], 2
jne 0x180005fd8
mov word [rbp - 0x30], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x2e]
call fcn.180034650
lea rdx, [rbp - 0x30]
mov ecx, 0x3ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x60]
call fcn.180025000
nop
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x180005fb9
lea rdx, str.DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005faf
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rbp - 0x60]
call fcn.180024520
test rsi, rsi
je 0x180005fcd
mov dword [rsi], 1
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rbp - 0x70]
call fcn.180023290
nop
lea rcx, [rbp - 0x78]
call fcn.180023290
nop
lea rcx, [rbp - 0x80]
call fcn.180023290
nop
lea rcx, [rsp + 0x58]
call fcn.180023290
nop
lea rcx, [rsp + 0x50]
call fcn.180023290
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
nop
lea rcx, [rsp + 0x38]
call fcn.180023290
nop
lea rcx, [rsp + 0x30]
call fcn.180023290
nop
mov eax, 1
jmp 0x1800060a2
lea rcx, [rbp - 0x70]
call fcn.180023290
nop
lea rcx, [rbp - 0x78]
call fcn.180023290
nop
lea rcx, [rbp - 0x80]
call fcn.180023290
nop
lea rcx, [rsp + 0x58]
call fcn.180023290
nop
lea rcx, [rsp + 0x50]
call fcn.180023290
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
nop
lea rcx, [rsp + 0x38]
call fcn.180023290
nop
lea rcx, [rsp + 0x30]
call fcn.180023290
nop
mov eax, r12d
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1800327a0
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret