Function at 0x5fd198
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 - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040507c
xor eax, eax
push ebp
push 0x5fd484
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.0040508c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5fd454
push 0x5fd49c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.0040a628
push dword [ebp - 0x30]
push 0x5fd4a8
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404f4c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, 4
call fcn.00402b48
mov ebx, eax
mov eax, 4
call fcn.00402b48
mov dword [ebp - 0x20], eax
mov eax, 4
call fcn.00402b48
mov dword [ebp - 0x24], eax
mov eax, 8
call fcn.00402b48
mov dword [ebp - 0x1c], eax
xor edi, edi
mov dword [ebx], 0x400
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x400
lea eax, [ebp - 0x14]
mov edx, dword [ebx]
call fcn.00405218
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
lea eax, [ebp - 0x18]
call fcn.00405218
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
call fcn.004050e4
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push ebx
lea eax, [ebp - 0x14]
call fcn.004050e4
push eax
push edi
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegEnumValueA
mov esi, eax
test esi, esi
jne 0x5fd390
lea eax, [ebp - 0x14]
mov edx, dword [ebx]
call fcn.00405218
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
dec eax
je 0x5fd358
sub eax, 2
je 0x5fd324
dec eax
jne 0x5fd383
lea eax, [ebp - 0x18]
call fcn.004050e4
lea edx, [ebp - 0x10]
mov ecx, 4
call fcn.00402e18
push 0x5fd4b4
push dword [ebp - 0x14]
push 0x5fd4a8
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.0040a458
push dword [ebp - 0x34]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404f4c
jmp 0x5fd383
push 0x5fd4c0
push dword [ebp - 0x14]
push 0x5fd4a8
lea eax, [ebp - 0x18]
call fcn.004050e4
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
call fcn.005d7148
push dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404f4c
jmp 0x5fd383
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
dec edx
lea eax, [ebp - 0x18]
call fcn.00405218
push 0x5fd4cc
push dword [ebp - 0x14]
push 0x5fd4a8
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404f4c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
test esi, esi
je 0x5fd270
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, 0x5fd4d8
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edi, edi
mov eax, 0x400
mov dword [ebx], eax
lea edx, [ebp - 0x14]
xchg edx, eax
call fcn.00405218
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0
push ebx
lea eax, [ebp - 0x14]
call fcn.004050e4
push eax
push edi
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov esi, eax
test esi, esi
jne 0x5fd413
lea eax, [ebp - 0x14]
mov edx, dword [ebx]
call fcn.00405218
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 8]
push 0x5fd4e4
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404f4c
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005fd198
pop ecx
inc edi
test esi, esi
je 0x5fd3aa
mov edx, 4
mov eax, ebx
call fcn.00402b78
mov edx, 4
mov eax, dword [ebp - 0x20]
call fcn.00402b78
mov edx, 4
mov eax, dword [ebp - 0x24]
call fcn.00402b78
mov edx, 8
mov eax, dword [ebp - 0x1c]
call fcn.00402b78
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fd48b
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00404bc4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404bc4
lea eax, [ebp - 8]
call fcn.00404ba0
ret