Function at 0x180001c90
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x20010]
mov eax, 0x20110
call fcn.180078390
sub rsp, rax
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x20150], rbx
mov qword [rsp + 0x20158], rsi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x20000], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x10], rcx
xor r14d, r14d
mov dword [rsp + 0x28], r14d
lea rdx, str._programfiles_
lea rcx, [rsp + 0x38]
call fcn.180005348
nop
lea rdx, str._commonprogramfiles_
lea rcx, [rsp + 0x30]
call fcn.180005348
nop
mov eax, dword [0x1801691a8]
test al, 1
jne 0x180001d55
or eax, 1
mov dword [0x1801691a8], eax
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x1800022fd
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [0x1801691a0], rax
lea rcx, [0x1800851c8]
call fcn.18006f680
nop
mov eax, dword [0x1801691a8]
test al, 2
jne 0x180001d91
or eax, 2
mov dword [0x1801691a8], eax
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x1800022f2
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [0x180169198], rax
lea rcx, [0x180085194]
call fcn.18006f680
nop
lea r13, [0x1801691a0]
or r15, 0xffffffffffffffff
cmp dword [0x1800c5494], r14d
je 0x180001edb
cmp byte [0x1801691b8], r14b
jne 0x180001e05
mov byte [0x1801691b8], 1
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180001edb
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180001edb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x1801691b4]
call rbx
test eax, eax
je 0x180001edb
cmp dword [0x1801691b4], r14d
je 0x180001edb
mov dword [0x1800c5494], r14d
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.180001c90
nop
mov rdx, rax
mov rcx, r13
call fcn.18000525c
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180001e56
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.180001c90
nop
mov rdx, rax
lea rcx, [0x180169198]
call fcn.18000525c
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180001e97
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.180004cfc
lea r8, [0x18008ad98]
lea rdx, str.__x86_
mov rcx, r13
call fcn.180004d74
lea rcx, [0x180169198]
call fcn.180004cfc
lea r8, [0x18008ad98]
lea rdx, str.__x86_
lea rcx, [0x180169198]
call fcn.180004d74
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180005348
nop
call fcn.180001924
test eax, eax
je 0x180002016
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.1800053f4
mov rdi, rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.1800053f4
mov rbx, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call fcn.1800053f4
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1800019f8
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18000525c
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180001f87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rdx, [0x180169198]
lea rcx, [rbp - 0x78]
call fcn.1800053f4
mov rdi, rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1800053f4
mov rbx, rax
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x68]
call fcn.1800053f4
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1800019f8
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18000525c
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180002016
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov word [rbp], r14w
mov r8d, 0x8000
lea rdx, [rbp]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, 0x25
mov edx, ebx
lea rcx, [rbp]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x18000224b
mov edx, ebx
lea rcx, [rax + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x18000224b
lea rcx, [rbp]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r14w
jne 0x180002066
mov r8d, eax
lea rdx, [rbp]
lea rcx, [rsp + 0x20]
call fcn.180005498
call fcn.180001924
test eax, eax
je 0x1800021a8
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
mov rdx, r13
lea rcx, [rbp - 0x58]
call fcn.1800053f4
mov rdi, rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x50]
call fcn.1800053f4
mov rbx, rax
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x48]
call fcn.1800053f4
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1800019f8
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18000525c
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180002119
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
lea rdx, [0x180169198]
lea rcx, [rbp - 0x38]
call fcn.1800053f4
mov rdi, rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.1800053f4
mov rbx, rax
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x28]
call fcn.1800053f4
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1800019f8
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18000525c
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1800021a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov word [rbp + 0x10000], r14w
mov r8d, 0x8000
lea rdx, [rbp + 0x10000]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rbp + 0x10000]
mov rcx, rsi
call fcn.180005348
mov dword [rsp + 0x28], 1
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180002201
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180002223
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, r15d
lock xadd dword [rdx + 0x10], ecx
add ecx, r15d
test ecx, ecx
jg 0x1800022c4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x1800022c4
lea rdx, [rbp]
mov rcx, rsi
call fcn.180005348
mov dword [rsp + 0x28], 1
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x180002281
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1800022a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1800022c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rcx, qword [rbp + 0x20000]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x20110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.18000a540
nop
mov ecx, 0x80004005
call fcn.18000a540
int3