Function at 0x140005524
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002a6d8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rcx
mov qword [rsp + 0x58], rcx
lea r15, [0x14002a0c8]
mov rcx, qword [0x14002a0c8]
cmp rcx, r15
je 0x140005591
test byte [rcx + 0x1c], 0x10
je 0x140005591
mov edx, 0x10
lea r8, [0x140020980]
mov rcx, qword [rcx + 0x10]
call fcn.140001dd8
xor esi, esi
mov edi, esi
mov word [rsp + 0x70], si
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, str._CommonProgramFiles_Microsoft_SharedInk_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400055d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400059c1
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140005a20
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140005a2b
lea rdx, str.FSDefinitions_
lea rcx, [rsp + 0x50]
call fcn.140001c1c
mov edi, eax
test eax, eax
js 0x140005710
lea rdx, str.FSDefinitions_
lea rcx, [rsp + 0x48]
call fcn.140001c1c
mov edi, eax
test eax, eax
js 0x14000570b
mov rcx, r14
call fcn.140005a40
mov edi, eax
test eax, eax
js 0x14000570b
mov rcx, qword [r14 + 0x60]
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x48]
mov r8, rbx
mov rdx, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
call qword [0x140020080]
mov edi, eax
test eax, eax
js 0x1400056ef
mov rcx, qword [r14 + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140020080]
mov edi, eax
test eax, eax
js 0x1400056ef
mov rcx, qword [r14 + 0x50]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x60]
mov rax, qword [rax + 0x18]
call qword [0x140020080]
mov edi, eax
test eax, eax
js 0x1400056ef
mov rcx, qword [r14 + 0x68]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x50]
mov rax, qword [rax + 0x18]
call qword [0x140020080]
mov edi, eax
test eax, eax
js 0x1400056ef
mov rcx, qword [r14 + 0x70]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x50]
mov rax, qword [rax + 0x18]
call qword [0x140020080]
mov edi, eax
test edi, edi
js 0x140005710
mov rcx, qword [r14 + 0x58]
mov rax, qword [rcx]
mov rdx, r14
mov rax, qword [rax + 0x18]
call qword [0x140020080]
mov edi, eax
jmp 0x140005710
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
jmp 0x14000573f
test edi, edi
js 0x1400059c1
lea r8, [r14 + 0xe8]
lea rdx, [rsp + 0x40]
call fcn.14000f3bc
mov edi, eax
test eax, eax
js 0x1400059c1
mov rcx, r14
call fcn.140005bd8
mov edi, eax
test eax, eax
js 0x1400059c1
mov ecx, 0xa0
call fcn.14001c518
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140005816
mov rbx, qword [r14 + 0x48]
mov r11, qword [r14 + 0x40]
mov r10, qword [r14 + 0x30]
mov r9, qword [r14 + 0x38]
mov r8, qword [r14 + 0x28]
mov rdx, qword [r14 + 0x20]
mov rcx, qword [r14 + 0x18]
mov qword [rax + 0x40], rsi
mov qword [rax + 0x48], rsi
mov byte [rax + 0x5c], sil
mov dword [rax + 0x60], esi
mov qword [rax + 0x68], rsi
mov byte [rax + 0x70], sil
mov dword [rax + 0x74], esi
mov dword [rax + 0x78], 2
mov word [rax + 0x94], 0x100
mov byte [rax + 0x96], sil
mov dword [rax + 0x98], esi
mov byte [rax + 0x9c], 1
mov qword [rax], r14
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
mov qword [rax + 0x28], r10
mov qword [rax + 0x30], r11
mov qword [rax + 0x38], rbx
mov qword [rax + 0x50], rsi
mov rcx, rax
call fcn.14000e84c
jmp 0x140005819
mov rdi, rsi
mov qword [r14 + 0x88], rdi
test rdi, rdi
je 0x140005864
mov rax, qword [r14 + 0x80]
mov rbx, qword [rax + 8]
mov ecx, 0x10
call fcn.14001c518
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000584c
mov qword [rax], rbx
mov dword [rax + 8], esi
jmp 0x14000584f
mov rax, rsi
mov qword [rdi + 0x40], rax
test rax, rax
je 0x140005864
mov rcx, rax
call fcn.14000f280
mov edi, eax
jmp 0x140005869
mov edi, 0x8007000e
test edi, edi
js 0x1400059c1
mov rcx, r14
call fcn.1400052c0
mov edi, eax
test eax, eax
js 0x1400059c1
mov rcx, r14
call fcn.140006440
mov edi, eax
test eax, eax
js 0x1400059c1
xor r9d, r9d
mov r8, qword [0x14002b3d0]
lea rdx, [0x140008250]
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
nop dword [rax + rax]
mov qword [0x14002b420], rax
test rax, rax
jne 0x1400058dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400059c1
xor r9d, r9d
mov r8, qword [0x14002b3d0]
lea rdx, [0x140008e40]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
nop dword [rax + rax]
mov qword [0x14002b418], rax
test rax, rax
jne 0x14000592b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400059c1
mov ebx, esi
lea r15, [0x140020958]
lea r12, [r14 + 0xc0]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [0x1400087f0]
xor r8d, r8d
mov edx, dword [r15]
mov ecx, edx
call qword [sym.imp.USER32.dll_SetWinEventHook]
nop dword [rax + rax]
mov qword [r12], rax
test rax, rax
je 0x140005984
inc ebx
add r12, 8
add r15, 4
cmp ebx, 2
jl 0x140005943
jmp 0x14000599e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400059c1
mov rcx, r14
call fcn.140006f60
mov rax, qword [r14 + 0x78]
mov ecx, dword [rax + 0x98]
shr ecx, 6
and cl, 1
mov byte [r14 + 0xf0], cl
mov rcx, qword [0x14002a0c8]
lea rax, [0x14002a0c8]
cmp rcx, rax
je 0x1400059ef
test byte [rcx + 0x1c], 0x10
je 0x1400059ef
mov edx, 0x11
lea r8, [0x140020980]
mov rcx, qword [rcx + 0x10]
call fcn.140001dd8
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001c9c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov ecx, 0x8007000e
call fcn.140001b40
nop
mov ecx, 0x8007000e
call fcn.140001b40
int3