Function at 0x411d11
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 0x409824
push 0x80000002
mov dword [ebp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411fdc
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 0x411fd3
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x411fd3
push dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
inc eax
push eax
mov dword [ebp + 0x44], eax
call fcn.00412c2c
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x411fd3
lea eax, [ebp + 0x44]
push eax
push edi
push esi
push esi
push 0x40981c
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411fc1
cmp dword [ebp + 0x44], esi
je 0x411fc1
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 0x411e40
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 0x411de9
sub eax, ecx
lea esi, [esi + eax + 1]
push 0x409814
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x411e10
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x30], 0
mov dword [ebp + 0x3c], eax
jmp 0x411e28
push 0x409804
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x411e2a
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x3c], 0
mov dword [ebp + 0x30], eax
jne 0x411e40
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411e2f
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], cl
jne 0x411dd9
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 0x411ec6
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x44], eax
ja 0x411e91
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.00412c2c
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x411fdc
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 0x411e81
test eax, eax
jne 0x411fb1
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 0x411fb1
cmp dword [ebp + 0x34], 0
jne 0x411fb1
mov eax, dword [ebp + 0x3c]
cmp dword [esi + 0xc], eax
jne 0x411fa0
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 0x411fa0
mov edi, dword [ebp + 0x30]
cmp edi, dword [eax + 4]
je 0x411f2f
add eax, dword [eax]
inc dword [ebp + 0x38]
cmp dword [ebp + 0x38], edx
jb 0x411f1b
jmp 0x411fa0
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 0x411fa0
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 0x411fa0
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 0x411eec
test ebx, ebx
je 0x411fbc
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 0x34]
jmp 0x411fde
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 0x411fdc
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.00412b09
add ebp, 0x78
leave
ret