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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x100bffc]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
push 0x2001f
push ebx
push str.Control_PanelCursorsSchemes
push 0x80000001
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004428
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x240], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x1004271
cmp eax, 0xea
jne 0x1004428
inc dword [ebp - 0x224]
mov eax, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push ebx
call esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x234]
add eax, 2
push eax
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x220], eax
je 0x1004428
cmp dword [ebp - 0x218], ebx
je 0x1004428
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x238]
push eax
push ebx
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x228], 1
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1004428
push edi
cmp dword [ebp - 0x238], 2
je 0x1004326
cmp dword [ebp - 0x238], 1
jne 0x10043cc
mov edi, dword [ebp - 0x220]
mov eax, dword [ebp - 0x22c]
mov word [eax + edi], bx
mov dword [ebp - 0x23c], ebx
mov esi, 0x100c040
add edi, 0xfffffffe
inc edi
push 0x2c
inc edi
push edi
lea eax, [ebp - 0x214]
push eax
call fcn.01005688
lea edi, [edi + eax*2]
lea eax, [ebp - 0x214]
push eax
call fcn.010056d0
test eax, eax
jne 0x1004381
push ebx
push str._SystemRoot_System32_
push esi
mov dword [ebp - 0x23c], 1
call fcn.01005688
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.01005688
lea esi, [esi + eax*2]
mov word [esi], 0x2c
inc esi
inc esi
cmp word [edi], bx
jne 0x1004344
cmp dword [ebp - 0x23c], ebx
mov word [esi - 2], bx
je 0x10043cc
mov eax, 0x100c040
sub esi, eax
sar esi, 1
shl esi, 1
push esi
push eax
push 2
push ebx
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x22c]
push ecx
push dword [ebp - 0x220]
lea ecx, [ebp - 0x238]
push ecx
push ebx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x230]
push ecx
push dword [ebp - 0x218]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x228]
inc dword [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1004310
pop edi
cmp dword [ebp - 0x21c], ebx
je 0x100443c
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1004452
push dword [ebp - 0x220]
call esi
cmp dword [ebp - 0x218], ebx
je 0x1004462
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01009336
leave
ret