Function at 0x140061120
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r12, rcx
mov qword [rsp + 0x30], rcx
xor r13d, r13d
mov edi, r13d
mov dword [rsp + 0x38], r13d
mov rcx, qword [0x14009c2b0]
movabs rax, 0x4d25767f9dce13f5
and rcx, rax
shl rcx, 4
add rcx, qword [0x14009c298]
mov rax, qword [rcx + 8]
mov rdx, qword [0x14009c288]
cmp rax, rdx
je 0x140061346
mov rcx, qword [rcx]
cmp dword [rax + 0x10], r13d
je 0x1400611b4
cmp rax, rcx
je 0x140061346
mov rax, qword [rax + 8]
cmp dword [rax + 0x10], 0
jne 0x1400611a1
test rax, rax
je 0x140061346
cmp rax, rdx
je 0x140061346
mov dword [rsp + 0x38], r13d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
lea rcx, [0x14009c280]
call fcn.140042460
mov rdx, qword [rax]
add rdx, 0x18
lea rcx, [0x140099160]
call fcn.140025da0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400832e0]
mov qword [rbp - 0x70], rax
lea rax, [0x1400837c8]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
bts edi, 0xd
mov dword [rsp + 0x38], edi
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], rbx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], r13
mov dword [rbp + 0x18], r13d
mov rdx, qword [0x140098098]
lea rcx, [rbp - 0x60]
call fcn.1400317f0
mov rcx, rax
lea rdx, [0x14008071c]
call fcn.1400317f0
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x1400612b1
mov rdx, qword [r12]
mov rcx, rax
call fcn.1400317f0
mov rcx, rax
lea rdx, [0x14007eddc]
call fcn.1400317f0
mov edx, 2
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
nop
mov qword [rsp + 0x40], r13
mov r9, r13
mov qword [rsp + 0x50], r13
mov r10d, 7
mov qword [rsp + 0x58], r10
mov word [rsp + 0x40], r13w
bts edi, 0xf
mov dword [rsp + 0x38], edi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov ecx, dword [rbp + 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14006171b
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x14006171b
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
sar r8, 1
jmp 0x140061752
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140057fa0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140005110
mov edi, 3
lea rcx, [rsp + 0x60]
call fcn.140005340
lea rcx, [0x140099160]
call fcn.140005340
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x140099160], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x140099170], xmm1
movdqa xmm0, xmmword [0x140084890]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r13w
lea rcx, [rsp + 0x40]
call fcn.140005340
mov ebx, r13d
mov qword [rsp + 0x60], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [rdi + 5]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r14d, [rdi + 1]
test eax, eax
je 0x140061404
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rbp - 0x80]
lea edx, [rdi + 0x11]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140061414
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400611f4
xor r8d, r8d
xor edx, edx
lea rcx, str.ProgramData
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400614cb
lea ebx, [rax + 1]
mov ecx, ebx
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.1400740a0
mov rsi, rax
mov qword [rsp + 0x60], rax
mov r8d, ebx
mov rdx, rax
lea rcx, str.ProgramData
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400614b9
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140061475
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140002a90
mov edi, 0x1f
test rsi, rsi
je 0x1400614f3
lea edx, [rdi - 0x1d]
mov rcx, rsi
call fcn.14003edd0
jmp 0x1400614f3
test rsi, rsi
je 0x1400614cb
mov edx, 2
mov rcx, rsi
call fcn.14003edd0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
call fcn.14003e428
nop
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov edi, 0x67
lea rcx, [0x140099160]
call fcn.140005340
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x140099160], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x140099170], xmm1
movdqa xmm0, xmmword [0x140084890]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r13w
lea rcx, [rsp + 0x40]
call fcn.140005340
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
call fcn.14003e428
nop
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
bts edi, 0xa
btr edi, 0xa
or edi, 0x300
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [0x140099160]
call fcn.140058b50
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140005340
test ebx, ebx
je 0x140061841
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov r8d, 0x24
lea rdx, str.48C4687D_9760_4F5B_BAB3_60351B0841E4
lea rcx, [rsp + 0x40]
call fcn.140002a90
or edi, 0x1800
lea rdx, [rsp + 0x40]
lea rcx, [0x140099160]
call fcn.140004ec0
nop
lea rcx, [rsp + 0x40]
call fcn.140005340
lea rcx, [0x140099160]
cmp qword [0x140099178], 8
cmovae rcx, qword [0x140099160]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x40]
call fcn.14003e778
test eax, eax
jne 0x14006165e
mov ecx, dword [rsp + 0x50]
bt ecx, 0xa
jae 0x14006164c
mov eax, dword [rsp + 0x54]
cmp eax, 0xa000000c
je 0x140061678
cmp eax, 0xa0000003
jne 0x14006164c
mov r14d, 0xa
jmp 0x140061678
movzx r14d, cl
and r14d, 0x10
or r14d, 0x20
shr r14d, 4
jmp 0x140061678
sub eax, 2
je 0x140061672
sub eax, 1
je 0x140061672
sub eax, 0x32
je 0x140061672
cmp eax, 0x46
jne 0x1400616df
mov r14d, 1
cmp r14d, 1
je 0x1400616df
lea rcx, [0x140099160]
cmp qword [0x140099178], 8
cmovae rcx, qword [0x140099160]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x40]
call fcn.14003e778
test eax, eax
jne 0x1400616d5
mov ecx, dword [rsp + 0x50]
bt ecx, 0xa
jae 0x1400616cb
mov eax, dword [rsp + 0x54]
cmp eax, 0xa000000c
je 0x140061703
cmp eax, 0xa0000003
je 0x140061703
test cl, 0x10
je 0x140061703
jmp 0x1400611f4
sub eax, 2
je 0x140061703
sub eax, 1
jmp 0x140061703
lea rcx, [0x140099160]
cmp qword [0x140099178], 8
cmovae rcx, qword [0x140099160]
call fcn.14003e5bc
test al, al
jne 0x1400611f4
lea rdx, [0x140080ba3]
lea rcx, [0x140099160]
call fcn.140040370
jmp 0x140061841
test cl, 4
jne 0x140061748
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x140061748
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x140061752
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14006176b
lea rcx, [rsp + 0x40]
call fcn.140002a90
mov r10, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
lea rdx, [rsp + 0x40]
cmp r10, 8
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov r8, r9
lea rcx, [rsp + 0x60]
call fcn.140002a90
nop
lea rdx, [rsp + 0x60]
lea rcx, [0x140099160]
call fcn.140004ec0
nop
lea rcx, [rsp + 0x60]
call fcn.140005340
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140061804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400617fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400617fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rbx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call fcn.14001ea10
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rcx, r12
call fcn.140005340
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14003edb0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret