Function at 0x4101f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413084
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x41907c]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x41907c]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControlStillImageEventsSTIProxyEvent
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x410414
push 0xfe
lea edx, [esp + 0x4a]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x30], edi
mov word [esp + 0x50], cx
call fcn.00404910
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
push esi
mov dword [esp + 0x3c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4103ef
jmp 0x4102b0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x20019
push edi
lea eax, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4103a2
xor edx, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, str.Name
mov dword [esp + 0x160], edi
call fcn.00410110
mov esi, dword [ebx + 0x10]
mov ecx, 8
add esp, 8
cmp dword [ebx + 0x14], ecx
jb 0x410319
mov eax, dword [ebx]
jmp 0x41031b
mov eax, ebx
mov edi, dword [esp + 0x38]
mov edx, edi
cmp edi, esi
jb 0x410327
mov edx, esi
cmp dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x28]
jae 0x410335
lea ecx, [esp + 0x28]
test edx, edx
je 0x410358
lea esp, [esp]
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x410400
add ecx, 2
add eax, 2
dec edx
jne 0x410340
mov ebx, dword [ebp + 8]
cmp edi, esi
jb 0x41036f
xor eax, eax
cmp edi, esi
setne al
test eax, eax
jne 0x41036f
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x158], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x410399
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00403d7c
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x4103ef
xor edi, edi
mov esi, dword [esp + 0x24]
push 0xfe
lea eax, [esp + 0x4a]
xor edx, edx
push edi
inc esi
push eax
mov dword [esp + 0x30], esi
mov word [esp + 0x50], dx
call fcn.00404910
mov eax, dword [esp + 0x20]
add esp, 0xc
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x58]
push edx
push esi
push eax
mov dword [esp + 0x3c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4102b0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
jmp 0x410416
sbb eax, eax
and eax, 0xfffffffe
inc eax
je 0x410355
mov ebx, dword [ebp + 8]
jmp 0x410363
mov eax, edi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0040366e
mov esp, ebp
pop ebp
ret