Function at 0x10005af08
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 [0x100159e34], r15d
je 0x10005afb6
mov al, byte [0x100159e38]
cmp al, 4
jae 0x10005af6f
cmp al, r15b
jne 0x10005afb6
test qword [0x100159e20], rdx
je 0x10005afb6
mov rcx, qword [0x100159e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005afb6
movzx r8d, byte [rsp + 0x170]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea rdx, [0x1000023b0]
mov rcx, qword [0x100159e08]
call fcn.100057de4
mov r8, qword [rsp + 0x158]
lea rax, [0x100153eb8]
mov ecx, 5
mov rdi, qword [0x100153eb8]
cmp rdi, rax
je 0x10005b03d
test byte [rdi + 0x1c], 1
je 0x10005b051
cmp byte [rdi + 0x19], cl
jb 0x10005b047
mov rcx, qword [r8 + 0x10]
movzx eax, byte [rsp + 0x170]
mov edx, 0x47
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.100058dc8
jmp 0x10005b059
mov r14, qword [rsp + 0x178]
jmp 0x10005b059
mov r14, qword [rsp + 0x178]
jmp 0x10005b059
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 0x10005b10d
mov ebx, r15d
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xe0], rax
mov ebp, 2
mov rdi, qword [0x100153eb8]
lea rdx, [0x100153eb8]
cmp rdi, rdx
je 0x10005b15b
test byte [rdi + 0x1c], bpl
je 0x10005b15b
mov edx, ebp
cmp ebx, r15d
lea eax, [rbp + 3]
cmove edx, eax
movzx eax, byte [rdi + 0x19]
cmp eax, edx
jl 0x10005b15b
lea edx, [rbp + 0x46]
mov r9d, ebx
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.100036510
mov rdi, qword [0x100153eb8]
or r15d, 0xffffffff
xor eax, eax
cmp ebx, eax
jne 0x10005b230
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, [0x100020ff8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x10005b1c8
mov eax, dword [rsp + 0x9c]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rdi, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rdi, rax
je 0x10005b20e
test byte [rdi + 0x1c], bpl
je 0x10005b20e
mov eax, 5
cmp byte [rdi + 0x19], al
jb 0x10005b20e
lea edx, [rax + 0x44]
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x68]
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003be4c
mov rdi, qword [0x100153eb8]
xor eax, eax
cmp ebx, eax
jne 0x10005b230
mov r13d, dword [rsp + 0x68]
cmp r13d, eax
cmove r13d, r15d
mov dword [rsp + 0x80], r13d
mov r13, qword [rsp + 0x150]
lea rax, [0x100153eb8]
cmp rdi, rax
je 0x10005b25e
test byte [rdi + 0x1c], 1
je 0x10005b25e
mov edx, 0x38
lea r8, [0x10001e400]
mov rcx, qword [rdi + 0x10]
call fcn.100034784
mov rdi, qword [0x100153eb8]
mov bl, byte [r14 + 0xa2]
lea r14, [0x100153eb8]
cmp rdi, r14
je 0x10005b29f
test byte [rdi + 0x1c], 1
je 0x10005b29f
mov eax, 5
cmp byte [rdi + 0x19], al
jb 0x10005b29f
movzx r9d, bl
lea edx, [rax + 0x34]
lea r8, [0x10001e400]
mov rcx, qword [rdi + 0x10]
call fcn.100036510
mov rdi, qword [0x100153eb8]
cmp bl, 1
jne 0x10005b31d
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x180]
call fcn.100073a94
mov esi, eax
mov rdi, qword [0x100153eb8]
cmp rdi, r14
je 0x10005b3a1
test byte [rdi + 0x1c], bpl
je 0x10005b3a6
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 0x10005b3a9
lea edx, [rax + 0x45]
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003be4c
mov rdi, qword [0x100153eb8]
jmp 0x10005b3a9
xor r15d, r15d
mov eax, r15d
mov rbx, qword [rsp + 0x180]
cmp rbx, r15
setne al
cmp eax, r15d
jne 0x10005b341
mov ecx, 0x80004005
call fcn.100036284
int3
mov rbx, qword [rbx + 8]
cmp rbx, r15
je 0x10005b3b2
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.100061224
mov rcx, rax
mov rax, qword [rsp + 0xa8]
cmp rax, r15
je 0x10005b383
mov qword [rax + 8], rcx
jmp 0x10005b38b
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xa8], rcx
cmp rbx, r15
jne 0x10005b352
mov rdi, qword [0x100153eb8]
jmp 0x10005b3a9
xor r15d, r15d
jmp 0x10005b3a9
xor r15d, r15d
cmp esi, r15d
jl 0x10005b56e
mov rcx, r15
mov qword [rsp + 0x88], rcx
cmp r12, r15
je 0x10005b3e9
mov rax, qword [r12]
lea r8, [rsp + 0x88]
lea rdx, [0x1000210f8]
mov rcx, r12
call qword [rax]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [0x100153eb8]
cmp rcx, r15
je 0x10005b55c
mov dword [rsp + 0x70], r15d
lea rcx, [0x100021030]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0xf8], rax
cmp rax, r15
jne 0x10005b41f
mov ecx, 0x8007000e
call fcn.100036284
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 [0x100153eb8]
cmp rcx, r14
je 0x10005b482
test byte [rcx + 0x1c], bpl
je 0x10005b48a
movzx eax, byte [rcx + 0x19]
mov edx, ebp
cmp edi, r15d
mov r12d, 5
cmovge edx, r12d
cmp eax, edx
jl 0x10005b490
lea edx, [r12 + 0x46]
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9d, edi
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
jmp 0x10005b490
mov r12d, 5
jmp 0x10005b490
mov r12d, 5
cmp edi, r15d
jl 0x10005b541
cmp dword [rsp + 0x70], r15d
je 0x10005b541
lea rcx, [0x100021058]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x108], rax
cmp rax, r15
jne 0x10005b4cc
mov ecx, 0x8007000e
call fcn.100036284
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 [0x100153eb8]
cmp rcx, r14
je 0x10005b529
test byte [rcx + 0x1c], bpl
je 0x10005b529
movzx r8d, byte [rcx + 0x19]
mov edx, ebp
cmp eax, r15d
cmovge edx, r12d
cmp r8d, edx
jl 0x10005b529
mov edx, 0x4c
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
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 [0x100153eb8]
cmp rcx, r15
je 0x10005b56e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [0x100153eb8]
mov dword [rsp + 0x60], r15d
cmp esi, r15d
jl 0x10005bb12
mov rax, qword [r13]
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [rax + 0x40]
mov esi, eax
mov rdi, qword [0x100153eb8]
cmp rdi, r14
je 0x10005b5d9
test byte [rdi + 0x1c], bpl
je 0x10005b5d9
movzx edx, byte [rdi + 0x19]
mov ecx, ebp
cmp eax, r15d
mov eax, 5
cmovge ecx, eax
cmp edx, ecx
jl 0x10005b5d9
lea edx, [rax + 0x48]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003be4c
mov rdi, qword [0x100153eb8]
cmp esi, r15d
jl 0x10005bb24
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.100035fe0
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 0x10005b62d
mov rcx, rbx
call fcn.100036160
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.10003579c
mov edx, dword [rsp + 0x60]
xor eax, eax
cmp edx, eax
jle 0x10005ba30
cmp edx, 1
jne 0x10005b676
mov edi, dword [rsp + 0x168]
btr edi, 0xc
mov dword [rsp + 0x168], edi
jmp 0x10005b67d
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.10005ae60
mov r13d, eax
xor eax, eax
mov r12d, eax
cmp dword [rsp + 0x60], eax
jbe 0x10005b9da
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 [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x10005b719
test byte [rcx + 0x1c], bpl
je 0x10005b719
movzx edx, byte [rcx + 0x19]
mov eax, ebp
cmp esi, ebx
mov r8d, 5
cmovge eax, r8d
cmp edx, eax
jl 0x10005b719
lea edx, [r8 + 0x49]
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.10003bdf4
cmp esi, ebx
jl 0x10005b9ae
lea rcx, [0x100152100]
mov rax, qword [0x100152100]
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 0x10005b763
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.100036160
cmp dword [0x100159e34], ebx
je 0x10005b7b4
mov al, byte [0x100159e38]
cmp al, 4
jae 0x10005b779
cmp al, bl
jne 0x10005b7b4
movabs rdx, 0x8000000000000000
test qword [0x100159e20], rdx
je 0x10005b7b4
mov rcx, qword [0x100159e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005b7b4
mov r8d, r12d
lea rdx, [0x1000023d0]
mov rcx, qword [0x100159e08]
call fcn.100057e4c
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.10008020c
cmp dword [0x100159e34], ebx
je 0x10005b852
mov al, byte [0x100159e38]
cmp al, 4
jae 0x10005b817
cmp al, bl
jne 0x10005b852
movabs rdx, 0x8000000000000000
test qword [0x100159e20], rdx
je 0x10005b852
mov rcx, qword [0x100159e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005b852
mov r8d, r12d
lea rdx, [0x1000023e0]
mov rcx, qword [0x100159e08]
call fcn.100057e4c
mov rbx, qword [rsp + 0x90]
xor eax, eax
cmp dword [rbx - 0x10], eax
je 0x10005b8db
test dil, 8
jne 0x10005b892
bt edi, 0xa
jb 0x10005b892
lea rcx, [rsp + 0x90]
call fcn.10005ae60
lea r13d, [r13 + rax + 2]
lea eax, [r13 + 0xc]
mov edi, dword [rsp + 0x80]
cmp eax, edi
ja 0x10005b91c
inc r15d
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, qword [rsp + 0x188]
call fcn.10003579c
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.10003579c
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 0x10005b8f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
je 0x10005b909
mov rax, qword [rcx]
call qword [rax + 0x10]
inc r12d
cmp r12d, dword [rsp + 0x60]
jae 0x10005b9a4
jmp 0x10005b6a7
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x10005b96c
test byte [rcx + 0x1c], bpl
je 0x10005b96c
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x10005b96c
lea eax, [r13 + 0xc]
mov edx, 0x4f
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.100058668
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
xor edi, edi
cmp eax, edi
jg 0x10005b98a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, rdi
je 0x10005b9c8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x188]
jmp 0x10005b9da
mov rbx, qword [rsp + 0x188]
jmp 0x10005b9da
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
je 0x10005b9d2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x188]
jmp 0x10005b9da
mov rbx, qword [rsp + 0x188]
jmp 0x10005b9da
mov rbx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, dword [rsp + 0x6c]
sub eax, r13d
mov rcx, qword [0x100153eb8]
lea rdx, [0x100153eb8]
cmp rcx, rdx
je 0x10005ba37
test byte [rcx + 0x1c], bpl
je 0x10005ba49
mov edx, 5
cmp byte [rcx + 0x19], dl
jb 0x10005ba40
mov edx, 0x50
mov dword [rsp + 0x20], eax
mov r9d, r14d
lea r8, [0x10001e570]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
lea r14, [0x100153eb8]
jmp 0x10005ba50
mov r13d, dword [rsp + 0x6c]
jmp 0x10005ba50
lea r14, [0x100153eb8]
jmp 0x10005ba50
lea r14, [0x100153eb8]
jmp 0x10005ba50
lea r14, [0x100153eb8]
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.10003579c
mov r11, qword [rbx]
xor r15d, r15d
cmp r11, r15
jne 0x10005ba8e
mov ecx, r15d
jmp 0x10005baa5
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r11
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r15d
jl 0x10005bb07
cmp ecx, dword [r11 - 0xc]
jg 0x10005bb07
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 [0x100153eb8]
cmp rdi, r14
je 0x10005bb00
test byte [rdi + 0x1c], bpl
je 0x10005bb00
mov ecx, 5
cmp byte [rdi + 0x19], cl
jb 0x10005bb00
lea edx, [rcx + 0x4c]
mov dword [rsp + 0x20], eax
mov r9d, r13d
lea r8, [0x10001e570]
mov rcx, qword [rdi + 0x10]
call fcn.10003be4c
mov rdi, qword [0x100153eb8]
cmp esi, r15d
jge 0x10005bb39
jmp 0x10005bb34
mov ecx, 0x80070057
call fcn.100036284
int3
mov rbx, qword [rsp + 0x188]
mov r12, qword [rsp + 0x190]
jmp 0x10005bb34
mov rbx, qword [rsp + 0x188]
mov r12, qword [rsp + 0x190]
mov esi, 0x80040365
cmp rdi, r14
je 0x10005bba1
test byte [rdi + 0x1c], 1
je 0x10005bbad
movzx eax, byte [rdi + 0x19]
cmp esi, r15d
mov ecx, 5
cmovge ebp, ecx
cmp eax, ebp
jl 0x10005bba7
mov r8d, 0xf3c
lea rdx, [rsp + 0xd8]
mov rcx, rbx
call fcn.100035a14
mov edi, 1
mov rcx, qword [rax]
lea edx, [rdi + 0x51]
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, esi
lea r8, [0x10001e570]
mov rcx, qword [0x100153eb8]
mov rcx, qword [rcx + 0x10]
call fcn.100058550
jmp 0x10005bbb1
mov edi, dword [rsp + 0x74]
jmp 0x10005bbb1
mov edi, dword [rsp + 0x74]
jmp 0x10005bbb1
mov edi, dword [rsp + 0x74]
test dil, 1
je 0x10005bbdb
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x10005bbdb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp dword [0x100159e34], r15d
je 0x10005bc48
mov al, byte [0x100159e38]
cmp al, 4
jae 0x10005bbf3
cmp al, r15b
jne 0x10005bc48
movabs rdx, 0x8000000000000000
test qword [0x100159e20], rdx
je 0x10005bc48
mov rcx, qword [0x100159e28]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10005bc48
cmp r12, r15
je 0x10005bc23
mov r9d, dword [r12]
jmp 0x10005bc27
or r9d, 0xffffffff
movzx r8d, byte [rsp + 0x170]
mov dword [rsp + 0x20], esi
lea rdx, [0x1000023c0]
mov rcx, qword [0x100159e08]
call fcn.100057de4
nop
mov rcx, qword [rsp + 0xe0]
cmp rcx, r15
je 0x10005bc5c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xa8]
call fcn.10004e320
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