Function at 0x180005000
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
cmp edx, 1
je 0x18000503f
mov eax, 1
jmp 0x180005253
mov r8d, 0x104
lea rdx, [rbp + 0x60]
lea rcx, str._SystemRoot_System32powrprof.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x180005253
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180068ce8], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.180031570
lea rcx, [rsp + 0x30]
call fcn.1800042f0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x180005096
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800066b0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rbx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180005108
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005103
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000527b
call fcn.1800172e0
movdqa xmm0, xmmword [0x18005f410]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
call fcn.180005290
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rbx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x60]
call fcn.180005fe0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x4c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp], rax
lea rcx, [rbp]
call fcn.180016970
nop
xor esi, esi
mov ebx, esi
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x180068d08], edi
je 0x1800051c1
cmp rbx, 0x20
jae 0x1800051aa
xor ecx, ecx
jmp 0x1800051ac
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180068d08], edi
jne 0x1800051a0
cmp qword [0x180068d10], rsi
jne 0x1800051de
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180068d10], rax
xchg dword [0x180068d08], esi
lea r8, [0x180068cb0]
lea rdx, [0x180004b20]
mov rcx, qword [sym.imp.KERNEL32.dll_CreateFileW]
call fcn.1800149c0
lea r8, [0x180068cd0]
lea rdx, [0x180004e40]
mov rcx, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call fcn.1800149c0
lea r8, [0x180068cc8]
lea rdx, [0x180004ef0]
mov rcx, qword [sym.imp.RPCRT4.dll_I_RpcBindingInqLocalClientPID]
call fcn.1800149c0
lea r8, [0x180068cb8]
lea rdx, [0x180004f10]
mov rcx, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.1800149c0
call fcn.180014cb0
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800172c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.18001f368
nop
int3