Function at 0x10005aca0
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
sub rsp, 0x110
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov ebx, r9d
mov r12, r8
mov r8, rdx
mov r13, rcx
xor r15d, r15d
mov dword [rsp + 0x74], r15d
movabs rdx, 0x8000000000000000
cmp dword [0x100158e34], r15d
je 0x10005ad4e
mov al, byte [0x100158e38]
cmp al, 4
jae 0x10005ad07
cmp al, r15b
jne 0x10005ad4e
test qword [0x100158e20], rdx
je 0x10005ad4e
mov rcx, qword [0x100158e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005ad4e
movzx r8d, byte [rsp + 0x170]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea rdx, [0x1000023b0]
mov rcx, qword [0x100158e08]
call fcn.10007e6f8
mov r8, qword [rsp + 0x158]
lea rax, [0x100152eb8]
mov ecx, 5
mov rdi, qword [0x100152eb8]
cmp rdi, rax
je 0x10005add5
test byte [rdi + 0x1c], 1
je 0x10005ade9
cmp byte [rdi + 0x19], cl
jb 0x10005addf
mov rcx, qword [r8 + 0x10]
movzx eax, byte [rsp + 0x170]
mov edx, 0x45
mov r9, qword [rsp + 0x190]
mov qword [rsp + 0x58], r9
mov r9, qword [rsp + 0x188]
mov qword [rsp + 0x50], r9
mov r14, qword [rsp + 0x178]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r8
mov r9, r13
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.100058aa8
jmp 0x10005adf1
mov r14, qword [rsp + 0x178]
jmp 0x10005adf1
mov r14, qword [rsp + 0x178]
jmp 0x10005adf1
mov r14, qword [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], r15
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xc8], r15
mov dword [rsp + 0xd0], 0xa
mov dword [rsp + 0x64], r15d
mov dword [rsp + 0x80], 0x32000
mov esi, r15d
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xf0], r15
mov qword [rsp + 0xa0], r15
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [0x10001e7f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, r15d
jne 0x10005aea5
mov ebx, r15d
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xe0], rax
mov ebp, 2
mov rdi, qword [0x100152eb8]
lea rdx, [0x100152eb8]
cmp rdi, rdx
je 0x10005aef3
test byte [rdi + 0x1c], bpl
je 0x10005aef3
mov edx, ebp
cmp ebx, r15d
lea eax, [rbp + 3]
cmove edx, eax
movzx eax, byte [rdi + 0x19]
cmp eax, edx
jl 0x10005aef3
lea edx, [rbp + 0x44]
mov r9d, ebx
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.100036328
mov rdi, qword [0x100152eb8]
or r15d, 0xffffffff
xor eax, eax
cmp ebx, eax
jne 0x10005afc8
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x9c]
xor r8d, r8d
lea rdx, [0x100021000]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x10005af60
mov eax, dword [rsp + 0x9c]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rdi, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rdi, rax
je 0x10005afa6
test byte [rdi + 0x1c], bpl
je 0x10005afa6
mov eax, 5
cmp byte [rdi + 0x19], al
jb 0x10005afa6
lea edx, [rax + 0x42]
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x68]
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003b338
mov rdi, qword [0x100152eb8]
xor eax, eax
cmp ebx, eax
jne 0x10005afc8
mov r13d, dword [rsp + 0x68]
cmp r13d, eax
cmove r13d, r15d
mov dword [rsp + 0x80], r13d
mov r13, qword [rsp + 0x150]
lea rax, [0x100152eb8]
cmp rdi, rax
je 0x10005aff6
test byte [rdi + 0x1c], 1
je 0x10005aff6
mov edx, 0x38
lea r8, [0x10001e400]
mov rcx, qword [rdi + 0x10]
call fcn.100034764
mov rdi, qword [0x100152eb8]
mov bl, byte [r14 + 0xa2]
lea r14, [0x100152eb8]
cmp rdi, r14
je 0x10005b037
test byte [rdi + 0x1c], 1
je 0x10005b037
mov eax, 5
cmp byte [rdi + 0x19], al
jb 0x10005b037
movzx r9d, bl
lea edx, [rax + 0x34]
lea r8, [0x10001e400]
mov rcx, qword [rdi + 0x10]
call fcn.100036328
mov rdi, qword [0x100152eb8]
cmp bl, 1
jne 0x10005b0b5
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x180]
call fcn.100073834
mov esi, eax
mov rdi, qword [0x100152eb8]
cmp rdi, r14
je 0x10005b139
test byte [rdi + 0x1c], bpl
je 0x10005b13e
movzx edx, byte [rdi + 0x19]
mov ecx, ebp
xor r15d, r15d
cmp eax, r15d
lea eax, [r15 + 5]
cmovge ecx, eax
cmp edx, ecx
jl 0x10005b141
lea edx, [rax + 0x43]
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003b338
mov rdi, qword [0x100152eb8]
jmp 0x10005b141
xor r15d, r15d
mov eax, r15d
mov rbx, qword [rsp + 0x180]
cmp rbx, r15
setne al
cmp eax, r15d
jne 0x10005b0d9
mov ecx, 0x80004005
call fcn.100036264
int3
mov rbx, qword [rbx + 8]
cmp rbx, r15
je 0x10005b14a
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx + 8]
mov r9, rcx
xor r8d, r8d
lea rcx, [rsp + 0xa8]
call fcn.100061024
mov rcx, rax
mov rax, qword [rsp + 0xa8]
cmp rax, r15
je 0x10005b11b
mov qword [rax + 8], rcx
jmp 0x10005b123
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xa8], rcx
cmp rbx, r15
jne 0x10005b0ea
mov rdi, qword [0x100152eb8]
jmp 0x10005b141
xor r15d, r15d
jmp 0x10005b141
xor r15d, r15d
cmp esi, r15d
jl 0x10005b306
mov rcx, r15
mov qword [rsp + 0x88], rcx
cmp r12, r15
je 0x10005b181
mov rax, qword [r12]
lea r8, [rsp + 0x88]
lea rdx, [0x100021100]
mov rcx, r12
call qword [rax]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [0x100152eb8]
cmp rcx, r15
je 0x10005b2f4
mov dword [rsp + 0x70], r15d
lea rcx, [0x100021038]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0xf8], rax
cmp rax, r15
jne 0x10005b1b7
mov ecx, 0x8007000e
call fcn.100036264
nop
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
mov rdx, rbx
call qword [rax + 0x18]
mov edi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, r14
je 0x10005b21a
test byte [rcx + 0x1c], bpl
je 0x10005b222
movzx eax, byte [rcx + 0x19]
mov edx, ebp
cmp edi, r15d
mov r12d, 5
cmovge edx, r12d
cmp eax, edx
jl 0x10005b228
lea edx, [r12 + 0x44]
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9d, edi
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
jmp 0x10005b228
mov r12d, 5
jmp 0x10005b228
mov r12d, 5
cmp edi, r15d
jl 0x10005b2d9
cmp dword [rsp + 0x70], r15d
je 0x10005b2d9
lea rcx, [0x100021060]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x108], rax
cmp rax, r15
jne 0x10005b264
mov ecx, 0x8007000e
call fcn.100036264
nop
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
lea r8, [rsp + 0x64]
mov rdx, rdi
call qword [rax + 0x18]
mov esi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, r14
je 0x10005b2c1
test byte [rcx + 0x1c], bpl
je 0x10005b2c1
movzx r8d, byte [rcx + 0x19]
mov edx, ebp
cmp eax, r15d
cmovge edx, r12d
cmp r8d, edx
jl 0x10005b2c1
mov edx, 0x4a
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
mov eax, dword [rsp + 0x64]
cmp esi, r15d
cmovl eax, r15d
mov dword [rsp + 0x64], eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, r15d
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [0x100152eb8]
cmp rcx, r15
je 0x10005b306
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [0x100152eb8]
mov dword [rsp + 0x60], r15d
cmp esi, r15d
jl 0x10005b8aa
mov rax, qword [r13]
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [rax + 0x40]
mov esi, eax
mov rdi, qword [0x100152eb8]
cmp rdi, r14
je 0x10005b371
test byte [rdi + 0x1c], bpl
je 0x10005b371
movzx edx, byte [rdi + 0x19]
mov ecx, ebp
cmp eax, r15d
mov eax, 5
cmovge ecx, eax
cmp edx, ecx
jl 0x10005b371
lea edx, [rax + 0x46]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003b338
mov rdi, qword [0x100152eb8]
cmp esi, r15d
jl 0x10005b8bc
mov eax, dword [rsp + 0x60]
cmp eax, r15d
cmovl eax, r15d
mov dword [rsp + 0x60], eax
mov rbx, qword [rsp + 0x188]
mov rcx, rbx
call fcn.100035fc0
mov edx, dword [rsp + 0x60]
imul edx, edx, 0x1770
add edx, 0xb2
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, ecx
jge 0x10005b3c5
mov rcx, rbx
call fcn.100036140
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, [0x100020e60]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.10003577c
mov edx, dword [rsp + 0x60]
xor eax, eax
cmp edx, eax
jle 0x10005b7c8
cmp edx, 1
jne 0x10005b40e
mov edi, dword [rsp + 0x168]
btr edi, 0xc
mov dword [rsp + 0x168], edi
jmp 0x10005b415
mov edi, dword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
sub r14d, dword [rsp + 0x6c]
mov rcx, rbx
call fcn.10005abf8
mov r13d, eax
xor eax, eax
mov r12d, eax
cmp dword [rsp + 0x60], eax
jbe 0x10005b772
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov rcx, qword [rsp + 0x150]
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
mov edx, r12d
call qword [rax + 0x38]
mov esi, eax
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x10005b4b1
test byte [rcx + 0x1c], bpl
je 0x10005b4b1
movzx edx, byte [rcx + 0x19]
mov eax, ebp
cmp esi, ebx
mov r8d, 5
cmovge eax, r8d
cmp edx, eax
jl 0x10005b4b1
lea edx, [r8 + 0x47]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.10003bd68
cmp esi, ebx
jl 0x10005b746
lea rcx, [0x100151100]
mov rax, qword [0x100151100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
mov eax, 0x1770
sub ecx, eax
or ecx, edx
jge 0x10005b4fb
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.100036140
cmp dword [0x100158e34], ebx
je 0x10005b54c
mov al, byte [0x100158e38]
cmp al, 4
jae 0x10005b511
cmp al, bl
jne 0x10005b54c
movabs rdx, 0x8000000000000000
test qword [0x100158e20], rdx
je 0x10005b54c
mov rcx, qword [0x100158e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005b54c
mov r8d, r12d
lea rdx, [0x1000023d0]
mov rcx, qword [0x100158e08]
call fcn.100057bd0
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9b, byte [rsp + 0x170]
mov r8d, edi
mov edx, dword [rsp + 0x64]
lea rcx, [rsp + 0xa8]
call fcn.100080108
cmp dword [0x100158e34], ebx
je 0x10005b5ea
mov al, byte [0x100158e38]
cmp al, 4
jae 0x10005b5af
cmp al, bl
jne 0x10005b5ea
movabs rdx, 0x8000000000000000
test qword [0x100158e20], rdx
je 0x10005b5ea
mov rcx, qword [0x100158e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005b5ea
mov r8d, r12d
lea rdx, [0x1000023e0]
mov rcx, qword [0x100158e08]
call fcn.100057bd0
mov rbx, qword [rsp + 0x90]
xor eax, eax
cmp dword [rbx - 0x10], eax
je 0x10005b673
test dil, 8
jne 0x10005b62a
bt edi, 0xa
jb 0x10005b62a
lea rcx, [rsp + 0x90]
call fcn.10005abf8
lea r13d, [r13 + rax + 2]
lea eax, [r13 + 0xc]
mov edi, dword [rsp + 0x80]
cmp eax, edi
ja 0x10005b6b4
inc r15d
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, qword [rsp + 0x188]
call fcn.10003577c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x100020e34]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x100020e34]
mov rcx, qword [rsp + 0x188]
call fcn.10003577c
mov edi, dword [rsp + 0x168]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
xor ebx, ebx
cmp eax, ebx
jg 0x10005b691
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
je 0x10005b6a1
mov rax, qword [rcx]
call qword [rax + 0x10]
inc r12d
cmp r12d, dword [rsp + 0x60]
jae 0x10005b73c
jmp 0x10005b43f
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x10005b704
test byte [rcx + 0x1c], bpl
je 0x10005b704
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x10005b704
lea eax, [r13 + 0xc]
mov edx, 0x4d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, r12d
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.1000583ec
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
xor edi, edi
cmp eax, edi
jg 0x10005b722
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, rdi
je 0x10005b760
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x188]
jmp 0x10005b772
mov rbx, qword [rsp + 0x188]
jmp 0x10005b772
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
je 0x10005b76a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x188]
jmp 0x10005b772
mov rbx, qword [rsp + 0x188]
jmp 0x10005b772
mov rbx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, dword [rsp + 0x6c]
sub eax, r13d
mov rcx, qword [0x100152eb8]
lea rdx, [0x100152eb8]
cmp rcx, rdx
je 0x10005b7cf
test byte [rcx + 0x1c], bpl
je 0x10005b7e1
mov edx, 5
cmp byte [rcx + 0x19], dl
jb 0x10005b7d8
mov edx, 0x4e
mov dword [rsp + 0x20], eax
mov r9d, r14d
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
lea r14, [0x100152eb8]
jmp 0x10005b7e8
mov r13d, dword [rsp + 0x6c]
jmp 0x10005b7e8
lea r14, [0x100152eb8]
jmp 0x10005b7e8
lea r14, [0x100152eb8]
jmp 0x10005b7e8
lea r14, [0x100152eb8]
mov r12, qword [rsp + 0x190]
mov dword [r12], r15d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, [0x100020e40]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.10003577c
mov r11, qword [rbx]
xor r15d, r15d
cmp r11, r15
jne 0x10005b826
mov ecx, r15d
jmp 0x10005b83d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r11
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r15d
jl 0x10005b89f
cmp ecx, dword [r11 - 0xc]
jg 0x10005b89f
mov dword [r11 - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rbx]
mov word [rax + rcx*2], r15w
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
mov rdi, qword [0x100152eb8]
cmp rdi, r14
je 0x10005b898
test byte [rdi + 0x1c], bpl
je 0x10005b898
mov ecx, 5
cmp byte [rdi + 0x19], cl
jb 0x10005b898
lea edx, [rcx + 0x4a]
mov dword [rsp + 0x20], eax
mov r9d, r13d
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003b338
mov rdi, qword [0x100152eb8]
cmp esi, r15d
jge 0x10005b8d1
jmp 0x10005b8cc
mov ecx, 0x80070057
call fcn.100036264
int3
mov rbx, qword [rsp + 0x188]
mov r12, qword [rsp + 0x190]
jmp 0x10005b8cc
mov rbx, qword [rsp + 0x188]
mov r12, qword [rsp + 0x190]
mov esi, 0x80040365
cmp rdi, r14
je 0x10005b939
test byte [rdi + 0x1c], 1
je 0x10005b945
movzx eax, byte [rdi + 0x19]
cmp esi, r15d
mov ecx, 5
cmovge ebp, ecx
cmp eax, ebp
jl 0x10005b93f
mov r8d, 0xf3c
lea rdx, [rsp + 0xd8]
mov rcx, rbx
call fcn.1000359f4
mov edi, 1
mov rcx, qword [rax]
lea edx, [rdi + 0x4f]
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [0x100152eb8]
mov rcx, qword [rcx + 0x10]
call fcn.1000582d4
jmp 0x10005b949
mov edi, dword [rsp + 0x74]
jmp 0x10005b949
mov edi, dword [rsp + 0x74]
jmp 0x10005b949
mov edi, dword [rsp + 0x74]
test dil, 1
je 0x10005b973
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x10005b973
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp dword [0x100158e34], r15d
je 0x10005b9e0
mov al, byte [0x100158e38]
cmp al, 4
jae 0x10005b98b
cmp al, r15b
jne 0x10005b9e0
movabs rdx, 0x8000000000000000
test qword [0x100158e20], rdx
je 0x10005b9e0
mov rcx, qword [0x100158e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005b9e0
cmp r12, r15
je 0x10005b9bb
mov r9d, dword [r12]
jmp 0x10005b9bf
or r9d, 0xffffffff
movzx r8d, byte [rsp + 0x170]
mov dword [rsp + 0x20], esi
lea rdx, [0x1000023c0]
mov rcx, qword [0x100158e08]
call fcn.10007e6f8
nop
mov rcx, qword [rsp + 0xe0]
cmp rcx, r15
je 0x10005b9f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xa8]
call fcn.10004e020
mov eax, esi
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret