Function at 0x41e160
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4471d0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 8]
mov byte [esp + 0x60], 1
mov edx, dword [0x45d530]
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41e241
mov edi, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
push ebx
push edi
mov dword [esp + 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x41e276
add esi, 0xfffffff0
mov byte [esp + 0x60], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41e221
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp edi, ebx
je 0x41e22c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x60], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x20], ebx
jbe 0x41e4a9
jmp 0x41e290
mov dword [esp + 0x24], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x105
sub eax, edi
or eax, ecx
jge 0x41e2bd
mov ecx, edi
lea eax, [esp + 0x10]
call fcn.00403660
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], edi
jl 0x41e4ec
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
xor ecx, ecx
lea eax, [esp + 0x34]
push eax
mov dword [esi - 0xc], edi
mov word [esi + 0x20a], cx
mov ecx, dword [esp + 0x2c]
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41e2f5
sub eax, edx
sar eax, 1
cmp eax, ebx
jl 0x41e4ec
cmp eax, dword [esi - 8]
jg 0x41e4ec
mov edx, dword [ebp + 8]
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push edx
lea eax, [esp + 0x30]
push eax
mov ebx, 0x451824
call fcn.00406e80
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
mov ebx, eax
mov byte [esp + 0x70], 2
call fcn.0040bd10
add esp, 0x10
mov byte [esp + 0x60], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x41e3a2
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x41e390
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x41e390
call fcn.00403230
mov esi, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41e387
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x10], esi
jmp 0x41e3a2
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
call fcn.004036d0
mov esi, dword [esp + 0x10]
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e3c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e3ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x60], 4
mov edx, dword [0x45d530]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41e47c
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, str.Products
mov dword [esp + 0x50], edi
call fcn.00406e80
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x68], 5
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.0041e500
mov byte [esp + 0x78], 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e47a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov byte [esp + 0x60], 1
cmp edi, ebx
je 0x41e490
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x18]
inc eax
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jb 0x41e290
mov edi, dword [esp + 0x14]
add esi, 0xfffffff0
mov byte [esp + 0x60], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e4c9
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp edi, ebx
je 0x41e4d4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004036b0
int3