Function at 0x140024b80
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push r13
push r14
mov eax, 0x200a0
call fcn.14024ccf0
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x200c0], rbx
mov qword [rsp + 0x200c8], rbp
mov qword [rsp + 0x200d0], rsi
mov qword [rsp + 0x200d8], rdi
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x20090], rax
xor r13d, r13d
mov qword [rsp + 0x58], r13
call fcn.1401ff164
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140024bf9
mov ecx, 0x80004005
call fcn.140002bc0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r14, [0x140275388]
mov r12, r14
or rbp, 0xffffffffffffffff
shr r12, 0x10
jne 0x140024c46
movzx edi, r14w
mov ecx, edi
call fcn.140200fbc
test rax, rax
je 0x140024c6a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1401bacf0
mov rbx, qword [rsp + 0x30]
jmp 0x140024c6a
xor eax, eax
mov rcx, rbp
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14000b770
mov rbx, qword [rsp + 0x30]
call fcn.1401ff164
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140024c8a
mov ecx, 0x80004005
call fcn.140002bc0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
test r12, r12
jne 0x140024cc8
movzx edi, r14w
mov ecx, edi
call fcn.140200fbc
test rax, rax
je 0x140024cec
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1401bacf0
mov rsi, qword [rsp + 0x38]
jmp 0x140024cec
xor eax, eax
mov rcx, rbp
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.14000b770
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025193
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x48], 0xfffe
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Installation_Directory
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025146
mov eax, dword [rsp + 0x4c]
cmp eax, 1
je 0x140024d78
cmp eax, 2
jne 0x140025146
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140024d9b
test al, 1
jne 0x140025146
shr rax, 1
cmp word [rsp + rax*2 + 0x8e], 0
je 0x140024da5
jmp 0x140025146
mov word [rsp + 0x90], 0
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140024e27
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140024eb3
cmp dword [rdx + 0x10], eax
jge 0x140024df4
cmp dword [rbx - 0xc], eax
jge 0x140024de8
mov ecx, 0x80070057
call fcn.140002bc0
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], ax
jmp 0x140024eb3
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140024e0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x38]
jmp 0x140024eb3
mov r12d, dword [rbx - 0x10]
lea r13, [rsp + 0x90]
sub r13, rbx
sar r13, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140024e5b
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002be0
mov rbx, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x30]
cmp r13, r12
ja 0x140024e7b
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.14022c8a0
jmp 0x140024e98
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x90]
mov rdx, r12
mov rcx, rbx
call fcn.14022ba40
test edi, edi
js 0x14002513b
cmp edi, dword [rbx - 0xc]
jg 0x14002513b
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
lea rcx, [rsp + 0x60]
call fcn.140046bc0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x140024f18
cmp dword [rsi + 0x10], 0
jl 0x140024f09
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140024f09
call fcn.140002dd0
mov rdi, rax
mov ecx, ebp
lock xadd dword [rsi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x140024efe
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140024f18
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.14000b770
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140024f38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x38]
mov r8, rsi
lea rdx, str._ProgramFiles_
lea rcx, [rsp + 0x30]
call fcn.14001ecc0
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x140024f6e
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140002c40
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jne 0x140024fcb
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140024f8f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, 0xffffffffffffffe8
mov rax, 0xfffffffffffffff8
lock xadd dword [rax], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140024fb2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400251ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400251ce
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x10090]
mov qword [rsp + 0x20], rax
mov r9d, 0x7fff
xor r8d, r8d
lea rdx, str.wmplayer.exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov r11d, eax
test eax, eax
jne 0x14002506c
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x10090]
mov qword [rsp + 0x20], rax
mov r9d, 0x7fff
xor r8d, r8d
lea rdx, str.mplayer2.exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov r11d, eax
test eax, eax
jne 0x14002506c
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x10090]
mov qword [rsp + 0x20], rax
mov r9d, 0x7fff
xor r8d, r8d
lea rdx, str.mplayer.exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov r11d, eax
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140025130
cmp ecx, dword [rbx - 0xc]
jg 0x140025130
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
test r11d, r11d
je 0x1400250dc
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14000b5a0
mov rdi, rax
lea rdx, [rsp + 0x10090]
lea rcx, [rsp + 0x78]
call fcn.14000b5a0
nop
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.140040ac0
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400250f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140025117
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400251ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400251ce
mov ecx, 0x80070057
call fcn.140002bc0
int3
mov ecx, 0x80070057
call fcn.140002bc0
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140025162
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140025181
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400251ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400251ce
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400251af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x1400251ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x20090]
xor rcx, rsp
call fcn.14022b9b0
lea r11, [rsp + 0x200a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret