Function at 0x4790b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59e747
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x81fc
call fcn.00568060
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x81f8], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
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.0047d6a0
pop ecx
test al, al
je 0x47949a
cmp dword [esp + 0x18c], 8
mov eax, dword [esp + 0x178]
jae 0x479161
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 0x47949a
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.0055fda0
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 0x479478
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.00404170
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 0x479267
mov byte [esp + 0x8218], 1
cmp dword [esp + 0x1c], edi
je 0x479256
push dword [esp + 0x1c]
call fcn.0055da69
pop ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
jmp 0x479478
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 0x5c8a58
push eax
mov byte [esp + 0x8220], 3
call fcn.00410581
lea ecx, [esp + 0x20c]
push ecx
push eax
lea eax, [esp + 0x1dc]
mov byte [esp + 0x8228], 4
call fcn.00410678
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x194]
mov byte [esp + 0x8218], 5
call fcn.0040447e
push 1
xor edi, edi
lea esi, [esp + 0x1d0]
call fcn.00404589
push 1
lea esi, [esp + 0x1ec]
mov byte [esp + 0x821c], 3
call fcn.00404589
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, ebx
jbe 0x479434
cmp eax, 2
jbe 0x479413
cmp eax, 4
je 0x4793a3
cmp eax, 0xb
jne 0x479434
lea eax, [esp + 0xdc]
push eax
call fcn.00403aba
mov esi, eax
mov byte [esp + 0x8218], 8
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
push esi
call fcn.0041ab5d
lea eax, [esp + 0x1e8]
push eax
mov eax, esi
call fcn.00403b24
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1f0]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x8220], 9
call fcn.004044c6
push 1
lea esi, [esp + 0x1ec]
call fcn.00404589
lea eax, [esp + 0xdc]
jmp 0x479404
lea eax, [esp + 0x44]
push eax
call fcn.00403aba
mov esi, eax
mov byte [esp + 0x8218], 6
mov eax, dword [esp + 0x1c]
push dword [eax]
push esi
call fcn.004109e7
lea eax, [esp + 0x1cc]
push eax
mov eax, esi
call fcn.00403b24
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1d4]
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x8220], 7
call fcn.004044c6
push 1
xor edi, edi
lea esi, [esp + 0x1d0]
call fcn.00404589
lea eax, [esp + 0x44]
mov byte [esp + 0x8218], 3
call fcn.004027ed
jmp 0x479424
push dword [esp + 0x1c]
lea eax, [esp + 0x1b4]
push eax
call fcn.00404560
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x194]
call fcn.00479940
push 1
xor edi, edi
lea esi, [esp + 0x1b4]
call fcn.00404589
push 1
lea esi, [esp + 0x198]
call fcn.00404589
mov byte [esp + 0x8218], 1
cmp dword [esp + 0x1c], ebx
je 0x47946a
push dword [esp + 0x1c]
call fcn.0055da69
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 0x4791b3
cmp dword [esp + 0x38], edi
je 0x47949a
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [esp + 0x17c]
call fcn.00404589
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.0055c9d4
mov esp, ebp
pop ebp
ret