Function at 0x180005b30
Capabilities:
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x180077040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0xd
jb 0x180005ed4
cmp qword [rdx + 0x18], 7
jbe 0x180005b8e
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 0xd
lea rax, [0x180062a40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea rcx, [rbp - 0x78]
call fcn.180006fa0
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x180005c0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005c09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005c09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005d250
test rdi, rdi
jne 0x180005ea9
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x180005cbb
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea r8d, [rdi + 0x21]
lea rdx, str.Failed_to_get_System32_directory_
lea rcx, [rbp - 0x78]
call fcn.180001730
nop
lea rcx, [rbp - 0x78]
call fcn.180005ee0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x180005c97
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005e9d
call fcn.18005d250
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180005eac
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x180005cd0
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
lea rcx, [rbp - 0x78]
call fcn.180006c90
nop
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180005d00
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.180004760
cmp rax, r11
je 0x180005d5b
nop dword [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x180005d2f
cmp cx, 0x2f
jne 0x180005d38
add rax, 2
cmp rax, r11
jne 0x180005d20
cmp rax, r11
je 0x180005d5b
nop dword [rax]
lea rcx, [r10 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x180005d5b
cmp dx, 0x2f
je 0x180005d5b
mov r10, rcx
cmp rax, rcx
jne 0x180005d40
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov r8, r11
mov rdx, r10
lea rcx, [rsp + 0x68]
call fcn.180006c90
mov dword [rsp + 0x40], 0x3f
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x48]
call fcn.1800064d0
mov dword [rsp + 0x40], 0x7f
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.180004860
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x180005e0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005e09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005e09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005d250
movdqa xmm0, xmmword [0x180069900]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x180005e66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005e60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005d250
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x180005ea9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005ea4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005ea4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005d250
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18005d230
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.180001360
int3