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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040507c
xor eax, eax
push ebp
push 0x5db143
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.0040508c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5db10b
mov eax, 4
call fcn.00402b48
mov dword [ebp - 0x20], eax
mov eax, 4
call fcn.00402b48
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x18]
mov edx, 0x105
call fcn.00405218
push 0x105
lea eax, [ebp - 0x18]
call fcn.004050e4
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov ebx, eax
test ebx, ebx
jne 0x5db0dc
mov edx, dword [ebp - 0x18]
mov eax, 0x5db160
call fcn.004051d0
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00405218
cmp dword [ebp - 0x18], 0
je 0x5db0dc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [ebp - 8]
push 0x5db16c
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404f4c
mov eax, dword [ebp - 0x34]
call fcn.0040508c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5db0dc
mov eax, dword [ebp - 0x20]
mov dword [eax], 1
lea eax, [ebp - 0x1c]
mov edx, 0x400
call fcn.00405218
mov dword [edi], 0x400
push edi
lea eax, [ebp - 0x1c]
call fcn.004050e4
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0x5db170
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5db005
mov eax, dword [edi]
test eax, eax
jbe 0x5db005
mov edx, eax
dec edx
lea eax, [ebp - 0x1c]
call fcn.00405218
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x30]
call fcn.00409b74
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.00409d38
test eax, eax
jne 0x5db005
mov byte [ebp - 9], 1
cmp byte [ebp - 9], 1
jne 0x5db0d3
lea eax, [ebp - 0x1c]
mov edx, 0x400
call fcn.00405218
mov dword [edi], 0x400
push edi
lea eax, [ebp - 0x1c]
call fcn.004050e4
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0x5db178
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5db062
mov eax, dword [edi]
test eax, eax
jbe 0x5db055
mov edx, eax
dec edx
lea eax, [ebp - 0x1c]
call fcn.00405218
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.00404bf4
jmp 0x5db07c
lea edx, [ebp - 0x3c]
mov eax, dword [0x6e49e4]
mov eax, dword [eax]
call fcn.005d1e94
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
call fcn.00404e54
mov eax, dword [ebp - 0x20]
mov dword [eax], 3
mov dword [edi], 0x1000
mov eax, 0x1000
call fcn.00402b48
mov ebx, eax
push edi
push ebx
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0x5db188
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5db0c3
mov edx, dword [ebp + 8]
lea eax, [ebx + 4]
mov ecx, 4
call fcn.00402e18
jmp 0x5db0ca
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, ebx
call fcn.00402b78
jmp 0x5db0e9
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc esi
cmp ebx, 0x103
jne 0x5daf0b
mov edx, 4
mov eax, edi
call fcn.00402b78
mov edx, 4
mov eax, dword [ebp - 0x20]
call fcn.00402b78
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5db14a
lea eax, [ebp - 0x3c]
call fcn.004052d8
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404bc4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404bc4
lea eax, [ebp - 8]
call fcn.00404ba0
ret