Function at 0x140091150
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r13b, r13b
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, str._ProgramFiles_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400913ff
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140091216
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140091310
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001f70
mov rbx, qword [rsp + 0x20]
jmp 0x140091310
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14009128d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140091310
cmp dword [rdx + 0x10], eax
jge 0x140091260
cmp dword [rbx - 0xc], eax
jge 0x140091255
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140091310
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140091276
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x140091310
mov r12d, dword [rbx - 0x10]
lea rbp, [rsp + 0x40]
sub rbp, rbx
sar rbp, 1
test ecx, ecx
jns 0x1400912ab
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400912cd
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rbp, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400912f2
lea r8, [rbx + rbp*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x1400912fd
lea r8, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x1400913f4
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
lea r8, str.SonyVAIO_CareCheckVCStates.dll
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140091380
cmp dword [rbx + 0x10], 0
jl 0x140091371
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140091371
call fcn.140001b90
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140091366
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x140091380
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009139f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400913da
lea rdx, str.IsVCInstalledWithUpdate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400913d0
call rax
movzx r13d, al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400913ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400913ff
mov ecx, 0x80070057
call fcn.140001000
nop
movzx eax, r13b
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret