Function at 0x474405
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f430
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x81fc
call fcn.005685b0
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x81f8], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
xor eax, esp
push eax
lea eax, [esp + 0x8210]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x3c], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18c], 7
mov dword [esp + 0x188], edi
mov word [esp + 0x178], ax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x17c]
mov dword [esp + 0x821c], edi
call fcn.00478d5b
pop ecx
test al, al
je 0x4747e9
cmp dword [esp + 0x18c], 8
mov eax, dword [esp + 0x178]
jae 0x4744b0
lea eax, [esp + 0x178]
lea ecx, [esp + 0x2c]
push ecx
push 0x201
push edi
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4747e9
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
xor eax, eax
mov byte [esp + 0x8218], 1
push 0x7ffe
mov word [esp + 0x208], ax
lea eax, [esp + 0x20a]
push edi
push eax
call fcn.00560d40
add esp, 0xc
mov dword [esp + 0x18], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [esp + 0x30]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x218]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x4c], edi
push dword [esp + 0x48]
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], edi
call ebx
cmp eax, 0xea
jne 0x4747c7
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00431e99
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x218]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x50], 0x4000
push dword [esp + 0x48]
call ebx
test eax, eax
je 0x4745b6
mov byte [esp + 0x8218], 1
cmp dword [esp + 0x1c], edi
je 0x4745a5
push dword [esp + 0x1c]
call fcn.0055e74f
pop ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
jmp 0x4747c7
push 7
pop eax
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1c4], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x1a4], edi
mov word [esp + 0x194], cx
mov dword [esp + 0x1c0], edi
mov word [esp + 0x1b0], ax
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x1e8]
push 0x5c2724
push eax
mov byte [esp + 0x8220], 3
call fcn.0040cf5b
lea ecx, [esp + 0x20c]
push ecx
push eax
lea eax, [esp + 0x1dc]
mov byte [esp + 0x8228], 4
call fcn.0040d052
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x194]
mov byte [esp + 0x8218], 5
call fcn.0040ab21
push 1
xor edi, edi
lea esi, [esp + 0x1d0]
call fcn.0040b028
push 1
lea esi, [esp + 0x1ec]
mov byte [esp + 0x821c], 3
call fcn.0040b028
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, ebx
jbe 0x474783
cmp eax, 2
jbe 0x474762
cmp eax, 4
je 0x4746f2
cmp eax, 0xb
jne 0x474783
lea eax, [esp + 0xdc]
push eax
call fcn.00409ac6
mov esi, eax
mov byte [esp + 0x8218], 8
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
push esi
call fcn.00418be3
lea eax, [esp + 0x1e8]
push eax
mov eax, esi
call fcn.00409b30
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1f0]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x8220], 9
call fcn.0040ac9e
push 1
lea esi, [esp + 0x1ec]
call fcn.0040b028
lea eax, [esp + 0xdc]
jmp 0x474753
lea eax, [esp + 0x44]
push eax
call fcn.00409ac6
mov esi, eax
mov byte [esp + 0x8218], 6
mov eax, dword [esp + 0x1c]
push dword [eax]
push esi
call fcn.0040d432
lea eax, [esp + 0x1cc]
push eax
mov eax, esi
call fcn.00409b30
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1d4]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x8220], 7
call fcn.0040ac9e
push 1
xor edi, edi
lea esi, [esp + 0x1d0]
call fcn.0040b028
lea eax, [esp + 0x44]
mov byte [esp + 0x8218], 3
call fcn.004021a3
jmp 0x474773
push dword [esp + 0x1c]
lea eax, [esp + 0x1b4]
push eax
call fcn.0040ad38
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x194]
call fcn.00474ca9
push 1
xor edi, edi
lea esi, [esp + 0x1b4]
call fcn.0040b028
push 1
lea esi, [esp + 0x198]
call fcn.0040b028
mov byte [esp + 0x8218], 1
cmp dword [esp + 0x1c], ebx
je 0x4747b9
push dword [esp + 0x1c]
call fcn.0055e74f
pop ecx
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x400
jb 0x474502
cmp dword [esp + 0x38], edi
je 0x4747e9
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [esp + 0x17c]
call fcn.0040b028
mov ecx, dword [esp + 0x8210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x81f8]
xor ecx, esp
call fcn.0055d7fe
mov esp, ebp
pop ebp
ret