Function at 0x140008480
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1401d9928]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rcx, [0x14020409c]
call fcn.14008c210
cmp qword [0x1401ebb90], 0
je 0x1400084d1
mov al, 1
jmp 0x14000872a
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140093c40
nop
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
lea ecx, [rdi + 0x10]
call fcn.1400026c0
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov qword [rax], rcx
movdqa xmm0, xmmword [0x140169ee0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], di
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140008544
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140009940
mov r8d, 0xa
lea rdx, str.AsIO2.dll
lea rcx, [rsp + 0x30]
call fcn.1400097d0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401ebb90], rax
test rax, rax
je 0x1400086d1
lea rdx, str.ASIO_Open
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebb98], rax
lea rdx, str.ASIO_ReadMSR
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebba0], rax
lea rdx, str.ASIO_WriteMSR
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebba8], rax
lea rdx, str.ASIO_InPortB
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebbb0], rax
lea rdx, str.ASIO_OutPortB
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebbb8], rax
lea rdx, str.ASIO_InPortD
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebbc0], rax
lea rdx, str.ASIO_OutPortD
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebbc8], rax
lea rdx, str.MapPhysToLin
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebb70], rax
lea rdx, str.UnmapPhysicalMemory
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebb78], rax
lea rdx, str.ASIO_MapMem
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebb80], rax
lea rdx, str.ASIO_UnmapMem
mov rcx, qword [0x1401ebb90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401ebb88], rax
xor ecx, ecx
call qword [0x1401ebb98]
test eax, eax
je 0x1400086d1
mov bl, 1
jmp 0x1400086d3
xor bl, bl
lea rcx, [rsp + 0x30]
call fcn.1400065e0
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400086fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
call fcn.140002860
movdqa xmm0, xmmword [0x140169ee0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], di
lea rcx, [rsp + 0x30]
call fcn.1400065e0
mov edx, 0x10
mov rcx, qword [rsp + 0x30]
call fcn.140002860
nop
movzx eax, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14008c3a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret