Function at 0x1800035f0
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 - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea r8, str._original.dll
lea rcx, [rsp + 0x70]
call fcn.180004e60
cmp qword [rax + 0x18], 7
jbe 0x180003644
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x180003694
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000368f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000368f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000702c
test rdi, rdi
jne 0x18000392f
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x180003749
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r8d, [rdi + 0x21]
lea rdx, str.Failed_to_Get_System32_Directory_
lea rcx, [rsp + 0x30]
call fcn.180005700
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800043e0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180003725
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003720
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003923
call fcn.18000702c
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 0x180003932
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], si
jne 0x180003760
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.180006160
nop
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x18000378b
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.180001a60
cmp rax, r11
je 0x1800037db
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1800037b2
cmp cx, 0x2f
jne 0x1800037bb
add rax, 2
cmp rax, r11
jne 0x1800037a3
cmp rax, r11
je 0x1800037db
lea rcx, [r10 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x1800037db
cmp dx, 0x2f
je 0x1800037db
mov r10, rcx
cmp rax, rcx
jne 0x1800037c0
mov qword [rsp + 0x20], r10
sub r11, r10
sar r11, 1
mov qword [rsp + 0x28], r11
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180006160
mov dword [rsp + 0x20], 7
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180004970
mov dword [rsp + 0x20], 0xf
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180001b60
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180003892
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000388d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000388d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000702c
movdqa xmm0, xmmword [0x18000c4d0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1800038eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800038e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800038e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000702c
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x18000392f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000392a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000392a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000702c
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180006fd0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret