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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f8]
sub rsp, 0x3f8
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov qword [rbp - 0x50], r8
mov rbx, rdx
mov r15, rcx
xor r14d, r14d
mov dword [rdx], r14d
mov dword [r8], r14d
mov rdx, r9
call fcn.1400024c0
test eax, eax
jne 0x140002af9
mov rax, qword [0x140034610]
test rax, rax
jne 0x140002ae9
lea r8d, [r14 + 0x31]
lea rdx, [0x14002d368]
lea rcx, [0x140032a48]
call fcn.1400014a0
lea r8d, [r14 + 2]
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
xor eax, eax
jmp 0x1400035ab
lea rcx, [0x14002d368]
call rax
xor eax, eax
jmp 0x1400035ab
mov edi, 1
mov dword [rbx], edi
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1d4]
call fcn.14000d090
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xd0]
call fcn.14000d090
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r14w
lea rax, [rbp + 0xd0]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140002b70
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xb0]
call fcn.140001b10
nop
mov rdx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xc8]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140002bd8
lea rcx, [rdx + 1]
mov qword [rbp + 0xc0], rcx
lea rax, [rbp + 0xb0]
cmp r8, 8
cmovae rax, qword [rbp + 0xb0]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], r14w
jmp 0x140002bf3
mov qword [rsp + 0x20], rdi
lea r9, [0x14002d1a8]
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.1400082d0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x140002c48
lea rdi, [rcx + 0xb]
mov qword [rbp + 0xc0], rdi
lea rbx, [rbp + 0xb0]
cmp rdx, 8
cmovae rbx, qword [rbp + 0xb0]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, [0x14002d3a0]
call fcn.14000c9e0
mov word [rbx + rdi*2], r14w
jmp 0x140002c69
mov qword [rsp + 0x20], 0xb
lea r9, [0x14002d3a0]
mov edx, 0xb
lea rcx, [rbp + 0xb0]
call fcn.1400082d0
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [rbp - 0x58], rax
test rax, rax
jne 0x140002d75
mov rax, qword [0x140034610]
test rax, rax
jne 0x140002cce
lea r8d, [rdi + 0x2e]
lea rdx, [0x14002d3b8]
lea rcx, [0x140032a48]
call fcn.1400014a0
lea r8d, [rdi + 2]
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x140002cd7
lea rcx, [0x14002d3b8]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov r8d, 0x2e
lea rdx, [0x14002d3b8]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 4
call fcn.140001e80
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x140003566
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035d4
call fcn.14000acfc
jmp 0x140003566
lea rdx, [0x14002d3e8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x14002d400]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, [0x14002d418]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x60], rax
lea rdx, [0x14002d428]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x78], rax
lea rdx, [0x14002d448]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x70], rax
lea rdx, [0x14002d468]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x68], rax
lea rdx, [0x14002d478]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
mov edi, r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
mov dword [rbp - 0x80], r14d
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x78], r14d
xor edx, edx
mov r8d, 0xd0
lea rcx, [rbp - 0x40]
call fcn.14000d090
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9d, 2
mov r8d, 0x400
mov rdx, r15
lea ecx, [r9 - 1]
call rbx
test eax, eax
jne 0x140002f68
mov rax, qword [0x140034610]
test rax, rax
jne 0x140002ec1
lea r8d, [rax + 0x38]
lea rdx, [0x14002d490]
lea rcx, [0x140032a48]
call fcn.1400014a0
mov r8d, 2
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x140002eca
lea rcx, [0x14002d490]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], dil
mov r8d, 0x38
lea rdx, [0x14002d490]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 5
call fcn.140001e80
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x14000352d
inc rdx
mov rcx, qword [rbp + 0x90]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140002f5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035d4
call fcn.14000acfc
jmp 0x14000352d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, qword [rsp + 0x68]
call r12
test eax, eax
jne 0x140003028
mov rax, qword [0x140034610]
test rax, rax
jne 0x140002fc6
lea r8d, [rax + 0x41]
lea rdx, [0x14002d4d0]
lea rcx, [0x140032a48]
call fcn.1400014a0
mov r8d, 2
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x140002fcf
lea rcx, [0x14002d4d0]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], dil
mov r8d, 0x41
lea rdx, [0x14002d4d0]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 6
call fcn.140001e80
nop
jmp 0x140002f1e
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
jne 0x1400030dd
mov rax, qword [0x140034610]
test rax, rax
jne 0x14000307b
lea r8d, [r15 + 0x2f]
lea rdx, [0x14002d518]
lea rcx, [0x140032a48]
call fcn.1400014a0
lea r8d, [r15 + 2]
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x140003084
lea rcx, [0x14002d518]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], dil
mov r8d, 0x2f
lea rdx, [0x14002d518]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 7
call fcn.140001e80
nop
jmp 0x140002f1e
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, r15
xor r8d, r8d
lea edx, [r8 + 6]
mov rcx, qword [rsp + 0x68]
call r12
test eax, eax
jne 0x1400031e2
mov rax, qword [0x140034610]
test rax, rax
jne 0x14000313b
lea r8d, [rax + 0x42]
lea rdx, [0x14002d550]
lea rcx, [0x140032a48]
call fcn.1400014a0
mov r8d, 2
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x140003144
lea rcx, [0x14002d550]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], dil
mov r8d, 0x41
lea rdx, [0x14002d5a0]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 8
call fcn.140001e80
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x140003524
inc rdx
mov rcx, qword [rbp + 0x90]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400031d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035d4
call fcn.14000acfc
jmp 0x140003524
movups xmm0, xmmword [r15 + 8]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [r15 + 0x18]
movups xmmword [rbp - 0x38], xmm1
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xb0000
xor r8d, r8d
mov edx, 0x10001
mov rcx, qword [rsp + 0x70]
call qword [rbp - 0x78]
mov r12, rax
test rax, rax
jne 0x1400032c0
mov rax, qword [0x140034610]
test rax, rax
jne 0x14000325e
lea r8d, [r12 + 0x2c]
lea rdx, [0x14002d5e8]
lea rcx, [0x140032a48]
call fcn.1400014a0
lea r8d, [r12 + 2]
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x140003267
lea rcx, [0x14002d5e8]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], dil
mov r8d, 0x2c
lea rdx, [0x14002d5e8]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 9
call fcn.140001e80
nop
jmp 0x140003198
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, r12
call r13
mov dword [rsp + 0x60], eax
cmp eax, 1
jne 0x1400033c8
mov rax, qword [0x140034610]
test rax, rax
jne 0x140003321
lea r8d, [rax + 0x3e]
lea rdx, [0x14002d618]
lea rcx, [0x140032a48]
call fcn.1400014a0
mov r8d, 2
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x14000332a
lea rcx, [0x14002d618]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], dil
mov r8d, 0x3e
lea rdx, [0x14002d618]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 0xa
call fcn.140001e80
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x14000351e
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035d4
call fcn.14000acfc
jmp 0x14000351e
mov edx, eax
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, r12
call r13
cmp eax, 1
jne 0x1400034db
mov rax, qword [0x140034610]
test rax, rax
jne 0x14000343b
lea r8d, [rax + 0x3e]
lea rdx, [0x14002d658]
lea rcx, [0x140032a48]
call fcn.1400014a0
mov r8d, 2
lea rdx, [0x14002ce00]
mov rcx, rax
call fcn.1400014a0
jmp 0x140003444
lea rcx, [0x14002d658]
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], dil
mov r8d, 0x3e
lea rdx, [0x14002d658]
lea rcx, [rbp + 0x90]
call fcn.140001340
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rbp + 0x90]
mov edx, 0xb
call fcn.140001e80
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x140003510
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400034d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035d4
call fcn.14000acfc
jmp 0x140003510
lea rdx, [0x14002d6a0]
movzx ecx, word [rbx + rsi*2 + 2]
movzx eax, word [rdx + rsi*2 + 2]
sub ecx, eax
jne 0x140003506
add rsi, 2
cmp rsi, 0x2d
je 0x140003506
movzx ecx, word [rbx + rsi*2]
movzx eax, word [rdx + rsi*2]
sub ecx, eax
je 0x1400034e2
test ecx, ecx
mov eax, 1
cmove edi, eax
test rbx, rbx
je 0x14000351e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r12
call qword [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003541
xor edx, edx
call qword [rbp - 0x68]
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003553
call qword [rbp - 0x60]
mov qword [rsp + 0x68], r14
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp - 0x50]
mov dword [rax], edi
mov r14d, edi
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x1400035a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035ce
call fcn.14000acfc
mov eax, r14d
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14000aa50
add rsp, 0x3f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140010f38
nop
call fcn.140010f38
nop
int3