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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0923
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x503074]
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
mov dword [ebp - 0x850], edx
mov dword [ebp - 0x848], ecx
push 0x4c965c
push str.hpqwmiex::CopyRegToSetI
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x858], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x41dd7f
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x844], esi
push str.hpqwmiex::CopyRegToSetI
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x858], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
push 0x410
lea eax, [ebp - 0x830]
mov dword [ebp - 0x854], edi
push 0
push eax
mov dword [ebp - 0x85c], 0x208
call fcn.0048b3f0
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0x848]
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, 0x103
je 0x41e036
test edi, edi
jne 0x41e00c
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x838], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x834]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0x848]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x41de56
mov eax, dword [ebp - 0x840]
test eax, eax
je 0x41de40
push eax
call ebx
mov edi, eax
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], 0
push edi
lea eax, [ebp - 0x830]
push eax
push str.Open__s__returns:__d
push str.hpqwmiex::CopyRegToSetI
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
test edi, edi
jne 0x41dfdb
push 0x410
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0048b3f0
add esp, 0xc
mov dword [ebp - 0x834], 0x410
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x844]
push eax
push edi
push 0x4c965c
push dword [ebp - 0x840]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x41df10
mov eax, dword [ebp - 0x844]
cmp eax, 1
je 0x41dee3
cmp eax, 2
je 0x41dee3
mov edi, 0xd
jmp 0x41df10
mov eax, dword [ebp - 0x834]
test eax, eax
je 0x41df05
test al, 1
jne 0x41defe
shr eax, 1
cmp word [ebp + eax*2 - 0x422], 0
je 0x41df0e
mov edi, 0xd
jmp 0x41df10
xor eax, eax
mov word [ebp - 0x420], ax
xor edi, edi
lea eax, [ebp - 0x420]
push eax
push edi
push str.QueryStringValue_returns:__d__szValue:__s
push str.hpqwmiex::CopyRegToSetI
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
test edi, edi
jne 0x41df8e
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x84c]
call fcn.0040d430
mov byte [ebp - 4], 3
lea eax, [ebp - 0x84c]
push dword [ebp - 0x844]
push eax
push ecx
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x86c]
push eax
call fcn.004173f0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x84c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41df8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x850]
lea ecx, [ebp - 0x840]
call fcn.0041dce0
push eax
push str.CopyRegToSetI_returns:_0x_08X
push str.hpqwmiex::CopyRegToSetI
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
mov eax, dword [ebp - 0x840]
add esp, 0x14
test eax, eax
je 0x41dfcf
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], 0
jmp 0x41dfe1
mov eax, dword [ebp - 0x840]
mov byte [ebp - 4], 0
test eax, eax
je 0x41dff6
push eax
call ebx
mov dword [ebp - 0x840], 0
mov edi, dword [ebp - 0x854]
mov dword [ebp - 0x83c], 0
inc edi
jmp 0x41dd87
push edi
push str.Unexpected_result_from_EnumKey:__d
push str.hpqwmiex::CopyRegToSetI
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test edi, edi
jle 0x41e052
movzx edi, di
or edi, 0x80070000
jmp 0x41e052
push str.lEnumResult__ERROR_NO_MORE_ITEMS
push str.hpqwmiex::CopyRegToSetI
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
xor edi, edi
push edi
push str.hr:_0x_08lX
push str.hpqwmiex::CopyRegToSetI
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x41e083
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, edi
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.004756da
mov esp, ebp
pop ebp
ret