Function at 0x1800c6df0
Capabilities:
Get common file path
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x180231100]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r12, rcx
xor edi, edi
mov qword [rbp - 0x51], rdi
lea r9, [rbp - 0x51]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1801e7b20]
call sub.SHELL32.dll_SHGetKnownFolderPath
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov rdx, qword [rbp - 0x51]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x1800c6e56
lea rcx, [rbp - 0x21]
call fcn.18001bc30
nop
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.CitizenFX_
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call fcn.18009a3a0
nop
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova r8, qword [rbp - 0x21]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rdx, rbx
xor r8d, r8d
lea rcx, [rbp - 1]
call fcn.18000a0c0
nop
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova r8, qword [rbp - 0x21]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x41]
call fcn.18000a2f0
nop
lea rsi, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rsi, qword [rbp - 0x41]
mov r14, qword [rbp - 0x31]
cmp r14, 8
jb 0x1800c6f9a
lea rdi, [r14 + rsi]
lea r8, [rdi - 7]
sub r8, rsi
mov edx, 0x75
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1800c6f98
nop dword [rax]
nop dword [rax + rax]
mov r8d, 8
lea rdx, str.username
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800c6fdb
inc rbx
lea r8, [rdi - 7]
sub r8, rbx
mov edx, 0x75
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1800c6f60
xor edi, edi
mov rax, qword [rbp - 0x29]
sub rax, r14
cmp rax, 0xa
jb 0x1800c7006
lea rax, [r14 + 0xa]
mov qword [rbp - 0x31], rax
lea rbx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rbx, qword [rbp - 0x41]
add rbx, r14
mov r8d, 0xa
lea rdx, str.ros_id.dat
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xa], 0
jmp 0x1800c7029
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x1800c6f98
xor r9d, r9d
lea r8, str.C___
lea rdx, str.Set_your_path
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x20], 0xa
lea r9, str.ros_id.dat
movzx r8d, byte [rbp - 0x59]
mov edx, 0xa
lea rcx, [rbp - 0x41]
call fcn.18000d5d0
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rdx, qword [rbp - 0x41]
lea r8, [0x1801e127c]
lea rcx, [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [rbp - 0x49]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [0x180235acc]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x180235acc]
mov dword [r12], eax
mov rdx, qword [rbp - 0x29]
cmp dword [0x180235acc], 0
je 0x1800c71b1
cmp rdx, 0xf
jbe 0x1800c70cd
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c70c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c71df
call fcn.1800d1d5c
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x41], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x1800c7118
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c7113
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c722d
call fcn.1800d1d5c
movdqa xmm0, xmmword [0x180213750]
movdqu xmmword [rbp + 0xf], xmm0
mov byte [rbp - 1], 0
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x1800c716a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c7164
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c7281
call fcn.1800d1d5c
nop
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x1800c71aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c71a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c72c5
call fcn.1800d1d5c
mov al, 1
jmp 0x1800c72d3
cmp rdx, 0xf
jbe 0x1800c71eb
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c71e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800c71e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1d5c
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x41], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x1800c7239
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c7234
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800c7234
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1d5c
movdqa xmm0, xmmword [0x180213750]
movdqu xmmword [rbp + 0xf], xmm0
mov byte [rbp - 1], 0
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x1800c728e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c7288
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800c7288
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1d5c
nop
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x1800c72d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c72cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800c72cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1d5c
xor al, al
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1800d1df0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret