Function at 0x40e7b0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x41561e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 1
mov dword [esp + 0x20], 0x104
xor edi, edi
call fcn.00413970
mov eax, dword [esp + 0x254]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
push str.HKEY_LOCAL_MACHINE
push eax
mov byte [esp + 0x254], 2
call ebx
add esp, 8
test eax, eax
jne 0x40e854
lea ecx, [esp + 0x258]
lea edx, [esp + 0x10]
push ecx
push str.MACHINE_
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 3
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString
mov ebp, 0x80000002
jmp 0x40e858
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x254]
push str.HKEY_CURRENT_USER
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40e8ad
lea ecx, [esp + 0x258]
lea edx, [esp + 0x10]
push ecx
push str.CURRENT_USER_
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 4
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString
mov ebp, 0x80000001
mov ecx, dword [esp + 0x258]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea8b
mov bl, 6
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x4c]
push edx
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40ea8b
lea ecx, [esp + 0x14]
inc edi
mov dword [esp + 0x20], 0x104
call fcn.00413970
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call fcn.00413970
lea edx, [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push 0x41b170
push eax
mov byte [esp + 0x258], bl
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push 0x41b02c
push ecx
push edx
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x258], 7
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 8
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x24c], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x258]
push 0x41b02c
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42u.DLL_operator
lea edx, [esp + 0x14]
mov byte [esp + 0x24c], 9
push edx
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 0xa
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.0040d430
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00413b2c
mov byte [esp + 0x250], 0xb
push ecx
lea eax, [esp + 0x25c]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00413b2c
mov ecx, esi
mov byte [esp + 0x254], bl
call fcn.0040e7b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x258]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e8d2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov byte [esp + 0x24c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x258]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 8