Function at 0x47cef0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov eax, dword [0x5375ec]
push ebx
push esi
push edi
mov ecx, dword [eax - 8]
xor edi, edi
cmp ecx, edi
mov dword [ebp - 0x10], esp
je 0x47d1cf
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push ecx
push eax
push eax
call fcn.0047d980
add esp, 0xc
mov esi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push esi
call fcn.0044ce90
mov dword [ebx + 8], esi
mov ecx, dword [0x532934]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.004e903c
mov edx, dword [0x5375ec]
push edx
call fcn.0045e100
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x100]
push 0x80
push eax
push edi
push ebx
call dword [sym.imp.advapi32.dll_RegEnumKeyA]
test eax, eax
jne 0x47d1a1
push 0x52468c
lea ecx, [ebp - 0x34]
push 0x5375ec
push ecx
call fcn.004dab11
lea edx, [ebp - 0x100]
mov byte [ebp - 4], 2
push edx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004dab11
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004da9b5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004da87c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004da87c
mov ecx, dword [0x532934]
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.00464470
mov dword [ebp - 0x78], 0x500b78
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.0044fb60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.0044de70
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x100]
lea ecx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 7
call fcn.004daa05
lea eax, [ebp - 0x14]
push str.:permissions
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.004dab11
mov eax, dword [eax]
mov byte [ebp - 4], 8
push eax
call fcn.0045e7e0
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 7
call fcn.004da87c
lea edx, [ebp - 0x14]
push str.:userdir
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.004dab11
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push eax
push ecx
mov byte [ebp - 4], 9
call fcn.0045e980
add esp, 8
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x3c]
call fcn.004da9b5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.004da87c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.004da87c
lea edx, [ebp - 0x14]
push str.:flags
lea eax, [ebp - 0x20]
push edx
push eax
call fcn.004dab11
mov eax, dword [eax]
mov byte [ebp - 4], 0xb
push eax
call fcn.0045e7e0
add esp, 4
lea ecx, [ebp - 0x20]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.004da87c
mov ecx, esi
mov edx, esi
and ecx, 1
push str.:password
dec cl
neg cl
sbb ecx, ecx
and edx, 2
inc ecx
xor eax, eax
mov dword [ebp - 0x48], ecx
cmp dl, 2
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x24]
sete al
push ecx
push edx
mov dword [ebp - 0x44], eax
call fcn.004dab11
mov eax, dword [eax]
lea ecx, [ebp - 0x78]
push ecx
push eax
mov byte [ebp - 4], 0xc
call fcn.0045eb40
add esp, 8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004da87c
lea edx, [ebp - 0x14]
push str.:salt
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.004dab11
mov eax, dword [eax]
lea ecx, [ebp - 0x60]
push ecx
push eax
mov byte [ebp - 4], 0xd
call fcn.0045eb40
add esp, 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004da87c
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x7c]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.0044cf00
inc edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.004da87c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xf
call fcn.004644e0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xe
call fcn.004644e0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004da87c
jmp 0x47cf77
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004da87c
jmp 0x47d1c4
test ebx, ebx
je 0x47d1cf
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret