Function at 0x603334
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x60333c
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040507c
xor eax, eax
push ebp
push 0x6036b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov ebx, 0x80004005
mov eax, dword [0x6e3838]
cmp byte [eax], 1
jne 0x6033f7
lea eax, [ebp - 0x18]
call fcn.00406cb4
push eax
push 0x6dc860
push 3
push 0
push 0x6dc850
call sub.ole32.dll_CoCreateInstance
test eax, eax
jne 0x6033f7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [0x6e386c]
mov edx, dword [edx]
call fcn.004054bc
mov eax, dword [ebp - 0x20]
call fcn.00405538
push eax
push 1
push 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00409c98
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.004054bc
mov eax, dword [ebp - 0x24]
call fcn.00405538
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x6033ef
cmp dword [ebp - 0x1c], 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
lea eax, [ebp - 0x18]
call fcn.00406cb4
test ebx, ebx
je 0x603672
mov eax, 4
call fcn.00402b48
mov esi, eax
mov eax, 4
call fcn.00402b48
mov ebx, eax
mov dword [esi], 1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x60365a
lea eax, [ebp - 0xc]
mov edx, 0x400
call fcn.00405218
mov dword [ebx], 0x400
push ebx
lea eax, [ebp - 0xc]
call fcn.004050e4
push eax
push esi
push 0
push 0x6036c8
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x603492
mov eax, dword [ebx]
test eax, eax
jbe 0x603488
mov edx, eax
dec edx
lea eax, [ebp - 0xc]
call fcn.00405218
jmp 0x60349a
lea eax, [ebp - 0xc]
call fcn.00404ba0
jmp 0x60349a
lea eax, [ebp - 0xc]
call fcn.00404ba0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 0xc], 0
je 0x60365a
lea eax, [ebp - 0x10]
mov ecx, 0x6036d4
mov edx, dword [ebp - 0xc]
call fcn.00404ed8
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x6034f1
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x60365a
lea eax, [ebp - 0x10]
mov ecx, 0x603704
mov edx, dword [ebp - 0xc]
call fcn.00404ed8
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x60365a
lea eax, [ebp - 0xc]
mov edx, 0x400
call fcn.00405218
mov dword [ebx], 0x400
push ebx
lea eax, [ebp - 0xc]
call fcn.004050e4
push eax
push esi
push 0
push 0x6036c8
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x603576
mov eax, dword [ebx]
test eax, eax
jbe 0x60356c
mov edx, eax
dec edx
lea eax, [ebp - 0xc]
call fcn.00405218
jmp 0x60357e
lea eax, [ebp - 0xc]
call fcn.00404ba0
jmp 0x60357e
lea eax, [ebp - 0xc]
call fcn.00404ba0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 0xc], 0
je 0x60365a
push dword [ebp - 0x10]
push 0x603714
push dword [ebp - 0xc]
push 0x603720
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f4c
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x60365a
lea eax, [ebp - 0xc]
mov edx, 0x400
call fcn.00405218
mov dword [ebx], 0x400
push ebx
lea eax, [ebp - 0xc]
call fcn.004050e4
push eax
push esi
push 0
push 0x6036c8
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x603651
mov eax, dword [ebx]
test eax, eax
jbe 0x603651
mov edx, eax
dec edx
lea eax, [ebp - 0xc]
call fcn.00405218
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00409c98
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [0x6e53c4]
mov eax, dword [eax]
call fcn.0048edd4
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00409c98
mov eax, dword [ebp - 0x30]
pop edx
call fcn.004051d0
test eax, eax
jle 0x603651
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, 4
mov eax, ebx
call fcn.00402b78
mov edx, 4
mov eax, esi
call fcn.00402b78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6036be
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404bc4
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004052f0
lea eax, [ebp - 0x18]
call fcn.00406cb4
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404bc4
lea eax, [ebp - 4]
call fcn.00404ba0
ret