Function at 0x14004efe0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov byte [rcx + 1], r12b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov rax, qword [str.APPDATA]
mov dword [rsp + 0x30], eax
movzx eax, word [0x14012de14]
mov word [rsp + 0x34], ax
movzx eax, byte [0x14012de16]
mov byte [rsp + 0x36], al
mov byte [rsp + 0x37], r12b
lea rax, [rsp + 0x30]
mov qword [r11 + 0x18], rax
mov r8d, 0x104
lea rdx, [r11 - 0x158]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
cmp eax, 0x102
ja 0x14004f0cc
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xc0], xmm1
lea rax, [rsp + 0x150]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004f0a0
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xb0]
call fcn.14004e1e0
nop
lea rcx, [rsp + 0x30]
call fcn.140046b40
jmp 0x14004f0f6
movdqa xmm1, xmmword [0x140131460]
movdqu xmmword [rsp + 0xc0], xmm1
mov byte [rsp + 0xb0], 0
lea rcx, [rsp + 0x30]
call fcn.140046b40
mov rsi, 0xffffffffffffffff
mov r8d, 0xa
lea rdx, str.CitizenFX
lea rcx, [rsp + 0xb0]
call fcn.140067620
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdi, qword [rsp + 0x60]
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rbx, qword [rsp + 0x50]
call fcn.140094470
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x128]
call fcn.14004a080
nop
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x20]
call fcn.14004b300
movsd xmm0, qword [rax]
movsd qword [rsp + 0x118], xmm0
mov ecx, dword [rax + 8]
mov dword [rsp + 0x20], ecx
lea r13, [0x14099d148]
mov qword [rsp + 0x28], r13
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov eax, dword [rsp + 0x118]
test eax, eax
je 0x14004f212
cmp eax, 1
setne bl
lea rcx, [rsp + 0x128]
call fcn.1400673b0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14004f223
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f21e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f21e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor bl, bl
test ecx, ecx
jne 0x14004f5fa
jmp 0x14004f1c9
call fcn.1400952ac
movdqa xmm0, xmmword [0x140131460]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0xc8]
cmp rdx, 0xf
jbe 0x14004f27c
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f277
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f277
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400952ac
test bl, bl
je 0x14004f590
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x88], reloc.WS2_32.dll_ntohs
mov rax, qword [str.APPDATA]
mov dword [rsp + 0x70], eax
movzx eax, word [0x14012de14]
mov word [rsp + 0x74], ax
movzx eax, byte [0x14012de16]
mov byte [rsp + 0x76], al
mov byte [rsp + 0x77], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x2c0], rax
mov r8d, 0x104
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
cmp eax, 0x102
ja 0x14004f339
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xe0], xmm1
lea rax, [rsp + 0x150]
inc rsi
cmp byte [rax + rsi], 0
jne 0x14004f316
mov r8, rsi
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xd0]
call fcn.14004e1e0
jmp 0x14004f352
movdqa xmm1, xmmword [0x140131460]
movdqu xmmword [rsp + 0xe0], xmm1
mov byte [rsp + 0xd0], 0
lea rcx, [rsp + 0x70]
call fcn.140046b40
nop
mov r8d, 0xa
lea rdx, str.CitizenFX
lea rcx, [rsp + 0xd0]
call fcn.140067620
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xa0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdi, qword [rsp + 0xa0]
lea rbx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0xf
cmova rbx, qword [rsp + 0x90]
call fcn.140094470
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0xf8]
call fcn.14004a080
nop
lea rcx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 7
cmova rcx, qword [rsp + 0xf8]
call fcn.1400949e0
mov rdx, rax
shr rdx, 0x20
movzx ecx, al
mov qword [rsp + 0x2c0], rcx
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], r13
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
cmp edx, 0x91
jne 0x14004f461
lea r8, [rsp + 0x2c0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xf8]
call fcn.14004b3f0
cmp dword [rsp + 0x20], 0
jne 0x14004f614
lea rcx, [rsp + 0xf8]
call fcn.1400673b0
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0xf
jbe 0x14004f4c0
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f4bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f4bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400952ac
movdqa xmm0, xmmword [0x140131460]
movdqu xmmword [rsp + 0xa0], xmm0
mov byte [rsp + 0x90], 0
mov rdx, qword [rsp + 0xe8]
cmp rdx, 0xf
jbe 0x14004f51f
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f51a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f51a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400952ac
mov byte [r15], 1
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140094f58
mov rcx, rax
mov qword [r14], rax
mov qword [r14 + 0x10], reloc.WLDAP32.dll_Ordinal_30
mov qword [r14 + 0x18], Ordinal_35
movups xmm0, xmmword [str.CitizenFX_removed_successfully]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14012de28]
movsd qword [rax + 0x10], xmm0
mov eax, dword [0x14012de30]
mov dword [rcx + 0x18], eax
movzx eax, word [0x14012de34]
mov word [rcx + 0x1c], ax
mov byte [rcx + 0x1e], 0
mov rax, r14
jmp 0x14004f5e7
mov word [r15], 0x100
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140094f58
mov qword [r14], rax
mov qword [r14 + 0x10], reloc.WLDAP32.dll_Ordinal_22
mov qword [r14 + 0x18], Ordinal_35
movups xmm0, xmmword [str.no_CitizenFX_was_found]
movups xmmword [rax], xmm0
mov ecx, dword [0x14012de68]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x14012de6c]
mov word [rax + 0x14], cx
mov byte [rax + 0x16], 0
mov rax, r14
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x20]
lea rcx, str.exists
call fcn.14004ad60
nop
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0x20]
lea rcx, str.remove_all
call fcn.14004ad60
int3