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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r12d, r9d
mov rdi, r8
mov r9, rdx
mov r15, rcx
xor r13d, r13d
mov dword [rsp + 0x78], r13d
test byte [0x140150ec0], 2
je 0x140028c3e
movzx ebx, byte [rbp + 0xc0]
mov r8d, ebx
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea rdx, [0x140119bf8]
call fcn.1400258e8
mov r9, qword [rbp + 0xa8]
jmp 0x140028c44
mov bl, byte [rbp + 0xc0]
lea rdx, [0x14014dd40]
mov eax, 5
mov rcx, qword [0x14014dd40]
cmp rcx, rdx
je 0x140028cb8
test byte [rcx + 0x1c], 1
je 0x140028cb8
mov rsi, qword [rbp + 0xc8]
cmp byte [rcx + 0x19], al
jb 0x140028cbf
mov rdx, qword [r9 + 0x10]
movzx eax, bl
mov r8, qword [rbp + 0xe0]
mov qword [rsp + 0x58], r8
mov r8, qword [rbp + 0xd8]
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r9
mov r9, r15
mov rcx, qword [rcx + 0x10]
call fcn.140026914
jmp 0x140028cbf
mov rsi, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x70], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r13
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov dword [rbp - 0x28], 0xa
mov dword [rsp + 0x64], r13d
mov dword [rbp - 0x68], 0x32000
mov r14d, r13d
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp - 0x58], r13
lea rax, [rbp - 0x58]
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]
mov ebx, eax
test eax, eax
jne 0x140028d3a
mov ebx, r13d
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x18], rax
mov r10, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp r10, rdx
je 0x140028d89
test byte [r10 + 0x1c], 2
je 0x140028d89
mov edx, 2
test ebx, ebx
lea eax, [rdx + 3]
cmove edx, eax
movzx eax, byte [r10 + 0x19]
cmp eax, edx
jl 0x140028d89
mov edx, 0x48
mov r9d, ebx
lea r8, [0x14011c470]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
or r13d, 0xffffffff
xor eax, eax
test ebx, ebx
jne 0x140028e3f
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x64], 4
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.BrowseSearchSizeOverride
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140028dde
mov eax, dword [rbp - 0x60]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x140028e25
test byte [r10 + 0x1c], 2
je 0x140028e25
mov eax, 5
cmp byte [r10 + 0x19], al
jb 0x140028e25
lea edx, [rax + 0x44]
mov dword [rsp + 0x20], ebx
mov r9d, dword [rbp - 0x80]
lea r8, [0x14011c470]
mov rcx, qword [r10 + 0x10]
call fcn.14000574c
mov r10, qword [0x14014dd40]
test ebx, ebx
jne 0x140028e3f
mov r15d, dword [rbp - 0x80]
test r15d, r15d
cmove r15d, r13d
mov dword [rbp - 0x68], r15d
mov r15, qword [rbp + 0xa0]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x140028e75
test byte [r10 + 0x1c], 1
je 0x140028e75
mov edx, 0x25
lea r8, [0x14011c928]
mov rcx, qword [r10 + 0x10]
call fcn.140003614
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
mov bl, byte [rsi + 0xb0]
cmp r10, rax
je 0x140028eb0
test byte [r10 + 0x1c], 1
je 0x140028eb0
mov eax, 5
cmp byte [r10 + 0x19], al
jb 0x140028eb0
movzx r9d, bl
lea edx, [rax + 0x21]
lea r8, [0x14011c928]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
cmp bl, 1
jne 0x140028f24
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp + 0xd0]
call fcn.140038554
mov r14d, eax
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
xor ebx, ebx
cmp r10, rax
je 0x140028f95
test byte [r10 + 0x1c], 2
je 0x140028f95
movzx edx, byte [r10 + 0x19]
lea ecx, [rbx + 2]
test r14d, r14d
lea eax, [rbx + 5]
cmovns ecx, eax
cmp edx, ecx
jl 0x140028f95
lea edx, [rbx + 0x4a]
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x20], eax
mov r9d, r14d
lea r8, [0x14011c470]
mov rcx, qword [r10 + 0x10]
call fcn.14000574c
jmp 0x140028f8e
xor ecx, ecx
mov eax, ecx
mov rbx, qword [rbp + 0xd0]
test rbx, rbx
setne al
test eax, eax
jne 0x140028f44
mov ecx, 0x80004005
call fcn.140005300
int3
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140028f9e
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx + 8]
mov r9, rcx
xor r8d, r8d
lea rcx, [rbp - 0x50]
call fcn.14002e270
mov rcx, rax
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x140028f7a
mov qword [rax + 8], rcx
jmp 0x140028f7e
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x50], rcx
test rbx, rbx
jne 0x140028f51
mov r12d, dword [rbp + 0xb8]
mov r10, qword [0x14014dd40]
test r14d, r14d
js 0x140029178
mov qword [rbp - 0x70], rbx
test rdi, rdi
je 0x140028fd1
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
lea r8, [rbp - 0x70]
lea rdx, [0x14011c430]
mov rcx, rdi
call rbx
mov rbx, qword [rbp - 0x70]
mov r10, qword [0x14014dd40]
test rbx, rbx
je 0x140029155
xor r14d, r14d
mov dword [rsp + 0x74], r14d
lea rcx, str.IsRemoteConnection
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
mov qword [rbp], rax
test rax, rax
jne 0x140029006
mov ecx, 0x8007000e
call fcn.140005300
nop
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [fcn.140009050]
lea r8, [rsp + 0x74]
mov rdx, rsi
mov rcx, rbx
call rdi
mov ebx, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140029077
test byte [rcx + 0x1c], 2
je 0x140029077
movzx r8d, byte [rcx + 0x19]
mov edx, 2
test ebx, ebx
lea eax, [rdx + 3]
cmovns edx, eax
cmp r8d, edx
jl 0x140029077
lea edx, [rax + 0x46]
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, [0x14011c470]
mov rcx, qword [rcx + 0x10]
call fcn.14000574c
test ebx, ebx
js 0x14002913a
cmp dword [rsp + 0x74], r14d
je 0x14002913a
lea rcx, str.LocalPort
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x1400290ae
mov ecx, 0x8007000e
call fcn.140005300
nop
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbx]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [fcn.140009050]
lea r8, [rsp + 0x64]
mov rdx, rdi
mov rcx, rbx
call r14
mov ebx, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
xor r14d, r14d
cmp rcx, rax
je 0x140029122
test byte [rcx + 0x1c], 2
je 0x140029122
movzx r8d, byte [rcx + 0x19]
lea edx, [r14 + 2]
test ebx, ebx
lea eax, [rdx + 3]
cmovns edx, eax
cmp r8d, edx
jl 0x140029122
lea edx, [rax + 0x47]
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, [0x14011c470]
mov rcx, qword [rcx + 0x10]
call fcn.14000574c
mov eax, dword [rsp + 0x64]
test ebx, ebx
cmovs eax, r14d
mov dword [rsp + 0x64], eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rbp - 0x70]
mov r10, qword [0x14014dd40]
mov rsi, qword [rbp + 0xc8]
test rbx, rbx
je 0x140029176
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
mov r10, qword [0x14014dd40]
xor ebx, ebx
mov dword [rsp + 0x60], ebx
test r14d, r14d
js 0x14002972d
mov rax, qword [r15]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsp + 0x60]
mov rcx, r15
call rbx
mov r14d, eax
mov r10, qword [0x14014dd40]
lea r15, [0x14014dd40]
xor ebx, ebx
cmp r10, r15
je 0x1400291f7
test byte [r10 + 0x1c], 2
je 0x1400291f7
movzx edx, byte [r10 + 0x19]
lea ecx, [rbx + 2]
test eax, eax
lea eax, [rbx + 5]
cmovns ecx, eax
cmp edx, ecx
jl 0x1400291f7
lea edx, [rbx + 0x4d]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, r14d
lea r8, [0x14011c470]
mov rcx, qword [r10 + 0x10]
call fcn.14000574c
mov r10, qword [0x14014dd40]
mov rdi, qword [rbp + 0xd8]
test r14d, r14d
js 0x14002973b
mov eax, dword [rsp + 0x60]
test eax, eax
cmovs eax, ebx
mov dword [rsp + 0x60], eax
mov r15d, ebx
mov dword [rsp + 0x7c], ebx
mov rcx, rdi
call fcn.140004f24
imul edx, dword [rsp + 0x60], 0x1770
add edx, 0xb1
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, ecx
jge 0x14002924d
mov rcx, rdi
call fcn.140005158
mov r8d, ConnectToConnectionPoint
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
mov rcx, rdi
call fcn.1400046e8
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rsi
call rbx
test al, al
je 0x140029294
mov r8d, 0x39
lea rdx, str.xmlns:microsoft_urn:schemas_microsoft_com:WMPNSS_1_0___r_n
mov rcx, rdi
call fcn.1400046e8
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
mov edx, 0x4a
mov rcx, rsi
call rbx
xor ebx, ebx
test al, al
jne 0x1400292d2
mov rax, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
mov edx, 0x48
mov rcx, rsi
call rbx
xor ebx, ebx
test al, al
je 0x1400292e7
mov r8d, 0x31
lea rdx, str.xmlns:dlna_urn:schemas_dlna_org:metadata_1_0___r_n
mov rcx, rdi
call fcn.1400046e8
mov r8d, 1
lea rdx, [0x14011c3a4]
mov rcx, rdi
call fcn.1400046e8
mov eax, dword [rsp + 0x60]
test eax, eax
jle 0x14002967a
cmp eax, 1
jne 0x140029319
btr r12d, 0xc
mov dword [rbp + 0xb8], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
sub r12d, dword [rsp + 0x70]
mov rcx, rdi
call fcn.140028b3c
mov r13d, eax
mov esi, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x140029622
mov qword [rbp - 0x78], rbx
mov r14, qword [rbp + 0xa0]
mov rcx, qword [r14]
mov rbx, qword [rcx + 0x38]
mov rcx, rbx
call qword [fcn.140009050]
lea r8, [rbp - 0x78]
mov edx, esi
mov rcx, r14
call rbx
mov r14d, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400293bc
test byte [rcx + 0x1c], 2
je 0x1400293bc
movzx edx, byte [rcx + 0x19]
mov eax, 2
test r14d, r14d
lea r8d, [rax + 3]
cmovns eax, r8d
cmp edx, eax
jl 0x1400293bc
lea edx, [r8 + 0x49]
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9d, r14d
lea r8, [0x14011c470]
mov rcx, qword [rcx + 0x10]
call fcn.14000b28c
test r14d, r14d
js 0x140029602
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x68], rax
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
mov eax, 0x1770
sub ecx, eax
or ecx, edx
jge 0x14002940d
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140005158
test byte [0x140150ec0], 2
je 0x140029425
mov r8d, esi
lea rdx, [0x140119bd8]
call fcn.140025968
lea rcx, [rbp + 0x20]
call fcn.14003e5f0
nop
mov rax, qword [rbp + 0xc8]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov al, byte [rbp + 0xc0]
mov byte [rsp + 0x20], al
mov ebx, dword [rbp + 0xb8]
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x20]
call fcn.14003e7f4
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x20]
call fcn.1400ecfa0
test byte [0x140150ec0], 2
je 0x14002949b
mov r8d, esi
lea rdx, [0x140119bc8]
call fcn.140025968
mov rdx, qword [rsp + 0x68]
xor eax, eax
cmp dword [rdx - 0x10], eax
je 0x1400294ff
test ebx, 0x408
jne 0x1400294d5
lea rcx, [rsp + 0x68]
call fcn.140028b3c
add eax, 2
add r13d, eax
lea eax, [r13 + 0xc]
mov r8d, dword [rbp - 0x68]
cmp eax, r8d
ja 0x140029577
mov rdx, qword [rsp + 0x68]
inc r15d
mov dword [rsp + 0x7c], r15d
mov r8d, dword [rdx - 0x10]
mov rcx, rdi
call fcn.1400046e8
mov r8d, 2
lea rdx, [0x14011c2ac]
mov rcx, rdi
call fcn.1400046e8
nop
lea rcx, [rbp + 0x20]
call fcn.14003e728
nop
mov r15, qword [rsp + 0x68]
or eax, 0xffffffff
lock xadd dword [r15 - 8], eax
sub eax, 1
jg 0x14002953a
mov rdi, qword [r15 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [r15 - 0x18]
mov rcx, rdi
call rbx
nop
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140029558
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
inc esi
mov r15d, dword [rsp + 0x7c]
xor ebx, ebx
cmp esi, dword [rsp + 0x60]
jae 0x140029622
mov rdi, qword [rbp + 0xd8]
jmp 0x14002933e
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400295c8
test byte [rcx + 0x1c], 2
je 0x1400295c8
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x1400295c8
lea eax, [r13 + 0xc]
mov edx, 0x4f
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x14011c470]
mov rcx, qword [rcx + 0x10]
call fcn.140026204
nop
lea rcx, [rbp + 0x20]
call fcn.14003e728
nop
mov rsi, qword [rsp + 0x68]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140029602
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140029620
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [rsp + 0x70]
sub eax, esi
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x14002966d
test byte [rcx + 0x1c], 2
je 0x14002966d
mov edx, 5
cmp byte [rcx + 0x19], dl
jb 0x14002966d
mov edx, 0x50
mov dword [rsp + 0x20], eax
mov r9d, r12d
lea r8, [0x14011c470]
mov rcx, qword [rcx + 0x10]
call fcn.14000574c
mov rdi, qword [rbp + 0xd8]
or r13d, 0xffffffff
jmp 0x14002967e
mov esi, dword [rsp + 0x70]
mov r12, qword [rbp + 0xe0]
mov dword [r12], r15d
mov r8d, SafeArrayGetDim
lea rdx, str.__DIDL_Lite_
mov rcx, rdi
call fcn.1400046e8
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400296aa
mov eax, ebx
jmp 0x1400296bb
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400296ae
test eax, eax
js 0x140029722
cmp eax, dword [rcx - 0xc]
jg 0x140029722
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov r10, qword [0x14014dd40]
lea r15, [0x14014dd40]
cmp r10, r15
je 0x14002971b
test byte [r10 + 0x1c], 2
je 0x14002971b
mov ecx, 5
cmp byte [r10 + 0x19], cl
jb 0x14002971b
lea edx, [rcx + 0x4c]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x14011c470]
mov rcx, qword [r10 + 0x10]
call fcn.14000574c
mov r10, qword [0x14014dd40]
test r14d, r14d
jns 0x140029748
jmp 0x140029742
mov ecx, 0x80070057
call fcn.140005300
int3
mov rdi, qword [rbp + 0xd8]
lea r15, [0x14014dd40]
mov r12, qword [rbp + 0xe0]
mov r14d, 0x80040365
cmp r10, r15
je 0x1400297aa
test byte [r10 + 0x1c], 1
je 0x1400297aa
movzx edx, byte [r10 + 0x19]
mov eax, 2
test r14d, r14d
lea ecx, [rax + 3]
cmovns eax, ecx
cmp edx, eax
jl 0x1400297aa
mov r8d, 0xf3c
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400049b0
mov ebx, 1
mov rcx, qword [rax]
lea edx, [rbx + 0x51]
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, r14d
mov rcx, qword [0x14014dd40]
mov rcx, qword [rcx + 0x10]
call fcn.1400260ec
jmp 0x1400297ae
mov ebx, dword [rsp + 0x78]
test bl, 1
je 0x1400297e1
mov rsi, qword [rbp - 0x20]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x1400297e1
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
test byte [0x140150ec0], 2
je 0x140029810
test r12, r12
je 0x1400297f3
mov r13d, dword [r12]
movzx r8d, byte [rbp + 0xc0]
mov dword [rsp + 0x20], r14d
mov r9d, r13d
lea rdx, [0x140119be8]
call fcn.1400258e8
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140029820
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x50]
call fcn.14001b3cc
mov eax, r14d
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret