Function at 0x406ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40cb93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x35]
xor ebp, ebp
mov byte [esp + 0x34], 0
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1f], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 0x105
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
mov byte [esp + 0x144], 2
call fcn.00406dc0
test al, al
je 0x406f59
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x24]
cmp dword [eax - 8], ebp
jne 0x406f82
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4072f2
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, ebp
jl 0x406fc1
lea ecx, [esp + 0x10]
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
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 + 0x14]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.HKEY_CLASSES_ROOT
push edx
call ebp
add esp, 8
test eax, eax
jne 0x406fe4
mov ebp, 0x80000000
jmp 0x407085
mov eax, dword [esp + 0x14]
push str.HKEY_CURRENT_CONFIG
push eax
call ebp
add esp, 8
test eax, eax
jne 0x407001
mov ebp, 0x80000005
jmp 0x407085
mov ecx, dword [esp + 0x14]
push str.HKEY_CURRENT_USER
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40701b
mov ebp, 0x80000001
jmp 0x407085
mov edx, dword [esp + 0x14]
push str.HKEY_LOCAL_MACHINE
push edx
call ebp
add esp, 8
test eax, eax
jne 0x407035
mov ebp, 0x80000002
jmp 0x407085
mov eax, dword [esp + 0x14]
push str.HKEY_USERS
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40704f
mov ebp, 0x80000003
jmp 0x407085
mov ecx, dword [esp + 0x14]
push str.HKEY_PERFORMANCE_DATA
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x407069
mov ebp, 0x80000004
jmp 0x407085
mov edx, dword [esp + 0x14]
push str.HKEY_DYN_DATA
push edx
call ebp
add esp, 8
test eax, eax
jne 0x406f59
mov ebp, 0x80000006
test esi, esi
jl 0x4070ba
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 edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406f59
mov eax, dword [ebx + 0x28]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
push edx
push ecx
push 0
push eax
push esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407127
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40717a
push esi
call edi
xor esi, esi
mov dword [esp + 0x24], esi
jmp 0x40717a
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40713a
push esi
call edi
xor esi, esi
mov dword [esp + 0x24], esi
lea edx, [esp + 0x34]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_1
push str.__t_r_n_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 5
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4071aa
lea ecx, [esp + 0x18]
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 + 0x14]
mov byte [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x4071a3
push esi
call edi
xor al, al
jmp 0x4072f2
push 0x2e
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x407231
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid_1
mov edx, dword [esp + 0x10]
mov bl, 6
mov byte [esp + 0x144], bl
cmp dword [edx - 8], 3
jne 0x40721c
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x40721c
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 7
call fcn.00409a42
lea ecx, [esp + 0x28]
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4072b4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.00409a54
lea eax, [ebx + 0x1c]
mov byte [esp + 0x144], 8
push eax
call fcn.00407440
add esp, 4
test al, al
jne 0x40727d
mov ecx, dword [ebx + 0x54]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x4072a3
lea edx, [esp + 0x18]
lea ecx, [ebx + 0x20]
push edx
call fcn.00409a42
mov byte [esp + 0x1f], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
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 + 0x14]
mov byte [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x4072ee
push esi
call edi
mov al, byte [esp + 0x1f]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret