Function at 0x14000c900
Capabilities:
Check os version
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10a00
call fcn.14001ec30
sub rsp, rax
mov rax, qword [0x140029ab0]
xor rax, rsp
mov qword [rsp + 0x109f0], rax
mov qword [rsp + 0x30], rsp
mov rdi, rdx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0xb0], rsi
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0xc0], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0xc4]
call fcn.14000fca0
mov r15d, esi
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000d3a7
mov edx, esi
cmp dword [rsp + 0xc4], 5
setbe dl
test rdi, rdi
je 0x14000d3a5
cmp word [rdi], si
je 0x14000d3a5
lea rcx, [rdi + 2]
call fcn.14000ba80
test eax, eax
je 0x14000d3a7
test edx, edx
je 0x14000caaf
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
mov edx, 0x400
lea rcx, [rsp + 0x1e0]
call fcn.14000f924
mov r8, rdi
mov edx, 0x400
lea rcx, [rsp + 0x1e0]
call fcn.14000fb50
test eax, eax
je 0x14000ca45
lea rdx, [0x14000ca3e]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cb90
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov r8d, 1
lea rdx, str.Application
mov rcx, qword [rsp + 0x40]
call fcn.14000bba0
mov r15d, dword [rsp + 0x50]
jmp 0x14000cb90
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
mov edx, 0x400
lea rcx, [rsp + 0x1e0]
call fcn.14000f924
mov r8, rdi
mov edx, 0x400
lea rcx, [rsp + 0x1e0]
call fcn.14000fb50
test eax, eax
je 0x14000cafb
lea rdx, [0x14000caf4]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea r8, str.UserChoice
mov edx, 0x400
lea rcx, [rsp + 0x1e0]
call fcn.14000fb50
test eax, eax
je 0x14000cb32
lea rdx, [0x14000cb2b]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cb90
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.Progid
mov rcx, qword [rsp + 0x40]
call fcn.14000bba0
mov r15d, dword [rsp + 0x50]
mov r14, rsi
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne r14, rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x14000cdcb
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000cbee
lea rdx, [0x14000cbe7]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000cc66
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.command
mov rcx, qword [rsp + 0x40]
call fcn.14000baa0
test eax, eax
je 0x14000cdbc
lea rdx, [0x14000cc5f]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov eax, dword [rsp + 0x58]
cmp eax, 1
je 0x14000cc93
cmp eax, 2
je 0x14000cc93
cmp eax, 7
je 0x14000cc93
lea rdx, [0x14000cc8c]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov ecx, dword [rsp + 0x38]
add rcx, 2
call fcn.14000f89c
mov rdi, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x14000ccca
lea rdx, [0x14000ccc3]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov r8d, dword [rsp + 0x38]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.14000fca0
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000cd1f
lea rdx, [0x14000cd18]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000cd70
lea rdx, [0x14000cd69]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.command
mov rcx, qword [rsp + 0x40]
call fcn.14000baa0
test eax, eax
je 0x14000cdbc
lea rdx, [0x14000cdb5]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov r14, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x50]
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000ce0c
lea rdx, [0x14000ce05]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov ecx, dword [rsp + 0x38]
call fcn.14000f89c
mov rbx, rax
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x14000ce3f
lea rdx, [0x14000ce38]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000ce81
lea rdx, [0x14000ce7a]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 3
jae 0x14000ceb6
lea rdx, [0x14000ceaf]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov word [rsp + 0x109e0], si
mov r8d, 0x8000
lea rdx, [rsp + 0x9e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r13, [rsp + 0x9e0]
test eax, eax
cmove r13, rbx
mov qword [rsp + 0x88], r13
lea rdx, [0x140020694]
mov rcx, r13
call fcn.14000effc
mov rbx, rax
nop dword [rax]
test rbx, rbx
je 0x14000cf49
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp rcx, 2
jbe 0x14000cf30
lea r8, [rcx + rcx - 4]
lea rdx, [rbx + 4]
mov rcx, rbx
call fcn.14000f080
mov word [rbx + rdi*2 - 4], si
lea rdx, [0x140020694]
mov rcx, rbx
call fcn.14000effc
mov rbx, rax
jmp 0x14000cf00
xor eax, eax
mov rcx, r12
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r12, rcx
mov qword [rsp + 0x50], rcx
cmp rcx, 3
jae 0x14000cf82
lea rdx, [0x14000cf7b]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rdx, [0x14002068c]
mov rcx, r13
call fcn.14000effc
mov rbx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x14000cfcd
lea rdx, [0x140020684]
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rbx, rax
mov qword [rsp + 0xb8], rax
mov ecx, dword [rsp + 0x48]
test rax, rax
mov eax, 1
cmovne ecx, eax
jmp 0x14000cfd1
mov ecx, dword [rsp + 0x48]
test r14, r14
je 0x14000d218
test rbx, rbx
jne 0x14000d218
cmp r15d, 1
jae 0x14000d003
lea rdx, [0x14000cffc]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, str.ShellOpenddeexec
lea rdx, str.ShellEditddeexec
cmp r15d, 1
cmove rdx, rax
mov rcx, r14
call fcn.14000bdf0
mov r11, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x14000d04b
lea rdx, [0x14000d044]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r11
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 2
jae 0x14000d07d
lea rdx, [0x14000d076]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov rdx, qword [rsp + 0x68]
mov rcx, r11
call fcn.14000c0c0
mov r13, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x14000d0b4
lea rdx, [0x14000d0ad]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, str.ShellOpenddeexecApplication
lea rdx, str.ShellEditddeexecApplication
cmp r15d, 1
cmove rdx, rax
mov rcx, r14
call fcn.14000bdf0
mov r12, rax
test rax, rax
jne 0x14000d0f4
lea rdx, [0x14000d0ed]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rax, str.ShellOpenddeexecTopic
lea rdx, str.ShellEditddeexecTopic
cmp r15d, 1
cmove rdx, rax
mov rcx, r14
call fcn.14000bdf0
mov r14, rax
test rax, rax
jne 0x14000d13c
mov rcx, r12
call fcn.14000f894
lea rdx, [0x14000d135]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rcx, [rsp + 0x50]
call fcn.14000bf10
test eax, eax
jne 0x14000d164
lea rdx, [0x14000d15d]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov r9, r13
mov r8, r14
mov rdx, r12
mov ecx, dword [rsp + 0x50]
call fcn.14000bf40
mov ebx, eax
mov dword [rsp + 0x78], eax
cmp eax, 0xffffffff
jne 0x14000d1d8
lea edx, [rax + 2]
mov rcx, qword [rsp + 0x88]
call fcn.14000b710
mov edi, esi
mov dword [rsp + 0x90], esi
nop word [rax + rax]
mov r9, r13
mov r8, r14
mov rdx, r12
mov ecx, dword [rsp + 0x50]
call fcn.14000bf40
mov ebx, eax
mov dword [rsp + 0x78], eax
cmp eax, 0xffffffff
jne 0x14000d1d8
mov eax, edi
inc edi
mov dword [rsp + 0x90], edi
cmp eax, 0x19
jge 0x14000d1d8
lea ecx, [rbx + 0x65]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d1a0
mov ecx, dword [rsp + 0x50]
call sub.USER32.dll_DdeUninitialize
mov rcx, r12
call fcn.14000f894
mov rcx, r14
call fcn.14000f894
cmp ebx, 1
sete sil
mov dword [rsp + 0x48], esi
lea rdx, [0x14000d20f]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
mov eax, dword [rsp + 0x48]
jmp 0x14000d3a7
test ecx, ecx
je 0x14000d2c5
xor r8d, r8d
xor edx, edx
mov r14, qword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edi, eax
test eax, eax
je 0x14000d2ca
lea edx, [rax + 1]
mov eax, 2
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14000f89c
mov r12, rax
mov qword [rsp + 0xb0], rax
test rax, rax
jne 0x14000d285
lea rdx, [0x14000d27e]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14000d2ab
cmp eax, edi
ja 0x14000d2ab
mov r14, r12
mov qword [rsp + 0x68], r12
mov r12, qword [rsp + 0x50]
jmp 0x14000d2ca
lea rdx, [0x14000d2be]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
mov r14, qword [rsp + 0x68]
xor eax, eax
or r8, 0xffffffffffffffff
mov rcx, r8
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
sub rbx, r13
sar rbx, 1
lea rax, [rcx + r12 - 1]
mov qword [rsp + 0x88], rax
lea rdx, [rax - 1]
mov eax, 2
mul rdx
cmovo rax, r8
mov rcx, rax
call fcn.14000f89c
mov r14, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x14000d332
lea rdx, [0x14000d32e]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
xor eax, eax
jmp 0x14000d3a7
lea rdi, [rbx + rbx]
mov r8, rdi
mov rdx, r13
mov rcx, rax
call fcn.14000f080
lea r8, [r15 + r15]
lea rcx, [rdi + r14]
mov rdx, qword [rsp + 0x68]
call fcn.14000f080
sub r12, rbx
lea r8, [r12 + r12 - 4]
lea rdx, [r13 + rbx*2 + 4]
lea rax, [rbx + r15]
lea rcx, [r14 + rax*2]
call fcn.14000f080
mov rax, qword [rsp + 0x88]
mov word [r14 + rax*2 - 4], si
xor edx, edx
mov rcx, r14
call fcn.14000b710
mov dword [rsp + 0x48], eax
lea rdx, [0x14000d39f]
mov rcx, qword [rsp + 0x30]
call fcn.14000f8c0
nop
nop
mov eax, dword [rsp + 0x48]
jmp 0x14000d3a7
xor eax, eax
mov rcx, qword [rsp + 0x109f0]
xor rcx, rsp
call fcn.14000f6d0
lea r11, [rsp + 0x10a00]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret