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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5597f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebx + 0x2fc]
call fcn.0049ed9c
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov eax, dword [ebx + 0x320]
call fcn.0040508c
push eax
mov eax, dword [ebx + 0x31c]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x559736
mov eax, 4
call fcn.00402b48
mov dword [ebp - 0xc], eax
mov eax, 4
call fcn.00402b48
mov dword [ebp - 0x10], eax
mov eax, 0x4000
call fcn.00402b48
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [0x7e6074]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [ebp - 0x14]
mov edx, 0x105
call fcn.00405218
push 0x105
lea eax, [ebp - 0x14]
call fcn.004050e4
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov edi, eax
test edi, edi
jne 0x5596fe
mov edx, dword [ebp - 0x14]
mov eax, 0x559808
call fcn.004051d0
mov edx, eax
dec edx
lea eax, [ebp - 0x14]
call fcn.00405218
cmp dword [ebp - 0x14], 0
je 0x5596fe
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push dword [ebx + 0x320]
push 0x559814
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404f4c
mov eax, dword [ebp - 0x24]
call fcn.0040508c
push eax
mov eax, dword [ebx + 0x31c]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5596fe
mov eax, dword [ebp - 0xc]
mov dword [eax], 1
lea eax, [ebp - 0x18]
mov edx, 0x400
call fcn.00405218
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x400
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
call fcn.004050e4
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x559818
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5596f5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
jbe 0x5596f5
mov edx, eax
dec edx
lea eax, [ebp - 0x18]
call fcn.00405218
mov eax, dword [ebp - 0xc]
mov dword [eax], 3
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4000
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x559828
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5596f5
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x55916c]
call fcn.005591e4
mov edx, eax
mov eax, dword [0x7e6074]
call fcn.00435cc4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc esi
cmp edi, 0x103
jne 0x5595ae
mov eax, dword [ebp - 0x1c]
call fcn.00402b78
mov edx, 4
mov eax, dword [ebp - 0x10]
call fcn.00402b78
mov edx, 4
mov eax, dword [ebp - 0xc]
call fcn.00402b78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebx + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xd8]
xor edx, edx
mov eax, dword [ebx + 0x2f8]
call fcn.00465b6c
mov eax, dword [0x7e6074]
mov eax, dword [eax + 8]
test eax, eax
jle 0x5597b9
dec eax
test eax, eax
jl 0x5597b9
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
mov edx, esi
mov eax, dword [0x7e6074]
call fcn.00435d60
mov edx, dword [eax + 8]
lea eax, [ebp - 0x28]
call fcn.004054bc
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x280]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edi, dword [ebx + 0x2f8]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, eax
dec edx
mov eax, dword [edi + 0x280]
mov ecx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
inc esi
dec dword [ebp - 0x20]
jne 0x559768
mov dl, 1
mov eax, dword [ebx + 0x2f8]
call fcn.00465b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5597f8
lea eax, [ebp - 0x28]
call fcn.004052d8
lea eax, [ebp - 0x24]
call fcn.00404ba0
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404bc4
ret