Function at 0x41718b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x448a64
call fcn.0043d3b4
sub esp, 0x154
mov al, byte [ebp + 0xb]
push ebx
push esi
xor esi, esi
push edi
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x48], al
call fcn.0040249b
mov edi, str.SoftwareCLASSESCLSID280A8F40_E382_11d2_B561_00A0C92E6848
push edi
call fcn.0043d3e0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0040288f
mov edi, 0x458374
mov dword [ebp - 4], esi
push edi
call fcn.0043d3e0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00402838
mov ebx, str.shellexPropertyPageHandlers
push ebx
call fcn.0043d3e0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x48]
call fcn.00402838
push edi
call fcn.0043d3e0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00402838
push dword [ebp + 0x14]
call fcn.0043d3e0
pop ecx
push eax
lea ecx, [ebp - 0x48]
push dword [ebp + 0x14]
call fcn.00402838
mov eax, dword [ebp - 0x44]
cmp eax, esi
jne 0x417229
mov eax, 0x44b544
lea ecx, [ebp - 0x10]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x10], esi
je 0x417492
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
lea eax, [ebp + 0x14]
push esi
push eax
lea eax, [ebp - 0x160]
mov edi, 0x104
push eax
push esi
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], esi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41747a
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], edi
jae 0x41747a
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41744d
lea eax, [ebp - 0x4c]
mov dword [ebp + 0x14], edi
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x160]
push eax
mov dword [ebp - 0x4c], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x417444
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004073ff
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x4172f0
mov eax, dword [eax]
jmp 0x4172f2
xor eax, eax
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x417431
cmp dword [ebp + 8], esi
mov dword [ebp - 0x20], esi
je 0x417321
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, esi
je 0x417321
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
lea eax, [ebp - 0x20]
push eax
push 0x44e0b0
push 5
lea eax, [ebp - 0x5c]
push esi
push eax
call ebx
cmp dword [ebp + 8], esi
mov ecx, dword [ebp - 0x20]
je 0x417340
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
cmp eax, esi
jl 0x417431
cmp ecx, esi
je 0x417431
lea eax, [ebp + 0x14]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push str.DeviceName
mov dword [ebp + 0x14], edi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x41738a
cmp dword [ebp - 0x38], 1
jne 0x41738a
lea eax, [ebp - 0x160]
push eax
jmp 0x41738d
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.00407539
lea eax, [ebp - 0x1c]
push eax
push 0x450bf8
push 1
push esi
push 0x450be8
call ebx
cmp eax, esi
jl 0x417431
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push edx
mov ecx, dword [eax]
push 0x450bc8
push eax
call dword [ecx]
cmp eax, esi
jl 0x417431
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4173d3
mov ecx, dword [eax]
jmp 0x4173d5
xor ecx, ecx
mov eax, dword [ebp - 0x30]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push edx
mov ecx, dword [eax]
push 0x44e0c0
push eax
call dword [ecx]
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x417424
mov ecx, dword [eax]
push esi
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x417431
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, esi
je 0x417444
call fcn.00407486
mov dword [ebp - 0x2c], esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x24]
push esi
push esi
push esi
lea eax, [ebp + 0x14]
push esi
push eax
lea eax, [ebp - 0x160]
add dword [ebp - 0x18], 4
push eax
push dword [ebp - 0x24]
mov dword [ebp + 0x14], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x417281
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x417492
call fcn.00407486
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x48]
call fcn.0040249b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret