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

Disassembly:
push 0xffffffffffffffff
push 0x5800f2
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x5e4a44]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e4a44]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov eax, dword [esp + 0x368]
mov esi, 0x104
push esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x370]
lea ecx, [esp + 0x254]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x2c], ebx
push ecx
mov dword [esp + 0x38], eax
mov eax, dword [eax]
push ebp
push eax
mov byte [esp + 0x27], bl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41dd9f
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x254]
push eax
mov edi, 1
add dword [esp + 0x28], edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41dd66
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.DisplayName
push edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41dc4d
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
call fcn.004024e0
mov ecx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [ecx + 4]
or ebx, edi
cmp eax, ebp
je 0x41dc48
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebp
jl 0x41dc48
push eax
push ecx
call fcn.00550eef
add esp, 8
cmp eax, ebp
je 0x41dc48
sub eax, dword [esi]
jne 0x41dc48
mov byte [esp + 0x16], 1
mov esi, 0x104
jmp 0x41dc52
mov esi, 0x104
mov byte [esp + 0x16], 0
test bl, 1
je 0x41dc7a
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41dc7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x16], 0
je 0x41dd57
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
push str.DisplayVersion
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41dd18
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
mov eax, dword [edx - 0xc]
lea eax, [esp + eax + 0x48]
push eax
lea ecx, [esp + 0x40]
call fcn.004024e0
mov dword [esp + 0x360], ebp
mov eax, dword [eax]
lea ecx, [esp + 0x14c]
push ecx
or ebx, 2
push eax
mov dword [esp + 0x30], ebx
call fcn.00551707
add esp, 8
cmp eax, ebp
sete al
test al, al
je 0x41dd18
push ecx
lea edx, [esp + 0x150]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.004024e0
call fcn.0041d510
cmp eax, ebp
mov byte [esp + 0x16], 1
jg 0x41dd1d
mov byte [esp + 0x16], 0
mov dword [esp + 0x360], 0xffffffff
test bl, 2
je 0x41dd50
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
and ebx, 0xfffffffd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dd50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x16], 0
jne 0x41dd8b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
push esi
lea edx, [esp + 0x254]
push edx
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x41dbb1
jmp 0x41dd9f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x30]
mov al, byte [esp + 0x17]
mov dword [edx], ebp
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.005509f8
add esp, 0x350
ret 8