Function at 0x409a70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x454c56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftFolderPro
push 0x80000002
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x409ac7
xor eax, eax
jmp 0x409fe9
lea eax, [edi + 0x11c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [edi + 0x120], 0
mov dword [eax], 0
lea eax, [edi + 0x120]
mov dword [esp + 0x18], eax
mov eax, 4
lea edx, [esp + 0x24]
lea esi, [edi + 0x110]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x2c]
push esi
lea ebp, [edi + 0x114]
lea ebx, [edi + 0x118]
push eax
add edi, 0x124
push 0
push str.Year
push ecx
mov dword [esi], 0
mov dword [ebp], 0
mov dword [ebx], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409b51
xor eax, eax
jmp 0x409fe9
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push ebp
push eax
push 0
push str.Month
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409b79
xor eax, eax
jmp 0x409fe9
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push ebx
push eax
push 0
push 0x465a60
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409ba1
xor eax, eax
jmp 0x409fe9
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push str.Hour
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409bcd
xor eax, eax
jmp 0x409fe9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push str.Minute
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409bf9
xor eax, eax
jmp 0x409fe9
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edi
push edx
push 0
push str.Second
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409c21
xor eax, eax
jmp 0x409fe9
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebx]
mov eax, dword [edx]
mov edx, dword [ebp]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CTime::CTime
mov edx, dword [esp + 0xfc]
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0xf8], 0
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x465964
call fcn.004149aa
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.0040a330
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xf8], 1
call fcn.004149b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esi], 0
mov dword [ebp], 0
mov dword [ebx], 0
mov dword [ecx], 0
mov dword [edx], 0
mov edx, dword [esp + 0x2c]
mov dword [edi], 0
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
push 1
mov ecx, dword [eax]
push ecx
push 0x20
push edx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::constructor_char_const___int__int_]
mov eax, dword [esp + 0x90]
mov byte [esp + 0xf4], 2
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x98], 6
je 0x409e81
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::close_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x465a74
call fcn.004149aa
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
call fcn.0040a330
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xf8], 3
call fcn.004149b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov edx, dword [esp + 0x2c]
push 1
mov ecx, dword [eax]
push ecx
push 0x20
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::constructor_char_const___int__int_]
mov eax, dword [esp + 0x34]
mov byte [esp + 0xf4], 4
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x3c], 6
je 0x409dad
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::close_void_]
jmp 0x409e58
push esi
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
push ebp
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
push ebx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push edx
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
push edi
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x108]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___int__]
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::close_void_]
mov eax, dword [ebx]
mov edx, dword [esi]
xor eax, 0x1f
mov ecx, dword [ebp]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
xor edx, 0x3ff
xor ecx, 7
mov dword [esi], edx
mov edx, dword [eax]
xor edx, 0xf
mov dword [ebp], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov ecx, dword [eax]
xor edx, 0x3f
xor ecx, 0x3f
mov dword [edi], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
xor dword [eax], 0x1f
lea ecx, [esp + 0x40]
mov byte [esp + 0xf4], 2
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ifstream::destructor_void_]
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
jmp 0x409f44
push esi
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
push ebp
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
push ebx
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x90]
push edx
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x90]
push eax
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
push edi
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___unsigned_long_int__]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x108]
lea ecx, [esp + 0x90]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::operator___int__]
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::close_void_]
mov eax, dword [ebp]
mov ecx, dword [esi]
xor eax, 7
mov edx, dword [ebx]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
xor ecx, 0x3ff
xor edx, 0x1f
mov dword [esi], ecx
mov ecx, dword [eax]
xor ecx, 0xf
mov dword [ebx], edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
xor edx, 0x3f
mov dword [ecx], edx
mov edx, dword [edi]
xor edx, 0x3f
mov dword [edi], edx
mov edx, dword [esp + 0x14]
xor dword [edx], 0x1f
mov edx, dword [edi]
mov ecx, dword [ecx]
push 0xffffffffffffffff
push edx
mov edx, dword [eax]
mov eax, dword [ebx]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CTime::CTime
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
mov dword [ecx], eax
mov ecx, dword [esp + 0x100]
call fcn.0040a050
test eax, eax
je 0x409fae
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
mov edx, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [ebp]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CTime::CTime
mov edx, dword [eax]
mov eax, dword [esp + 0xfc]
mov dword [eax], edx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xf4], 0
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ifstream::destructor_void_]
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0xf4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe8
ret 4