Function at 0x4761a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4761b1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x476423
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404898
lea eax, [ebp - 8]
push eax
mov edx, esi
mov eax, 0x47643c
call fcn.00404e48
mov ecx, eax
dec ecx
mov edx, 1
mov eax, esi
call fcn.004324c8
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404b04
push eax
mov eax, dword [ebp - 8]
call fcn.00404b04
mov edx, eax
add edx, 2
mov eax, esi
pop ecx
call fcn.004324c8
mov eax, dword [ebp - 8]
call fcn.00475f24
mov esi, eax
test esi, esi
je 0x4763f3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404d04
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4763f3
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, edi
call fcn.00404d04
mov esi, eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4763f3
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.00404e90
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4763f3
cmp dword [ebp - 0x1c], 1
jae 0x4762b3
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], 1
je 0x4762bf
cmp dword [ebp - 0x18], 2
jne 0x4762d2
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
dec edx
mov eax, dword [ebp - 0x14]
call fcn.004323d4
jmp 0x4763ea
cmp dword [ebp - 0x18], 7
jne 0x47634a
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
dec edx
mov eax, dword [ebp - 0x14]
call fcn.004323d4
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
call fcn.004048dc
mov eax, ebx
call fcn.00404844
mov eax, dword [ebp - 0x14]
call fcn.00404b04
mov edi, eax
test edi, edi
jbe 0x4763ea
mov esi, 1
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
jne 0x476328
mov eax, ebx
mov edx, 0x476448
call fcn.00404b0c
jmp 0x476341
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov dl, byte [edx + esi - 1]
call fcn.00404a2c
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.00404b0c
inc esi
dec edi
jne 0x476310
jmp 0x4763ea
cmp dword [ebp - 0x18], 3
jne 0x476362
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.004323d4
jmp 0x4763ea
cmp dword [ebp - 0x18], 5
jne 0x4763a7
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
and eax, 0xff
mov esi, eax
shl esi, 0x18
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
shl eax, 0x10
add esi, eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 2]
shl eax, 8
add esi, eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 3]
add esi, eax
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00408d14
jmp 0x4763ea
cmp dword [ebp - 0x18], 4
jne 0x4763f3
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 3]
and eax, 0xff
mov esi, eax
shl esi, 0x18
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 2]
shl eax, 0x10
add esi, eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
shl eax, 8
add esi, eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
add esi, eax
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00408d14
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 0x47642a
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404868
lea eax, [ebp - 0x14]
call fcn.00404844
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404868
ret