Function at 0x18004bb6c
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push r12
push r13
push r14
sub rsp, 0x2c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rsi, r8
mov r12, rcx
lea rcx, [rsp + 0x30]
call fcn.18000d450
nop
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x18004bbbe
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [r12 + 0x40], 0
cmp qword [r12 + 0x50], rsi
je 0x18004bbe8
test rsi, rsi
je 0x18004bbd3
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [r12 + 0x50]
test rcx, rcx
je 0x18004bbe3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r12 + 0x50], rsi
mov rbx, qword [0x1800bd5a0]
test rbx, rbx
je 0x18004bc0d
cmp qword [rbx + 8], 0
jne 0x18004bc07
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
jmp 0x18004bc0f
xor ecx, ecx
mov r8d, 0x104
lea rdx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18004bff1
and qword [rsp + 0x40], 0
mov qword [rsp + 0x190], SafeArrayUnaccessData
and qword [rsp + 0x188], 0
mov byte [rsp + 0x178], 0
lea rcx, [rsp + 0x1a0]
call fcn.180064df0
mov r8, rax
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x170]
call fcn.180005ecc
lea rcx, [0x180094694]
call fcn.180064df0
mov r9, rax
xor r8d, r8d
lea rdx, [0x180094694]
lea rcx, [rsp + 0x170]
call fcn.18000e3d8
mov rbx, rax
lea rcx, [0x180094690]
call fcn.180064df0
mov qword [rsp + 0x20], rax
lea r9, [0x180094690]
mov r8d, 1
mov rdx, rbx
lea rcx, [rsp + 0x170]
call fcn.180047a28
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x70]
call fcn.18004b84c
nop
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x98], 0xfffff9ff
bts dword [rsp + rcx + 0x98], 0xb
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x80]
call fcn.18004b1c4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.18004b6f0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.18004b54c
mov r13, qword [rsp + 0x40]
test r13, r13
je 0x18004bfa8
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x18004bfa8
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x18004bd5f
mov r8, qword [rbx]
jmp 0x18004bd62
xor r8d, r8d
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax + 0x20]
test rbx, rbx
je 0x18004bd7a
mov r8, qword [rbx]
jmp 0x18004bd7d
xor r8d, r8d
mov rax, qword [rsi]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x20]
test rbx, rbx
je 0x18004bda9
cmp qword [rbx + 8], 0
jne 0x18004bda3
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
jmp 0x18004bdab
xor edx, edx
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x28]
mov r13, rax
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x18004bdc8
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [r12 + 0x40], r13
mov rcx, r13
test r13, r13
je 0x18004bf9f
mov qword [rsp + 0x58], rcx
mov rax, qword [r13]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.18005b134
mov rcx, qword [r12 + 0x40]
mov qword [rsp + 0x48], rcx
test rcx, rcx
je 0x18004be06
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x48]
call fcn.18005b068
mov r14d, eax
mov rcx, qword [r12 + 0x40]
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x18004be28
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.18005b134
test rbx, rbx
je 0x18004be3e
mov r8, qword [rbx]
jmp 0x18004be41
xor r8d, r8d
mov rax, qword [rsi]
mov edx, VariantTimeToDosDateTime
mov rcx, rsi
call qword [rax + 0x20]
test rbx, rbx
je 0x18004be6d
cmp qword [rbx + 8], 0
jne 0x18004be67
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
jmp 0x18004be6f
xor edx, edx
lea rcx, [r12 - 8]
call fcn.180045ebc
mov rdx, rax
lea rcx, [r12 + 0x48]
call fcn.1800077a0
mov rax, qword [r12 + 0x48]
test rax, rax
je 0x18004bea5
cmp qword [rax], 0
je 0x18004bea1
mov rcx, qword [rax]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x18004bea7
xor eax, eax
jmp 0x18004bea7
xor eax, eax
test eax, eax
je 0x18004becb
mov rax, qword [r12 + 0x48]
test rax, rax
je 0x18004beba
mov r8, qword [rax]
jmp 0x18004bebd
xor r8d, r8d
mov rax, qword [rsi]
mov edx, 0xd
mov rcx, rsi
call qword [rax + 0x20]
mov byte [r12 + 0x58], 1
mov rax, qword [rsi]
mov r9d, r14d
mov r8d, r14d
mov edx, 0xd
mov rcx, rsi
call qword [rax + 0x28]
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x30]
nop
lea rcx, [rsp + 0x108]
call fcn.1800469c0
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x108]
call fcn.18007e11c
nop
cmp qword [rsp + 0x190], 0x10
jb 0x18004bf39
mov rcx, qword [rsp + 0x178]
call fcn.18006419c
mov qword [rsp + 0x190], SafeArrayUnaccessData
and qword [rsp + 0x188], 0
mov byte [rsp + 0x178], 0
test rbx, rbx
je 0x18004bf98
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
jne 0x18004bf92
mov rbx, qword [rsp + 0x30]
cmp qword [rbx], 0
je 0x18004bf7c
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18004bf8a
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
and qword [rsp + 0x30], 0
xor eax, eax
jmp 0x18004c037
jmp 0x18004bfad
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x108]
call fcn.1800469c0
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x108]
call fcn.18007e11c
nop
cmp qword [rsp + 0x190], 0x10
jb 0x18004bff6
mov rcx, qword [rsp + 0x178]
call fcn.18006419c
jmp 0x18004bff6
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x18004c032
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
jne 0x18004c032
mov rbx, qword [rsp + 0x30]
cmp qword [rbx], 0
je 0x18004c01c
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18004c02a
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov eax, 0x800c0011
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180064d20
add rsp, 0x2c0
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret