Function at 0x480840
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527d28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x587978]
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 0x48088a
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.00437380
mov edx, dword [esi]
push edx
call fcn.004eaf4a
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.0041d8b0
cmp eax, ebx
je 0x4808e1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x480bb6
push eax
jmp 0x480bad
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 0x480ba1
inc dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x480ba1
lea esp, [esp]
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
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 0x480bcd
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 0x480967
push esi
lea ecx, [ebp + 0x10]
call fcn.00406e00
mov ecx, dword [ebp + 0x10]
mov eax, ecx
cmp esi, dword [ecx - 8]
jg 0x480bcd
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.004eb8eb
add esp, 8
cmp eax, ebx
jl 0x480bcd
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x480bcd
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, ebx
je 0x4809f6
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 0x480b8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x480b8e
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.0041d8b0
test eax, eax
je 0x480a32
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x480a2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
jmp 0x4809cb
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 0x480a81
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x480a63
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 0x480b7f
mov eax, dword [ebp - 0x18]
mov edx, dword [0x587944]
inc eax
mov esi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
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.00407250
push eax
push str.UninstallString
lea ecx, [ebp - 0x40]
call fcn.0041d960
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004eb8eb
add esp, 8
cmp eax, ebx
jl 0x480bcd
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x480bcd
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov word [ecx + eax*2], dx
cmp esi, ebx
jne 0x480b31
mov edx, dword [ebp + 8]
cmp dword [edx - 0xc], ebx
je 0x480b31
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.004064c0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00437840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0041ace0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.004064c0
jmp 0x480b8b
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 0x480b54
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 0x480b66
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 0x480b8b
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 0x480920
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x480bb6
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