Function at 0x140014150
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x960]
sub rsp, 0xa60
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xab0], rbx
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp + 0x950], rax
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov dword [rbp - 0x74], ebx
mov dword [rbp - 0x4c], ebx
mov dword [rbp - 0x58], 0x208
mov dword [rbp - 0x54], 0x208
mov dword [rbp - 0x78], 0x104
mov dword [rbp - 0x50], 0x208
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareDynabookFlashCardsHandleMessage
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete al
test al, al
jne 0x140014236
mov dword [rbp - 0x28], 0x48
lea rax, str.MessageObserver.cpp
mov qword [rbp - 0x30], rax
mov edi, 0x80004005
lea rax, str.__CHandleMessageCollection::Create_
mov qword [rbp - 0x20], rax
lea rax, [0x14004b4ac]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], ebx
mov r8d, edi
lea rdx, str.Error_Code:_0x_X
lea rcx, [rbp - 0x30]
call fcn.1400028a0
jmp 0x14001475c
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
sete al
test al, al
jne 0x14001428d
mov dword [rbp - 0x28], 0x49
jmp 0x1400141f5
mov r13d, ebx
cmp dword [rbp - 0x74], ebx
jbe 0x14001475a
nop dword [rax]
mov dword [rbp - 0x58], 0x208
lea rdi, [rbp + 0x110]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x58]
lea r8, [rbp + 0x110]
mov edx, r13d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140014732
mov dword [rbp - 0x54], 0x208
lea rdi, [rbp + 0x740]
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rbp - 0x78], 0x104
lea rdi, [rbp]
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rbp - 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x740]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, str.Name
lea rdx, [rbp + 0x110]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140014732
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov rsi, rbx
mov qword [rbp - 0x60], rbx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 8
lea r8, [0x140053b30]
lea rdx, [rbp + 0x110]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140014409
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rbx
mov edx, dword [rbp - 0x78]
lea rcx, [rbp - 0x48]
call fcn.140014880
mov edx, dword [rbp - 0x78]
mov r9d, edx
lea r8, [rbp]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.14003116c
mov r9, qword [rbp - 0x40]
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400149f0
nop
test rdi, rdi
je 0x140014405
mov rcx, rdi
call fcn.14002f3e8
mov rsi, qword [rbp - 0x60]
mov r12d, ebx
mov r14, qword [rbp - 0x68]
mov r15, qword [rbp - 0x70]
nop dword [rax]
nop dword [rax + rax]
mov word [rbp - 0x30], bx
xor eax, eax
mov qword [rbp - 0x2e], rax
mov qword [rbp - 0x26], rax
mov qword [rbp - 0x1e], rax
mov qword [rbp - 0x16], rax
mov dword [rbp - 0xe], eax
mov word [rbp - 0xa], ax
mov r8d, r12d
lea rdx, str.STR_04d
lea rcx, [rbp - 0x30]
call fcn.1400149c0
mov dword [rbp - 0x50], 0x208
lea rdi, [rbp + 0x530]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x530]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x110]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140014603
lea rcx, [rbp + 0x530]
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov edi, eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
cmp rax, r14
jae 0x140014573
lea rax, [rsp + 0x60]
cmp r15, rax
ja 0x140014573
lea rdi, [rsp + 0x60]
sub rdi, r15
sar rdi, 2
cmp r14, rsi
jne 0x140014557
mov rax, rsi
sub rax, r14
sar rax, 2
cmp rax, 1
jae 0x140014557
sub r14, r15
sar r14, 2
movabs rdx, 0x3fffffffffffffff
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x140014740
inc r14
sub rsi, r15
sar rsi, 2
mov rcx, rsi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rsi
jae 0x140014535
mov rsi, rbx
jmp 0x140014538
add rsi, rcx
cmp rsi, r14
cmovb rsi, r14
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140005940
mov rsi, qword [rbp - 0x60]
mov r14, qword [rbp - 0x68]
mov r15, qword [rbp - 0x70]
test r14, r14
je 0x140014563
mov eax, dword [r15 + rdi*4]
mov dword [r14], eax
add r14, 4
mov qword [rbp - 0x68], r14
inc r12d
jmp 0x140014420
cmp r14, rsi
jne 0x1400145eb
mov rax, rsi
sub rax, r14
sar rax, 2
cmp rax, 1
jae 0x1400145eb
sub r14, r15
sar r14, 2
movabs rdx, 0x3fffffffffffffff
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x14001474d
inc r14
sub rsi, r15
sar rsi, 2
mov rcx, rsi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rsi
jae 0x1400145c9
mov rsi, rbx
jmp 0x1400145cc
add rsi, rcx
cmp rsi, r14
cmovb rsi, r14
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140005940
mov rsi, qword [rbp - 0x60]
mov r14, qword [rbp - 0x68]
mov r15, qword [rbp - 0x70]
test r14, r14
je 0x1400145f3
mov dword [r14], edi
add r14, 4
mov qword [rbp - 0x68], r14
inc r12d
jmp 0x140014420
mov word [rbp + 0x320], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x322]
call fcn.140032580
mov r8d, 0x104
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x740]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x48
call fcn.1400311f4
mov rcx, rax
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x68]
test rax, rax
je 0x1400146ab
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov rax, qword [r14 + 0x10]
sub rax, qword [r14 + 8]
sar rax, 3
inc ax
mov word [rsp + 0x20], ax
mov r9, qword [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x320]
call fcn.140013d80
mov rsi, rax
mov r15, qword [rbp - 0x70]
jmp 0x1400146ae
mov rsi, rbx
test rsi, rsi
je 0x140014725
mov qword [rsp + 0x60], rsi
mov rax, qword [r14 + 0x10]
lea rcx, [rsp + 0x60]
cmp rcx, rax
jae 0x140014705
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
ja 0x140014705
lea rsi, [rsp + 0x60]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [r14 + 0x18]
jne 0x1400146ef
lea rcx, [r14 + 8]
call fcn.140011550
mov rax, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140014720
mov rax, qword [rax + rsi*8]
mov qword [rcx], rax
jmp 0x140014720
cmp rax, qword [r14 + 0x18]
jne 0x140014714
lea rcx, [r14 + 8]
call fcn.140011550
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x140014720
mov qword [rax], rsi
add qword [r14 + 0x10], 8
test r15, r15
je 0x140014732
mov rcx, r15
call fcn.14002f3e8
inc r13d
cmp r13d, dword [rbp - 0x74]
jae 0x14001475a
jmp 0x1400142a0
lea rcx, str.vector_T__too_long
call fcn.14002f1c8
int3
lea rcx, str.vector_T__too_long
call fcn.14002f1c8
nop
mov edi, ebx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14001476b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x950]
xor rcx, rsp
call fcn.14002f400
mov rbx, qword [rsp + 0xab0]
add rsp, 0xa60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret