Function at 0x401a60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x408b73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
mov dword [esp + 0x24], ecx
push edi
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
mov byte [esp + 0x27], bl
mov dword [esp + 0x2c], 0x105
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esp + 0x14c]
mov byte [esp + 0x144], 2
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jne 0x401b19
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], 0xffffffff
call fcn.00402390
xor al, al
jmp 0x401f66
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, ebx
jl 0x401b58
lea ecx, [esp + 0x10]
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.HKEY_CLASSES_ROOT
push edx
call ebp
add esp, 8
test eax, eax
jne 0x401c46
mov ebp, 0x80000000
cmp esi, ebx
jl 0x401baf
inc esi
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
call fcn.00402090
cmp eax, 1
jne 0x401d2f
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0x20019
push ebx
push edx
push ebp
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x401c05
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x401bf5
push ecx
call edi
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], ecx
je 0x401d75
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x20119
push ebx
push ecx
push ebp
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x401df8
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x401c31
push ecx
call edi
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], ecx
je 0x401d75
jmp 0x401df8
mov eax, dword [esp + 0x18]
push str.HKEY_CURRENT_CONFIG
push eax
call ebp
add esp, 8
test eax, eax
jne 0x401c63
mov ebp, 0x80000005
jmp 0x401b7a
mov ecx, dword [esp + 0x18]
push str.HKEY_CURRENT_USER
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x401c80
mov ebp, 0x80000001
jmp 0x401b7a
mov edx, dword [esp + 0x18]
push str.HKEY_LOCAL_MACHINE
push edx
call ebp
add esp, 8
test eax, eax
jne 0x401c9d
mov ebp, 0x80000002
jmp 0x401b7a
mov eax, dword [esp + 0x18]
push str.HKEY_USERS
push eax
call ebp
add esp, 8
test eax, eax
jne 0x401cba
mov ebp, 0x80000003
jmp 0x401b7a
mov ecx, dword [esp + 0x18]
push str.HKEY_PERFORMANCE_DATA
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x401cd7
mov ebp, 0x80000004
jmp 0x401b7a
mov edx, dword [esp + 0x18]
push str.HKEY_DYN_DATA
push edx
call ebp
add esp, 8
test eax, eax
jne 0x401cf4
mov ebp, 0x80000006
jmp 0x401b7a
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401e24
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x401f66
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x401df8
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x401d65
push ecx
call edi
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], ecx
jne 0x401df8
mov edx, dword [esp + 0x150]
mov dword [esp + 0x10], ebx
mov eax, dword [edx]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x18]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov eax, dword [esp + 0x14]
je 0x401daf
cmp eax, ebx
je 0x401df8
push eax
call edi
mov dword [esp + 0x14], ebx
jmp 0x401df8
cmp eax, ebx
je 0x401dba
push eax
call edi
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
push str.__t_r_n_
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 5
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], ebx
jne 0x401e2b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401e24
push eax
call edi
xor al, al
jmp 0x401f66
push 0x2e
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jl 0x401eae
inc eax
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [esp + 0x10]
mov byte [esp + 0x144], 6
cmp dword [eax - 8], 3
jne 0x401e9d
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jl 0x401e9d
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x144], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
cmp dword [edx - 8], ebx
je 0x401f25
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00406514
mov ecx, dword [esp + 0x154]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x144], 8
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push eax
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
push ebx
push edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
jne 0x401f14
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
add ecx, 4
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x27], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401f62
push eax
call edi
mov al, byte [esp + 0x27]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 0xc