Function at 0x404da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40503b
push eax
mov dword fs:[0], esp
sub esp, 0x118
cmp dword [ecx + 4], 0
push ebx
mov dword [ebp - 0x10], ecx
push esi
push edi
je 0x404dd1
xor eax, eax
jmp 0x4050a8
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
add ecx, 0x8c
sub eax, eax
mov dword [ebp - 0x1c], ecx
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
test eax, eax
mov dword [ecx + 0xf0], eax
je 0x404e1f
mov eax, dword [ebp + 0x14]
add ecx, 0xf4
push eax
call sub.MFC40.DLL_CString::operator_1
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x124]
push eax
lea edx, [ebp - 0x14]
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0x104
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e4d
cmp dword [ebp - 0x14], 1
je 0x404e54
mov byte [ebp - 0x124], 0
cmp byte [ebp - 0x124], 0
je 0x404fb2
lea edi, [ebp - 0x124]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov esi, ecx
lea eax, [ecx*2 + 3]
and eax, 0xfffffffc
call fcn.00414970
mov eax, esp
lea ecx, [ebp - 0x124]
push esi
push ecx
push eax
call sub.MFC40.DLL_AfxA2WHelper
mov ebx, dword [ebp - 0x10]
lea edi, [ebp - 0x124]
add ebx, 0x18
push ebx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov ecx, 0xffffffff
test eax, eax
jl 0x404ee0
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x10]
add edi, 0x28
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 1
add eax, 8
jmp 0x404fbf
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], 0x104
push edx
push 0
push str.CLSID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404f2c
cmp dword [ebp - 0x14], 1
je 0x404f33
mov byte [ebp - 0x124], 0
cmp byte [ebp - 0x124], 0
je 0x404fb2
lea edi, [ebp - 0x124]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov esi, ecx
lea eax, [ecx*2 + 3]
and eax, 0xfffffffc
call fcn.00414970
mov eax, esp
lea ecx, [ebp - 0x124]
push esi
push ecx
push eax
call sub.MFC40.DLL_AfxA2WHelper
push ebx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x404fb2
lea edi, [ebp - 0x124]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x10]
add edi, 0x28
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 1
add eax, 8
jmp 0x404fbf
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
add eax, 8
cmp dword [eax], 0
je 0x404ff5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
add eax, 0x28
push eax
call sub.MFC40.DLL_CString::CString
mov dword [ebp - 4], 0
push eax
mov ecx, dword [0x419ca8]
add ecx, 0x54
call fcn.00401e60
mov dword [ebp - 4], 0xffffffff
call fcn.00405045
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x14]
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 4
push edx
push 0
push str.MSInfoView
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40504d
cmp dword [ebp - 0x14], 4
je 0x405029
cmp dword [ebp - 0x14], 3
jne 0x40504d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], eax
jmp 0x405057
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x14]
push ecx
mov eax, dword [ebp + 8]
push edx
push 0
push str.Rank
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40508f
cmp dword [ebp - 0x14], 4
je 0x405084
cmp dword [ebp - 0x14], 3
jne 0x40508f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
jmp 0x405099
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0x1f4
mov ecx, dword [ebp - 0x10]
mov eax, 1
mov dword [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x130]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10