Function at 0x40eff5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x88
mov eax, dword [0x414050]
push ebx
push esi
push edi
mov dword [ebp + 0x74], eax
lea eax, [ebp + 0x40]
push eax
push 0x20019
xor esi, esi
push esi
push 0x404d7c
push 0x80000002
mov dword [ebp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f2c0
push esi
push esi
lea eax, [ebp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x40]
mov dword [ebp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40f2b7
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x40f2b7
push dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
inc eax
push eax
mov dword [ebp + 0x44], eax
call fcn.00412c5f
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x40f2b7
lea eax, [ebp + 0x44]
push eax
push edi
push esi
push esi
push 0x404d74
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f2a5
cmp dword [ebp + 0x44], esi
je 0x40f2a5
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x3c], esi
mov esi, edi
je 0x40f124
mov ebx, dword [sym.imp.msvcrt.dll__stricmp]
push esi
call dword [sym.imp.msvcrt.dll_atol]
mov dword [ebp + 0x48], eax
mov eax, esi
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f0cd
sub eax, ecx
lea esi, [esi + eax + 1]
push 0x404d6c
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x40f0f4
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x30], 0
mov dword [ebp + 0x3c], eax
jmp 0x40f10c
push 0x404d5c
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x40f10e
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x3c], 0
mov dword [ebp + 0x30], eax
jne 0x40f124
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f113
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], cl
jne 0x40f0bd
mov eax, dword [ebp + 0x2c]
inc eax
mov dword [ebp + 0x44], eax
push 0xa
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x3c]
mov ebx, edi
call dword [sym.imp.msvcrt.dll__ultoa]
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov dword [ebp + 0x48], eax
lea eax, [ebp + 0x44]
push eax
push edi
push 0
push 0
lea eax, [ebp + 0x4c]
push eax
mov esi, 0x80000004
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 0xea
jmp 0x40f1aa
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x44], eax
ja 0x40f175
add eax, eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x44], eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push dword [ebp + 0x44]
call fcn.00412c5f
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40f2c0
lea eax, [ebp + 0x44]
push eax
push ebx
push 0
push 0
lea eax, [ebp + 0x4c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x40f165
test eax, eax
jne 0x40f295
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebx + 0x18]
and dword [ebp + 0x48], 0
add esi, ebx
cmp dword [ebx + 0x1c], 0
jbe 0x40f295
cmp dword [ebp + 0x34], 0
jne 0x40f295
mov eax, dword [ebp + 0x3c]
cmp dword [esi + 0xc], eax
jne 0x40f284
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x20]
and dword [ebp + 0x38], 0
add eax, esi
add ecx, esi
test edx, edx
jbe 0x40f284
mov edi, dword [ebp + 0x30]
cmp edi, dword [eax + 4]
je 0x40f213
add eax, dword [eax]
inc dword [ebp + 0x38]
cmp dword [ebp + 0x38], edx
jb 0x40f1ff
jmp 0x40f284
mov eax, dword [eax + 0x24]
mov edx, dword [eax + ecx]
mov dword [ebp + 0x14], edx
mov eax, dword [eax + ecx + 4]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x40f284
movzx eax, word [ebp + 0x1c]
sub eax, 0x76c
mov dword [ebp + 4], eax
movzx eax, word [ebp + 0x1e]
dec eax
and dword [ebp + 0x10], 0
mov dword [ebp], eax
movzx eax, word [ebp + 0x22]
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0x24]
mov dword [ebp - 8], eax
movzx eax, word [ebp + 0x26]
mov dword [ebp - 0xc], eax
movzx eax, word [ebp + 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.msvcrt.dll_mktime]
cmp eax, 0xffffffff
pop ecx
je 0x40f284
mov ecx, dword [sym.imp.msvcrt.dll__timezone]
sub eax, dword [ecx]
mov dword [ebp + 0x34], eax
add esi, dword [esi]
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
cmp eax, dword [ebx + 0x1c]
jb 0x40f1d0
test ebx, ebx
je 0x40f2a0
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 0x34]
jmp 0x40f2c2
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40f2c0
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
call fcn.00412b38
add ebp, 0x78
leave
ret