Function at 0x140022968
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14d, r9d
mov dword [rsp + 0x64], r9d
mov rbx, r8
mov qword [rbp - 0x10], rdx
mov r12, rcx
mov qword [rbp - 0x18], rcx
mov rdi, qword [rbp + 0x1d0]
mov r13, qword [rbp + 0x1c8]
mov r15, qword [rbp + 0x1d8]
mov rsi, qword [rbp + 0x1e0]
mov qword [rbp - 0x28], rsi
xor ecx, ecx
mov dword [rsp + 0x70], ecx
movzx r8d, byte [rbp + 0x1c0]
lea r9d, [rcx + 4]
test byte [0x1400d4680], 0x20
je 0x140022a56
mov dword [rbp - 0x60], ecx
mov dword [rbp - 0x68], ecx
mov dword [rbp - 0x70], r8d
lea rax, [rbp - 0x70]
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], r9
lea rax, [rbp - 0x68]
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], r9
lea rax, [rbp - 0x60]
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], r9
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400aec40]
call fcn.1400050c8
mov rdx, qword [rbp - 0x10]
movzx r8d, byte [rbp + 0x1c0]
lea rax, [0x1400cf018]
mov r9d, 5
mov rcx, qword [0x1400cf018]
cmp rcx, rax
je 0x140022ab3
test byte [rcx + 0x1c], 1
je 0x140022ab3
cmp byte [rcx + 0x19], r9b
jb 0x140022ab3
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov r9, r12
mov rcx, qword [rcx + 0x10]
call fcn.140020744
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rsp + 0x6c], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
xor eax, eax
mov qword [rbp + 8], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov dword [rbp + 0x20], 0xa
mov dword [rbp - 0x78], 0x32000
mov esi, eax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
xor ecx, ecx
test eax, eax
jne 0x140022b37
mov ebx, ecx
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0x30], rax
mov r10, qword [0x1400cf018]
lea rdx, [0x1400cf018]
cmp r10, rdx
je 0x140022b88
test byte [r10 + 0x1c], 2
je 0x140022b88
mov edx, 2
test ebx, ebx
lea eax, [rdx + 3]
cmove edx, eax
movzx eax, byte [r10 + 0x19]
cmp eax, edx
jb 0x140022b88
mov edx, 0x48
mov r9d, ebx
lea r8, [0x1400b0e30]
mov rcx, qword [r10 + 0x10]
call fcn.1400035c4
mov r10, qword [0x1400cf018]
xor ecx, ecx
test ebx, ebx
jne 0x140022c44
mov dword [rsp + 0x68], ecx
mov dword [rbp - 0x58], 4
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x54]
xor r8d, r8d
lea rdx, str.BrowseSearchSizeOverride
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140022bdf
mov eax, dword [rbp - 0x54]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp r10, rax
je 0x140022c27
test byte [r10 + 0x1c], 2
je 0x140022c27
mov eax, 5
cmp byte [r10 + 0x19], al
jb 0x140022c27
lea edx, [rax + 0x44]
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x68]
lea r8, [0x1400b0e30]
mov rcx, qword [r10 + 0x10]
call fcn.1400054e0
mov r10, qword [0x1400cf018]
test ebx, ebx
jne 0x140022c44
mov r12d, dword [rsp + 0x68]
test r12d, r12d
mov eax, 0xffffffff
cmove r12d, eax
mov dword [rbp - 0x78], r12d
mov r12, qword [rbp - 0x18]
lea rax, [0x1400cf018]
cmp r10, rax
je 0x140022c7a
test byte [r10 + 0x1c], 1
je 0x140022c7a
mov edx, 0x25
lea r8, [0x1400b1228]
mov rcx, qword [r10 + 0x10]
call fcn.1400034f0
mov r10, qword [0x1400cf018]
lea rax, [0x1400cf018]
movzx ebx, byte [r13 + 0xb0]
cmp r10, rax
je 0x140022cb6
test byte [r10 + 0x1c], 1
je 0x140022cb6
mov eax, 5
cmp byte [r10 + 0x19], al
jb 0x140022cb6
mov r9d, ebx
lea edx, [rax + 0x21]
lea r8, [0x1400b1228]
mov rcx, qword [r10 + 0x10]
call fcn.1400035c4
mov r10, qword [0x1400cf018]
cmp bl, 1
jne 0x140022d2b
lea rdx, [rbp - 8]
mov rcx, rdi
call fcn.140030d38
mov esi, eax
mov r10, qword [0x1400cf018]
lea rbx, [0x1400cf018]
cmp r10, rbx
je 0x140022d8a
test byte [r10 + 0x1c], 2
je 0x140022d8a
movzx edx, byte [r10 + 0x19]
mov ecx, 2
test eax, eax
lea eax, [rcx + 3]
cmovns ecx, eax
cmp edx, ecx
jb 0x140022d8a
lea edx, [rax + 0x45]
mov eax, dword [rbp + 8]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x1400b0e30]
mov rcx, qword [r10 + 0x10]
call fcn.1400054e0
mov r10, qword [0x1400cf018]
jmp 0x140022d8a
test rdi, rdi
je 0x1400234bd
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140022d83
mov rcx, qword [rbp - 8]
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx + 8]
mov r9, rcx
xor r8d, r8d
lea rcx, [rbp - 8]
call fcn.1400282e4
mov rcx, rax
mov rax, qword [rbp - 8]
test rax, rax
je 0x140022d6a
mov qword [rax + 8], rcx
jmp 0x140022d6e
mov qword [rbp], rcx
mov qword [rbp - 8], rcx
test rbx, rbx
jne 0x140022d41
mov r10, qword [0x1400cf018]
mov r14d, dword [rsp + 0x64]
lea rbx, [0x1400cf018]
and dword [rsp + 0x60], 0
test esi, esi
js 0x14002334e
mov rax, qword [r12]
lea rdx, [rsp + 0x60]
mov rcx, r12
mov rax, qword [rax + 0x40]
call qword [str._E_n_]
mov edi, eax
mov r10, qword [0x1400cf018]
xor r12d, r12d
cmp r10, rbx
je 0x140022e00
test byte [r10 + 0x1c], 2
je 0x140022e00
movzx edx, byte [r10 + 0x19]
lea ecx, [r12 + 2]
test eax, eax
lea eax, [rcx + 3]
cmovns ecx, eax
cmp edx, ecx
jb 0x140022e00
lea edx, [rax + 0x46]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, edi
lea r8, [0x1400b0e30]
mov rcx, qword [r10 + 0x10]
call fcn.1400054e0
mov r10, qword [0x1400cf018]
test edi, edi
js 0x14002334e
mov eax, dword [rsp + 0x60]
test eax, eax
cmovs eax, r12d
mov dword [rsp + 0x60], eax
mov rcx, r15
call fcn.140004d10
imul edx, dword [rsp + 0x60], 0x1770
add edx, 0xb1
mov rax, qword [r15]
mov r8d, 1
sub r8d, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, edx
or ecx, r8d
jge 0x140022e4b
mov rcx, r15
call fcn.140004ec8
lea rdx, str._DIDL_Lite_xmlns:dc_http:__purl.org_dc_elements_1.1___r_nxmlns:upnp_urn:schemas_upnp_org:metadata_1_0_upnp___r_nxmlns_urn:schemas_upnp_org:metadata_1_0_DIDL_Lite___r_n
or rsi, 0xffffffffffffffff
mov rax, rsi
xor ebx, ebx
inc rax
cmp word [rdx + rax*2], bx
jne 0x140022e5b
mov r8d, eax
mov rcx, r15
call fcn.140004550
mov rax, qword [r13]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, r13
mov rax, qword [rax]
call qword [str._E_n_]
test al, al
je 0x140022ea6
lea rdx, str.xmlns:microsoft_urn:schemas_microsoft_com:WMPNSS_1_0___r_n
mov rax, rsi
inc rax
cmp word [rdx + rax*2], bx
jne 0x140022e92
mov r8d, eax
mov rcx, r15
call fcn.140004550
mov rax, qword [r13]
mov edx, 0x4a
mov rcx, r13
mov rax, qword [rax]
call qword [str._E_n_]
test al, al
jne 0x140022ed8
mov rax, qword [r13]
mov edx, 0x48
mov rcx, r13
mov rax, qword [rax]
call qword [str._E_n_]
test al, al
je 0x140022ef6
lea rdx, str.xmlns:dlna_urn:schemas_dlna_org:metadata_1_0___r_n
mov rax, rsi
inc rax
cmp word [rdx + rax*2], bx
jne 0x140022ee2
mov r8d, eax
mov rcx, r15
call fcn.140004550
lea rdx, [0x1400b0d24]
mov rax, rsi
inc rax
cmp word [rdx + rax*2], bx
jne 0x140022f00
mov r8d, eax
mov rcx, r15
call fcn.140004550
mov eax, dword [rsp + 0x60]
test eax, eax
jle 0x140023289
cmp eax, 1
jne 0x140022f2f
btr r14d, 0xc
mov dword [rsp + 0x64], r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov r14d, eax
sub r14d, dword [rsp + 0x6c]
mov rcx, r15
call fcn.1400228c8
mov esi, eax
xor eax, eax
cmp dword [rsp + 0x60], eax
jbe 0x140023235
mov qword [rbp - 0x80], rax
mov r9, qword [rbp - 0x18]
mov rcx, qword [r9]
mov rax, qword [rcx + 0x38]
lea r8, [rbp - 0x80]
mov edx, ebx
mov rcx, r9
call qword [str._E_n_]
mov edi, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x140022fcd
test byte [rcx + 0x1c], 2
je 0x140022fcd
movzx edx, byte [rcx + 0x19]
mov eax, 2
test edi, edi
lea r8d, [rax + 3]
cmovns eax, r8d
cmp edx, eax
jb 0x140022fcd
lea edx, [r8 + 0x47]
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, edi
lea r8, [0x1400b0e30]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad4c
test edi, edi
js 0x14002321f
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
mov eax, 0x1770
sub ecx, eax
or ecx, edx
jge 0x140023018
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140004ec8
test byte [0x1400d4680], 0x20
je 0x140023058
mov dword [rbp - 0x50], ebx
lea rax, [rbp - 0x50]
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], 4
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea rdx, [0x1400aec20]
call fcn.1400050c8
lea rcx, [rbp + 0x50]
call fcn.140036c54
nop
mov qword [rsp + 0x38], r13
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov al, byte [rbp + 0x1c0]
mov byte [rsp + 0x20], al
mov r9d, dword [rsp + 0x64]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x50]
call fcn.140036e44
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x50]
call fcn.140099acc
test byte [0x1400d4680], 0x20
je 0x1400230e3
mov dword [rbp - 0x48], ebx
lea rax, [rbp - 0x48]
mov qword [rbp + 0x140], rax
mov qword [rbp + 0x148], 4
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea rdx, [0x1400aec10]
call fcn.1400050c8
mov rdx, qword [rsp + 0x78]
xor eax, eax
cmp dword [rdx - 0x10], eax
je 0x140023142
test dword [rsp + 0x64], 0x408
jne 0x14002311d
lea rcx, [rsp + 0x78]
call fcn.1400228c8
add eax, 2
add esi, eax
lea eax, [rsi + 0xc]
mov r8d, dword [rbp - 0x78]
cmp eax, r8d
ja 0x14002319e
mov rdx, qword [rsp + 0x78]
inc r12d
mov r8d, dword [rdx - 0x10]
mov rcx, r15
call fcn.140004550
mov r8d, 2
lea rdx, [0x1400b0bfc]
mov rcx, r15
call fcn.140004550
nop
lea rcx, [rbp + 0x50]
call fcn.140036d90
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140023173
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rbp - 0x80]
xor eax, eax
test rcx, rcx
je 0x14002318d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_n_]
xor eax, eax
inc ebx
cmp ebx, dword [rsp + 0x60]
jae 0x140023235
jmp 0x140022f59
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x1400231ee
test byte [rcx + 0x1c], 2
je 0x1400231ee
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x1400231ee
lea eax, [rsi + 0xc]
mov edx, 0x4d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, [0x1400b0e30]
mov rcx, qword [rcx + 0x10]
call fcn.14001ffb4
nop
lea rcx, [rbp + 0x50]
call fcn.140036d90
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002321f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140023235
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_n_]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov esi, dword [rsp + 0x6c]
sub eax, esi
mov rcx, qword [0x1400cf018]
lea rdx, [0x1400cf018]
mov r13d, 5
cmp rcx, rdx
je 0x140023293
test byte [rcx + 0x1c], 2
je 0x140023293
cmp byte [rcx + 0x19], r13b
jb 0x140023293
lea edx, [r13 + 0x49]
mov dword [rsp + 0x20], eax
mov r9d, r14d
lea r8, [0x1400b0e30]
mov rcx, qword [rcx + 0x10]
call fcn.1400054e0
jmp 0x140023293
mov esi, dword [rsp + 0x6c]
mov r13d, 5
mov rbx, qword [rbp - 0x28]
mov dword [rbx], r12d
lea rdx, str.__DIDL_Lite_
or rax, 0xffffffffffffffff
xor r12d, r12d
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1400232a8
mov r8d, eax
mov rcx, r15
call fcn.140004550
mov rcx, qword [r15]
test rcx, rcx
jne 0x1400232ca
mov eax, r12d
jmp 0x1400232e0
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400232ce
test eax, eax
js 0x1400234b2
cmp eax, dword [rcx - 0xc]
jg 0x1400234b2
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r15]
mov word [rax + rcx*2], r12w
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, esi
mov r10, qword [0x1400cf018]
lea r14, [0x1400cf018]
cmp r10, r14
je 0x140023348
test byte [r10 + 0x1c], 2
je 0x140023348
cmp byte [r10 + 0x19], r13b
jb 0x140023348
mov edx, 0x4f
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x1400b0e30]
mov rcx, qword [r10 + 0x10]
call fcn.1400054e0
mov r10, qword [0x1400cf018]
test edi, edi
jns 0x14002335e
jmp 0x140023359
lea r14, [0x1400cf018]
mov rbx, qword [rbp - 0x28]
mov edi, 0x80040365
cmp r10, r14
je 0x1400233bb
test byte [r10 + 0x1c], 1
je 0x1400233bb
mov edx, edi
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
movzx eax, byte [r10 + 0x19]
cmp eax, edx
jl 0x1400233bb
mov r8d, 0xf3c
lea rdx, [rbp + 0x28]
mov rcx, r15
call fcn.1400047ec
mov esi, 1
mov rcx, qword [rax]
lea edx, [rsi + 0x4f]
mov eax, dword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, edi
mov rcx, qword [0x1400cf018]
mov rcx, qword [rcx + 0x10]
call fcn.14001fe80
jmp 0x1400233bf
mov esi, dword [rsp + 0x70]
test sil, 1
je 0x1400233ea
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400233ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
test byte [0x1400d4680], 0x20
je 0x140023466
test rbx, rbx
je 0x1400233fc
mov eax, dword [rbx]
jmp 0x1400233ff
or eax, 0xffffffff
mov dword [rbp - 0x38], eax
mov dword [rbp - 0x30], edi
movzx eax, byte [rbp + 0x1c0]
mov dword [rbp - 0x40], eax
lea rax, [rbp - 0x40]
mov qword [rbp + 0xe0], rax
mov ecx, 4
mov qword [rbp + 0xe8], rcx
lea rax, [rbp - 0x38]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rcx
lea rax, [rbp - 0x30]
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rcx
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea rdx, [0x1400aec30]
call fcn.1400050c8
nop
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14002347c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rcx, [rbp - 8]
call fcn.140015d68
mov eax, edi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400a3310
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140005068
int3
mov ecx, 0x80004005
call fcn.140005068
int3