Function at 0x1400960d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2318]
mov eax, 0x2418
call fcn.140247340
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov r13, rcx
lea rbx, [rcx + 0x28]
mov r10, qword [rbx]
mov eax, dword [rcx + 0x14e4]
or eax, 0x20019
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
mov rdx, 0xffffffff80000002
mov rcx, rbx
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x1400969ff
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x1af0]
call fcn.140249b10
xor r12d, r12d
mov edi, r12d
mov dword [rbp + 0x2370], r12d
cmp dword [r13 + 0x127c], r12d
jne 0x1400969f1
lea rsi, vtable.CSASDescriptor.0
lea r14, vtable.CSASDescriptor.1.0
lea r15, vtable.CSABString.0
mov rax, qword [rbx]
mov dword [rsp + 0x20], 0x410
lea r9, [rbp + 0x1af0]
mov r8d, edi
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [rax + 0x30]
test eax, eax
jne 0x1400969f1
mov qword [rbp + 0x5e0], rsi
mov qword [rbp + 0x5e8], r14
lea rcx, [rbp + 0x5f0]
call fcn.1400270b0
nop
lea rcx, [rbp + 0xc38]
call fcn.14000cb90
nop
mov qword [rbp + 0xdf8], r15
mov qword [rbp + 0xe00], r12
mov dword [rbp + 0xe08], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0xe00], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp + 0xe0c], 1
mov qword [rbp + 0xe10], r15
mov qword [rbp + 0xe18], r12
mov dword [rbp + 0xe20], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0xe18], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp + 0xe24], 1
mov qword [rbp + 0xe28], r15
mov qword [rbp + 0xe30], r12
mov dword [rbp + 0xe38], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0xe30], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rbp + 0xe3c], 1
mov dword [rbp + 0xde8], r12d
mov qword [rbp + 0xdf0], r12
mov qword [rbp + 0xe48], r12
mov qword [rsp + 0x50], r15
mov edi, reloc.SHELL32.dll_PathResolve
mov dword [rsp + 0x60], edi
lea ecx, [rdi + 1]
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400962dd
movups xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14029b620]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14029b630]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x14029b640]
mov dword [rax + 0x30], ecx
mov dword [rsp + 0x64], 1
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0xe60]
call fcn.140249b10
mov dword [rbp + 0x2378], 0x410
mov edx, 0xffffffff
mov rcx, qword [r13 + 0x1290]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x70], r15
mov dword [rbp - 0x80], 1
mov ecx, 2
call fcn.140247068
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140096342
movzx ecx, word [0x140287e84]
mov word [rax], cx
mov dword [rbp - 0x7c], 1
mov ecx, 0x35
call fcn.140247068
mov rsi, rax
test rbx, rbx
je 0x14009638d
mov rcx, rbx
mov rdx, rax
sub rdx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140096370
mov rcx, rbx
call fcn.140247060
mov qword [rsp + 0x58], rsi
jmp 0x140096392
mov qword [rsp + 0x58], rax
test rsi, rsi
je 0x1400963b3
movzx ecx, word [r14]
mov word [rsi + 0x33], cx
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400963a6
mov dword [rsp + 0x60], edi
test r14, r14
je 0x1400963c0
mov rcx, r14
call fcn.140247060
mov qword [rsp + 0x70], r15
lea rax, [rbp + 0x1af0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400963d3
mov dword [rbp - 0x80], ebx
lea eax, [rbx + 1]
mov r12d, eax
mov ecx, eax
call fcn.140247068
mov r15, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14009640b
mov r8d, r12d
lea rdx, [rbp + 0x1af0]
mov rcx, rax
call fcn.1402496a0
mov dword [rbp - 0x7c], 1
lea ecx, [rbx + 1]
add ecx, edi
call fcn.140247068
mov r14, rax
test rsi, rsi
je 0x14009644d
mov rcx, rsi
mov rdx, rax
sub rdx, rsi
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140096430
mov rcx, rsi
call fcn.140247060
mov qword [rsp + 0x58], r14
jmp 0x140096452
mov qword [rsp + 0x58], rax
test r14, r14
je 0x14009647e
mov ecx, edi
add rcx, r14
mov r8, r12
mov rdx, r15
call fcn.1402496a0
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r14 + rax], 0
jne 0x140096470
mov dword [rsp + 0x60], eax
test r15, r15
je 0x14009648b
mov rcx, r15
call fcn.140247060
lea rbx, [r13 + 0x28]
mov rax, qword [rbx]
lea rcx, [rbp + 0x2378]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0xe60]
mov qword [rsp + 0x28], rcx
xor r12d, r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, r14
mov rdx, 0xffffffff80000002
mov rcx, rbx
call qword [rax + 0x98]
test eax, eax
jne 0x140096929
lea rcx, [rbp - 0x70]
call fcn.1400270b0
nop
mov qword [rsp + 0x48], r12
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x1400964f1
call fcn.140247060
mov qword [rbp + 0x78], r12
mov dword [rbp + 0x80], SafeArrayUnaccessData
mov ecx, reloc.WSOCK32.dll_send
call fcn.140247068
mov qword [rbp + 0x78], rax
test rax, rax
je 0x140096527
mov r8d, dword [rbp + 0x80]
inc r8d
lea rdx, str.HKEY_LOCAL_MACHINE
mov rcx, rax
call fcn.1402496a0
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140096539
call fcn.140247060
mov qword [rbp + 0x48], r12
test r14, r14
je 0x140096577
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax], 0
jne 0x140096545
mov dword [rbp + 0x50], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbp + 0x48], rax
test rax, rax
je 0x140096592
mov r8d, dword [rbp + 0x50]
inc r8d
mov rdx, r14
mov rcx, rax
call fcn.1402496a0
jmp 0x140096592
mov dword [rbp + 0x50], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0x48], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov eax, dword [r13 + 0x14e8]
mov dword [rbp + 0xec], eax
mov rcx, qword [r13 + 0x12d8]
test rcx, rcx
je 0x1400965c0
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rbp - 0x70]
mov edx, 0x402
call qword [rax + 0x28]
lea rcx, [rbp + 0xe60]
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesA]
mov r8d, 0x410
lea rdx, [rbp + 0x1f00]
lea rcx, [rbp + 0xe60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, qword [rbp - 0x38]
test eax, eax
je 0x140096639
test rcx, rcx
je 0x1400965fd
call fcn.140247060
mov qword [rbp - 0x38], r12
lea rcx, [rbp + 0x1f00]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140096610
mov dword [rbp - 0x30], eax
lea ecx, [rax + 1]
call fcn.140247068
mov r10, rax
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14009668f
lea rdx, [rbp + 0x1f00]
jmp 0x14009667c
test rcx, rcx
je 0x140096647
call fcn.140247060
mov qword [rbp - 0x38], r12
lea rcx, [rbp + 0xe60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140096655
mov dword [rbp - 0x30], eax
lea ecx, [rax + 1]
call fcn.140247068
mov r10, rax
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14009668f
lea rdx, [rbp + 0xe60]
mov r8d, dword [rbp - 0x30]
inc r8d
mov rcx, rax
call fcn.1402496a0
mov r10, qword [rbp - 0x38]
mov dword [rbp + 0x10], 1
xor r9d, r9d
lea r8, [rbp - 0x70]
mov rdx, r10
mov rcx, r13
call fcn.1400876f0
cmp dword [rbp + 0x20], 0
jne 0x1400966f7
mov dword [rbp + 0x20], 1
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1400966c7
call fcn.140247060
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x38], 4
mov ecx, 5
call fcn.140247068
mov qword [rbp + 0x30], rax
test rax, rax
je 0x1400966f7
mov r8d, dword [rbp + 0x38]
inc r8d
lea rdx, [0x14028b498]
mov rcx, rax
call fcn.1402496a0
inc dword [r13 + 0x12a0]
mov r15, qword [rbp - 0x38]
mov dword [rbp + 0x2368], r12d
mov esi, r12d
mov rax, qword [r13 + 8]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
mov r9d, 1
mov r8d, 0x80000000
mov rdx, r15
lea rcx, [r13 + 8]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140096770
mov r9, qword [r13 + 8]
lea r8, [rbp + 0x2368]
mov rdx, rax
lea rcx, [r13 + 8]
call qword [r9 + 0x38]
mov esi, eax
mov r8, qword [r13 + 8]
mov rdx, rdi
lea rcx, [r13 + 8]
call qword [r8 + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ecx, dword [r13 + 0x12b4]
test ecx, ecx
je 0x140096795
cmp dword [rbp + 0x2368], 0
jne 0x14009691c
cmp esi, ecx
ja 0x14009691c
jmp 0x140096838
mov edi, 1
mov rax, qword [r13 + 8]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x8000080
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
mov r9d, edi
mov r8d, 0x80000000
mov rdx, r15
lea rcx, [r13 + 8]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, rax
mov dword [rbp + 0x2360], r12d
mov dword [rsp + 0x40], r12d
cmp rax, 0xffffffffffffffff
je 0x14009681f
mov r10, qword [r13 + 8]
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
lea r8, [rbp + 0x2360]
mov rdx, rsi
lea rcx, [r13 + 8]
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetDim]
test eax, eax
je 0x14009681f
cmp byte [rbp + 0x2360], 0x4d
jne 0x14009681f
cmp byte [rbp + 0x2361], 0x5a
je 0x140096822
mov edi, r12d
mov rax, qword [r13 + 8]
mov rdx, rsi
lea rcx, [r13 + 8]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x14009691c
lea r9, [r13 + 0x13e0]
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov eax, dword [r13 + 0x12c4]
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x70]
mov rcx, qword [r13 + 0x12c8]
call fcn.140017e00
test eax, eax
je 0x14009691c
cmp qword [rsp + 0x48], 0
je 0x14009691c
lea rcx, [rbp + 0x1270]
call fcn.1400279f0
nop
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x1280]
call fcn.1400284d0
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp + 0x18c8]
call fcn.14000db90
mov dword [rbp + 0x1300], r12d
mov qword [rbp + 0x1308], r12
lea r8, [rbp + 0x1270]
mov edx, 0x400
mov rcx, r13
call fcn.14007e430
lea r8, [rbp + 0x1270]
mov edx, 0x402
mov rcx, r13
call fcn.14007e430
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x1270]
mov r8, qword [rbp + 0x1338]
mov rdx, 0xffffffff80000002
mov rcx, r13
call fcn.140095720
nop
lea rcx, [rbp + 0x1270]
call fcn.1400283f0
nop
lea rcx, [rbp - 0x70]
call fcn.140027e10
lea rbx, [r13 + 0x28]
mov edi, dword [rbp + 0x2370]
inc edi
mov dword [rbp + 0x2370], edi
test r14, r14
je 0x140096945
mov rcx, r14
call fcn.140247060
nop
lea rsi, vtable.CSASDescriptor.0
mov qword [rbp + 0x5e0], rsi
lea r14, vtable.CSASDescriptor.1.0
mov qword [rbp + 0x5e8], r14
lea r15, vtable.CSABString.0
mov qword [rbp + 0xe28], r15
add dword [rbp + 0xe3c], 0xffffffff
jne 0x140096989
mov rcx, qword [rbp + 0xe30]
test rcx, rcx
je 0x140096989
call fcn.140247060
mov qword [rbp + 0xe10], r15
add dword [rbp + 0xe24], 0xffffffff
jne 0x1400969aa
mov rcx, qword [rbp + 0xe18]
test rcx, rcx
je 0x1400969aa
call fcn.140247060
mov qword [rbp + 0xdf8], r15
add dword [rbp + 0xe0c], 0xffffffff
jne 0x1400969cb
mov rcx, qword [rbp + 0xe00]
test rcx, rcx
je 0x1400969cb
call fcn.140247060
lea rcx, [rbp + 0xc38]
call fcn.14000d760
lea rcx, [rbp + 0x5f0]
call fcn.140027e10
cmp dword [r13 + 0x127c], 0
je 0x140096180
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [rax + 0x28]
add rsp, 0x2418
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret