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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x2001f
push ebx
push str.Control_PanelCursorsSchemes
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002a37
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x10028f2
cmp eax, 0xea
jne 0x1002a37
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push ebx
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
add eax, 2
push eax
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1002a37
cmp dword [ebp - 8], ebx
je 0x1002a37
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1002a37
push edi
cmp dword [ebp - 0x24], 2
je 0x100296e
cmp dword [ebp - 0x24], 1
jne 0x10029ff
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov word [eax + edi], bx
mov dword [ebp - 0x28], ebx
mov esi, 0x1005f20
add edi, 0xfffffffe
inc edi
push 0x2c
inc edi
push edi
lea eax, [ebp - 0x254]
push eax
call fcn.01003882
lea edi, [edi + eax*2]
lea eax, [ebp - 0x254]
push eax
call fcn.010038c2
test eax, eax
jne 0x10029bd
push ebx
push str._SystemRoot_System32_
push esi
mov dword [ebp - 0x28], 1
call fcn.01003882
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x254]
push eax
push esi
call fcn.01003882
lea esi, [esi + eax*2]
mov word [esi], 0x2c
inc esi
inc esi
cmp word [edi], bx
jne 0x1002983
cmp dword [ebp - 0x28], ebx
mov word [esi - 2], bx
je 0x10029ff
mov eax, 0x1005f20
sub esi, eax
sar esi, 1
shl esi, 1
push esi
push eax
push 2
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
push ecx
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x100295e
pop edi
cmp dword [ebp - 4], ebx
je 0x1002a45
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1002a55
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x1002a5f
push dword [ebp - 8]
call esi
pop esi
pop ebx
leave
ret