Function at 0x47f7c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddc88
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x47f80a
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.00410370
mov edx, dword [esi]
push edx
call fcn.004aaaaa
add esp, 0xc
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
movzx edi, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
neg edi
sbb edi, edi
and edi, 0x100
add edi, 0x20119
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], edi
call fcn.0040b7a0
cmp eax, ebx
je 0x47f861
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x47fb36
push eax
jmp 0x47fb2d
mov esi, dword [ebp - 0x34]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x47fb21
inc dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x47fb21
lea esp, [esp]
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
call edx
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], esi
cmp esi, ebx
jl 0x47fb4d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x47f8e7
push esi
lea ecx, [ebp + 0x10]
call fcn.00406e80
mov ecx, dword [ebp + 0x10]
mov eax, ecx
cmp esi, dword [ecx - 8]
jg 0x47fb4d
push ebx
push ebx
mov dword [ecx - 0xc], esi
mov edx, dword [ebp + 0x10]
push ebx
xor ecx, ecx
push ebx
mov word [edx + esi*2], cx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov eax, dword [ebp - 0x34]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
cmp eax, ebx
jl 0x47fb4d
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x47fb4d
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, ebx
je 0x47f976
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fb0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47fb0e
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
push edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0040b7a0
test eax, eax
je 0x47f9b2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x47f9ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
jmp 0x47f94b
mov edi, dword [ebp - 0x40]
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x47fa01
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x47f9e3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47faff
mov eax, dword [ebp - 0x18]
mov edx, dword [0x52ddd4]
inc eax
mov esi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
mov dword [ebp - 0x28], esi
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.004072b0
push eax
push str.UninstallString
lea ecx, [ebp - 0x40]
call fcn.0040b850
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
cmp eax, ebx
jl 0x47fb4d
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x47fb4d
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov word [ecx + eax*2], dx
cmp esi, ebx
jne 0x47fab1
mov edx, dword [ebp + 8]
cmp dword [edx - 0xc], ebx
je 0x47fab1
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.00406650
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00438dc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040cd10
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00406650
jmp 0x47fb0b
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fad4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x47fae6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fb0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x20]
jb 0x47f8a0
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x47fb36
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00406170
int3