Function at 0x471620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040555c
xor eax, eax
push ebp
push 0x4716d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00405574
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4716ec
call fcn.00405f58
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405c40
mov eax, dword [ebp - 0x3c]
call fcn.00471178
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4713ac
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4713ac
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
mov ebx, eax
test ebx, ebx
je 0x4713b7
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4716ec
call fcn.00405f58
mov edx, eax
inc edx
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.00405c40
mov eax, dword [ebp - 0x40]
call fcn.00405600
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4716aa
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, 0x3fff
call fcn.00402fcc
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 0x28]
call fcn.00402fcc
mov esi, eax
mov dword [ebp - 0x24], 0x3fff
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueW
mov ebx, eax
test ebx, ebx
jne 0x47167a
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004055c8
cmp dword [ebp - 0x2c], 4
jne 0x4714b9
mov dword [ebp - 0x34], esi
push 0x4716fc
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
push 0
push 8
lea eax, [ebp - 0x44]
call fcn.0047bfc8
push dword [ebp - 0x44]
push 0x471710
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
call fcn.0047c0a8
push dword [ebp - 0x48]
push 0x471724
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00405a90
jmp 0x471574
cmp dword [ebp - 0x2c], 3
jne 0x47152a
cmp dword [ebp - 0x28], 0
jne 0x4714d7
lea eax, [ebp - 0xc]
mov edx, 0x471734
call fcn.004055c8
jmp 0x471574
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x471574
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
movzx eax, word [esi + eax*2]
movzx eax, ax
xor edx, edx
push edx
push eax
push 0
push 2
lea eax, [ebp - 0x4c]
call fcn.0047bfc8
push dword [ebp - 0x4c]
push 0x471754
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405a90
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x4714ee
jmp 0x471574
cmp dword [ebp - 0x2c], 7
jne 0x47156a
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x47155e
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
cmp word [esi + eax*2], 0
jne 0x471556
mov eax, dword [ebp - 0x30]
mov word [esi + eax*2], 0x20
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x471543
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.004056f0
jmp 0x471574
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.004056f0
cmp word [edi], 0
jne 0x471589
lea eax, [ebp - 0x10]
mov edx, 0x471764
call fcn.004055c8
jmp 0x471593
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.004056f0
mov eax, dword [ebp - 0x2c]
cmp eax, 7
ja case.default.0x47159f
jmp dword [eax*4 + 0x4715a6]
lea eax, [ebp - 8]
mov edx, 0x47177c
call fcn.004055c8
jmp case.default.0x47159f
lea eax, [ebp - 8]
mov edx, 0x4717a0
call fcn.004055c8
jmp case.default.0x47159f
lea eax, [ebp - 8]
mov edx, 0x4717c0
call fcn.004055c8
jmp case.default.0x47159f
lea eax, [ebp - 8]
mov edx, 0x4717f8
call fcn.004055c8
jmp case.default.0x47159f
lea eax, [ebp - 8]
mov edx, 0x471820
call fcn.004055c8
jmp case.default.0x47159f
lea eax, [ebp - 8]
mov edx, 0x471840
call fcn.004055c8
jmp case.default.0x47159f
lea eax, [ebp - 8]
mov edx, 0x471868
call fcn.004055c8
jmp case.default.0x47159f
lea eax, [ebp - 8]
mov edx, 0x471888
call fcn.004055c8
cmp dword [ebp - 0xc], 0
jne 0x47164f
lea eax, [ebp - 0xc]
mov edx, 0x471754
call fcn.004055c8
push dword [ebp - 0x14]
push 0x4718a4
push dword [ebp - 0x10]
push 0x4718b4
push dword [ebp - 8]
push 0x4718b4
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 7
call fcn.00405a90
inc dword [ebp - 0x20]
mov eax, esi
call fcn.00402fe8
test ebx, ebx
je 0x471407
cmp dword [ebp - 0x14], 0
je 0x47169a
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00405574
mov eax, edi
call fcn.00402fe8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4716d9
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.0040556c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040556c
ret