Function at 0x404f80
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40521b
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 0x404fb1
xor eax, eax
jmp 0x405288
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 0x404fff
mov eax, dword [ebp + 0x14]
add ecx, 0xf4
push eax
call fcn.0041559a
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 0x40502d
cmp dword [ebp - 0x14], 1
je 0x405034
mov byte [ebp - 0x124], 0
cmp byte [ebp - 0x124], 0
je 0x405192
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.00415070
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 0x4050c0
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 0x40519f
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 0x40510c
cmp dword [ebp - 0x14], 1
je 0x405113
mov byte [ebp - 0x124], 0
cmp byte [ebp - 0x124], 0
je 0x405192
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.00415070
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 0x405192
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 0x40519f
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
add eax, 8
cmp dword [eax], 0
je 0x4051d5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
add eax, 0x28
push eax
call sub.MFC40.DLL_CString::CString_1
mov dword [ebp - 4], 0
push eax
mov ecx, dword [0x419e68]
add ecx, 0x54
call fcn.00402040
mov dword [ebp - 4], 0xffffffff
call fcn.00405225
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 0x40522d
cmp dword [ebp - 0x14], 4
je 0x405209
cmp dword [ebp - 0x14], 3
jne 0x40522d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], eax
jmp 0x405237
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 0x40526f
cmp dword [ebp - 0x14], 4
je 0x405264
cmp dword [ebp - 0x14], 3
jne 0x40526f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
jmp 0x405279
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