Function at 0x18004df68
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x798]
sub rsp, 0x870
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov r14d, r8d
mov rsi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.1800055b8
mov edi, 0x208
mov r8d, edi
lea rdx, [rbp + 0x350]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r15d, r15d
test eax, eax
jle 0x18004dfd5
cdqe
cmp rax, rdi
jbe 0x18004dfe7
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x350]
call fcn.18000aaec
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jle 0x18004e007
cdqe
cmp rax, rdi
jbe 0x18004e01b
lea r8, [rbp + 0x350]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.18000aaec
mov rdi, qword [0x18016b408]
test rdi, rdi
jne 0x18004e085
lea rbx, [0x18016b438]
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdi, qword [0x18016b408]
test rdi, rdi
jne 0x18004e07c
mov eax, dword [0x18016b410]
test al, 1
jne 0x18004e06e
or eax, 1
mov dword [0x18016b410], eax
call fcn.1800432c8
lea rcx, [0x1800856ec]
call fcn.18006f680
nop
lea rdi, [0x18016b418]
mov qword [0x18016b408], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or rbx, 0xffffffffffffffff
cmp dword [rdi + 8], r15d
je 0x18004e1d5
test r14d, r14d
jne 0x18004e1d5
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x18004e233
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, str.System32
lea rcx, [rsp + 0x20]
call fcn.180019344
test eax, eax
jne 0x18004e14d
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x18004e0f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x18004e228
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rdx, str.SysNative
lea rcx, [rsp + 0x28]
call fcn.180019344
test eax, eax
jne 0x18004e194
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x18004e1d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x18004e1d5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180019790
mov edi, eax
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x18004e17d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x18004e0f0
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1800195c8
jmp 0x18004e1d5
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.180019790
mov edi, eax
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x18004e1c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x18004e1d5
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180019400
mov rax, qword [rsi]
cmp dword [rax - 0x10], r15d
jne 0x18004e1fd
lea rax, [rsp + 0x40]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x18004e1e3
mov r8d, ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180005498
mov eax, 1
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1800782d0
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x870
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.18000a540
int3
mov ecx, 0x80004005
call fcn.18000a540
int3