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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56879b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x5687ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x568515
mov dword [ebp - 0x24], pe_nt_image_headers32
lea eax, [ebp - 0x24]
push eax
xor eax, eax
mov al, byte [ebp - 0x134]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x5687d8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x5687e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x56855b
cmp dword [ebp - 0x14], 0
je 0x568780
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x568780
mov dl, 1
mov eax, dword [0x41a3b8]
call fcn.004034a8
call fcn.00567f04
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], pe_nt_image_headers32
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov ebx, eax
test ebx, ebx
jne 0x568771
mov edx, dword [ebp - 0x2c]
inc edx
lea eax, [ebp - 0x30]
call fcn.00404974
mov edi, dword [ebp - 0x28]
dec edi
test edi, edi
jl 0x568771
inc edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], pe_nt_image_headers32
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, 0x386
call fcn.004027a0
mov esi, eax
mov edx, 0x386
mov eax, esi
call fcn.00407938
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004047e8
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x568727
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x30]
call fcn.004047e8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x56865a
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push 0x568810
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, 0x568824
call fcn.00404634
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x34]
call fcn.004047e8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x56871e
mov dword [ebp - 0x24], pe_nt_image_headers32
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x107]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x568858
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x24], pe_nt_image_headers32
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x186]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x568868
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x24], pe_nt_image_headers32
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x206]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x568874
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea edx, [ebp - 0x134]
lea eax, [esi + 0x286]
call fcn.00409af4
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, 0x56887c
lea eax, [esi + 0x186]
call fcn.00409b94
test eax, eax
je 0x56874f
mov edx, 0x568884
lea eax, [esi + 0x186]
call fcn.00409b94
test eax, eax
jne 0x56875d
mov edx, 0x386
mov eax, esi
call fcn.004027c0
jmp 0x568767
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0041cbe8
inc dword [ebp - 0xc]
dec edi
jne 0x5685c5
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5687a2
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0040434c
ret