Function at 0x560a80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9ce4
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x260]
call fcn.005734f0
push 0x672878
mov dword [ebp - 4], 0
call fcn.00443fb0
mov edx, eax
mov dword [ebp - 0x220], 0
mov ecx, edx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov word [ebp - 0x230], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x560af0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.004459d0
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push 0
push str.AppEventsSchemesAppscsc_ui
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x560bd2
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push 0
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x560c03
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x560b76
mov ebx, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
mov edi, dword [ebp - 0x220]
sub esi, ecx
sar esi, 1
lea ecx, [ebp - 0x230]
cmp ebx, 8
mov eax, edi
cmovae ecx, dword [ebp - 0x230]
cmp esi, edi
cmovb eax, esi
push eax
call fcn.0044ec70
add esp, 4
test eax, eax
jne 0x560c0f
cmp edi, esi
jb 0x560c0f
ja 0x560c0f
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x560dd7
push 0
lea eax, [ebp - 0x268]
push eax
push 0
push 0xf003f
push 0
push 0x5d90f0
push 0
push str.AppEventsSchemesAppscsc_ui
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x560dd7
mov ebx, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x220]
lea ecx, [edi + edi]
cmp ebx, 8
push ecx
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 1
push 0
push 0
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor esi, esi
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x264]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [esi + 0x660304]
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x560ca6
push dword [esi + 0x660308]
call fcn.004d4367
add esp, 4
lea eax, [eax*2 + 2]
push eax
push dword [esi + 0x660308]
push 1
push 0
push 0
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x16
xor eax, eax
mov dword [ebp - 0x238], 0
push str.AppEventsEventLabels_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.004459d0
mov byte [ebp - 4], 2
mov edx, dword [esi + 0x660304]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x560ce4
sub eax, edi
lea ecx, [ebp - 0x248]
sar eax, 1
push eax
push edx
call fcn.00447e80
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x264]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x5d90f0
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x560db6
push dword [esi + 0x660308]
call fcn.004d4367
add esp, 4
lea eax, [eax*2 + 2]
push eax
push dword [esi + 0x660308]
push 1
push 0
push 0
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x560d9c
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x248]
call fcn.00446620
add esp, 8
add esi, 0xc
cmp esi, 0x30
jb 0x560c40
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x560dd7
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x560dd7
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x248]
call fcn.00446620
add esp, 8
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x560df8
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x230]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.005734b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret