Function at 0x5d7bb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
cmp byte [0x1221e48], 0
je 0x5d7e0a
mov eax, dword [0x1221e20]
mov dword [ebp - 4], eax
jmp 0x5d7bf9
add dword [0x1221e20], 0x1000
mov eax, dword [0x1221e20]
mov dword [ebp - 4], eax
mov eax, 0x1221e1c
mov edx, dword [0x1221e20]
call fcn.00402848
lea eax, [ebp - 4]
push eax
mov eax, dword [0x1221e1c]
push eax
push 0
push 0
push 0x5d7eec
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x5d7bd7
mov eax, dword [0x1221e1c]
mov eax, dword [eax + 0x18]
add eax, dword [0x1221e1c]
mov dword [0x1221e24], eax
mov eax, dword [0x1221e1c]
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x5d7c6e
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x1221e24]
cmp dword [eax + 0xc], 0xee
je 0x5d7c6e
mov eax, dword [0x1221e24]
mov eax, dword [eax]
add eax, dword [0x1221e24]
mov dword [0x1221e24], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x5d7c46
mov eax, dword [0x1221e24]
cmp dword [eax + 0xc], 0xee
je 0x5d7c92
mov ecx, 0x5d7ef8
mov dl, 1
mov eax, dword [0x4092e0]
call fcn.0040f2f0
call fcn.00404c14
cmp dword [0x1221e2c], 0
jge 0x5d7ccc
mov eax, dword [0x1221e24]
mov eax, dword [eax + 0x28]
mov dword [0x1221e2c], eax
mov eax, dword [0x1221e2c]
shl eax, 3
call fcn.00402808
mov dword [0x1221e30], eax
mov eax, dword [0x1221e2c]
shl eax, 3
call fcn.00402808
mov dword [0x1221e34], eax
mov eax, dword [0x1221e24]
mov eax, dword [eax + 8]
add eax, dword [0x1221e24]
mov dword [0x1221e28], eax
mov eax, dword [0x1221e24]
mov eax, dword [eax + 0x20]
test eax, eax
jle 0x5d7d1a
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 1
mov eax, dword [0x1221e28]
cmp dword [eax + 4], 6
je 0x5d7d1a
mov eax, dword [0x1221e28]
mov eax, dword [eax]
add eax, dword [0x1221e28]
mov dword [0x1221e28], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x5d7cf5
mov eax, dword [0x1221e28]
cmp dword [eax + 4], 6
je 0x5d7d3b
mov ecx, 0x5d7f34
mov dl, 1
mov eax, dword [0x4092e0]
call fcn.0040f2f0
call fcn.00404c14
mov eax, dword [0x1221e24]
mov eax, dword [eax + 4]
add eax, dword [0x1221e24]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1221e2c]
dec eax
test eax, eax
jl 0x5d7dc9
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1221e34]
mov edx, dword [ebp - 8]
mov ecx, dword [0x1221e30]
mov ebx, dword [ebp - 8]
mov esi, dword [ecx + ebx*8]
mov dword [eax + edx*8], esi
mov esi, dword [ecx + ebx*8 + 4]
mov dword [eax + edx*8 + 4], esi
mov eax, dword [0x1221e28]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x34], edx
mov eax, dword [0x1221e30]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x38]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x5d7d61
mov eax, dword [0x1221e38]
mov dword [0x1221e40], eax
mov eax, dword [0x1221e3c]
mov dword [0x1221e44], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x1221e1c]
add eax, 0x24
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov eax, dword [ebp - 0x18]
mov dword [0x1221e38], eax
mov eax, dword [ebp - 0x14]
mov dword [0x1221e3c], eax
jmp 0x5d7ee4
cmp byte [0x1221e49], 0
jne 0x5d7ebe
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push 0x5d7f70
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5d7e50
mov ecx, 0x5d7f8c
mov dl, 1
mov eax, dword [0x4092e0]
call fcn.0040f2f0
call fcn.00404c14
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x1221e4c
lea eax, [ebp - 0x28]
push eax
push 0
push 0x5d7fb4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0x1221e50
push 0x20019
push 0
push 0x5d7fc4
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5d7eb7
mov ecx, 0x5d7fe0
mov dl, 1
mov eax, dword [0x4092e0]
call fcn.0040f2f0
call fcn.00404c14
mov byte [0x1221e49], 1
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 0x1221e4c
lea eax, [ebp - 0x28]
push eax
push 0
push 0x5d7fb4
mov eax, dword [0x1221e50]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret