Function at 0x401f20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c0e3
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 0x401fd9
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.00402860
xor al, al
jmp 0x402426
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, ebx
jl 0x402018
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 fcn.00409a42
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 0x402106
mov ebp, 0x80000000
cmp esi, ebx
jl 0x40206f
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 fcn.00409a42
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
call fcn.00402550
cmp eax, 1
jne 0x4021ef
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 0x4020c5
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x4020b5
push ecx
call edi
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], ecx
je 0x402235
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 0x4022b8
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x4020f1
push ecx
call edi
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], ecx
je 0x402235
jmp 0x4022b8
mov eax, dword [esp + 0x18]
push str.HKEY_CURRENT_CONFIG
push eax
call ebp
add esp, 8
test eax, eax
jne 0x402123
mov ebp, 0x80000005
jmp 0x40203a
mov ecx, dword [esp + 0x18]
push str.HKEY_CURRENT_USER
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x402140
mov ebp, 0x80000001
jmp 0x40203a
mov edx, dword [esp + 0x18]
push str.HKEY_LOCAL_MACHINE
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40215d
mov ebp, 0x80000002
jmp 0x40203a
mov eax, dword [esp + 0x18]
push str.HKEY_USERS
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40217a
mov ebp, 0x80000003
jmp 0x40203a
mov ecx, dword [esp + 0x18]
push str.HKEY_PERFORMANCE_DATA
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x402197
mov ebp, 0x80000004
jmp 0x40203a
mov edx, dword [esp + 0x18]
push str.HKEY_DYN_DATA
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4021b4
mov ebp, 0x80000006
jmp 0x40203a
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 0x4022e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x402426
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 0x4022b8
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x402225
push ecx
call edi
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], ecx
jne 0x4022b8
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 0x40226f
cmp eax, ebx
je 0x4022b8
push eax
call edi
mov dword [esp + 0x14], ebx
jmp 0x4022b8
cmp eax, ebx
je 0x40227a
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 0x4022eb
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 0x4022e4
push eax
call edi
xor al, al
jmp 0x402426
push 0x2e
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jl 0x40236e
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 0x40235d
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jl 0x40235d
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 fcn.00409a42
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 0x4023e5
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00409a54
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 0x4023d4
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
add ecx, 4
call fcn.00409a42
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 0x402422
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