Function at 0x140005820
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14007f180]
xor rax, rsp
mov qword [rbp + 8], rax
xor esi, esi
mov rdi, qword [0x140086840]
lea rbx, [0x140086830]
cmp qword [0x140086848], 0xf
cmova rbx, qword [0x140086830]
call fcn.14005b5ac
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.140001fd0
nop
call fcn.14005b5ac
lea r15, str.AppData
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x14000590d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005908
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005908
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
call fcn.14005b5ac
lea r14, str.Local
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 5
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x14000598c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005987
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005987
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
call fcn.14005b5ac
lea rcx, str.FiveM
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 5
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140005a0b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
call fcn.14005b5ac
lea rcx, str.FiveM.app
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 9
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140005a8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x18]
call fcn.1400025b0
nop
call fcn.14005b5ac
lea rcx, str.data
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 4
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x18]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140005b17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
lea rcx, str.USERPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140005b30
call fcn.14005b5ac
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rbx
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.140001fd0
nop
call fcn.14005b5ac
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140005bd1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bcc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bcc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
call fcn.14005b5ac
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 5
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140005c49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
call fcn.14005b5ac
lea rcx, str.DigitalEntitlements
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], reloc.WS2_32.dll_send
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001fd0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140005cc8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005cc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x20]
call fcn.1400025b0
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400025b0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov ecx, 0x40
call fcn.14005c020
mov rbx, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
lea rcx, [rax + 0x40]
mov qword [rbp - 0x60], rcx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x60], rax
lea rdi, [rsp + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1400025b0
add rbx, 0x20
mov qword [rsp + 0x78], rbx
add rdi, 0x20
lea rax, [rsp + 0x60]
cmp rdi, rax
jne 0x140005d44
mov rdx, rbx
mov rcx, rbx
call fcn.14000d4f0
mov qword [rbp - 0x68], rbx
lea r9, [fcn.140002540]
mov edx, 0x20
mov r8d, 2
lea rcx, [rsp + 0x20]
call fcn.14005c05c
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x68]
cmp rbx, rdi
je 0x140005def
lea r14, [0x14007f208]
nop word [rax + rax]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r14
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400035a0
cmp dword [rsp + 0x60], 0
jne 0x140005f5b
test al, al
je 0x140005dde
mov rcx, rbx
call fcn.1400039c0
add rbx, 0x20
cmp rbx, rdi
jne 0x140005db0
mov rdi, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140005e47
mov rdx, rdi
mov rcx, rbx
call fcn.14000d4f0
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x70]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140005e8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
movdqa xmm0, xmmword [0x14006ad70]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], si
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x140005ede
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ed9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ed9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
movdqa xmm0, xmmword [0x14006ad70]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], si
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x140005f32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c374
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14005c000
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov r8, rbx
lea rdx, [rsp + 0x60]
lea rcx, str.exists
call fcn.140002e70
int3