Function at 0x46a530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514787
mov eax, dword fs:[0]
push eax
sub esp, 0xc94
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc8c], eax
mov dword [ebp - 0xca0], 0
mov dword [ebp - 0xc9c], 0
mov dword [ebp - 0xc98], 0
mov dword [ebp - 0xc94], 0
push 1
push str.SoftwareMozillaMozilla_Firefox
push SysReAllocStringLen
lea ecx, [ebp - 0xc9c]
mov dword [ebp - 4], 0
call fcn.0040faa0
or ebx, 0xffffffff
test eax, eax
je 0x46a778
push 1
push str.SoftwareMozillaMozilla_Firefox
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xc9c]
call fcn.0040faa0
mov esi, dword [0x578ad4]
mov edi, eax
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 0x12
jne 0x46a60a
lea eax, [ebx + 0x67]
mov esi, 0x3a
test esi, esi
je 0x46a602
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x46a5f1
add esi, eax
mov dword [0x578ad4], esi
test edi, edi
je 0x46a6f9
push str.MozillaMozilla_Firefox
lea ecx, [ebp - 0xc84]
call fcn.00401ba0
push str.SoftwareWow6432Node_
lea ecx, [ebp - 0xc90]
mov byte [ebp - 4], 1
call fcn.00401c30
lea ecx, [ebp - 0xc84]
push ecx
push eax
lea eax, [ebp - 0xc88]
push eax
mov byte [ebp - 4], 2
call fcn.00402a80
add esp, 0xc
lea ecx, [ebp - 0xc9c]
push 1
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040faa0
mov esi, dword [ebp - 0xc88]
add esi, 0xfffffff0
mov edi, eax
lea ecx, [esi + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a686
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc90]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46a6a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc84]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46a6cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x46a6f3
mov ebx, dword [ebp - 0xc8c]
push ebx
call fcn.00469de0
mov ecx, dword [ebp - 0xc9c]
add esp, 4
test ecx, ecx
je 0x46a9fe
push ecx
jmp 0x46a9f8
mov esi, dword [0x578ad4]
lea eax, [esi + 1]
imul eax, esi
and eax, 0x8000000f
jns 0x46a70b
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jne 0x46a77e
xor esi, esi
call fcn.004f1791
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0xc88], xmm0
cmp esi, 0x8e
jb 0x46a712
xor ecx, ecx
mov eax, 0x8d
cmp ecx, eax
jge 0x46a76f
lea esp, [esp]
movsd xmm0, qword [ebp + eax*8 - 0xc80]
movsd xmm1, qword [ebp + eax*8 - 0xc88]
comisd xmm0, xmm1
jbe 0x46a76a
movsd qword [ebp + eax*8 - 0xc80], xmm1
movsd qword [ebp + eax*8 - 0xc88], xmm0
dec eax
cmp eax, ecx
jg 0x46a740
inc ecx
cmp ecx, 0x8e
jl 0x46a733
mov esi, dword [0x578ad4]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004f2250
imul esi, esi
mov eax, esi
cdq
mov ecx, 0x16
idiv ecx
add esp, 0xc
cmp edx, 0xd
jne 0x46a7c4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x578ad4], edx
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xc84], esi
mov eax, 0x532ad4
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x46a80b
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x46a823
push edi
push eax
lea ecx, [ebp - 0xc84]
call fcn.00408b00
jmp 0x46a81d
push 3
push 0x532ad4
lea ecx, [ebp - 0xc84]
call fcn.0040c730
mov esi, dword [ebp - 0xc84]
mov edi, dword [ebp - 0xc9c]
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0xc90]
push eax
push 0
push str.CurrentVersion
push edi
mov byte [ebp - 4], 4
mov dword [ebp - 0xc88], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46a8c8
mov eax, dword [ebp - 0xc90]
cmp eax, 1
je 0x46a86e
cmp eax, 2
jne 0x46a8c8
mov eax, dword [ebp - 0xc88]
test eax, eax
je 0x46a88b
test al, 1
jne 0x46a8c8
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x46a894
jmp 0x46a8c8
xor eax, eax
mov word [ebp - 0x810], ax
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a8a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xc84]
call fcn.0040c730
mov esi, dword [ebp - 0xc84]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x46a8dd
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc9c], edi
cmp dword [esi - 0xc], 0
mov dword [ebp - 0xc98], 0
je 0x46a96c
mov ecx, 0x532ad4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46a91a
test dx, dx
je 0x46a916
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46a91a
add eax, 4
add ecx, 4
test dx, dx
jne 0x46a8f4
xor eax, eax
jmp 0x46a91f
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x46a96c
add esi, 0xfffffff0
push esi
call fcn.004056f0
mov ecx, dword [ebp - 0xc8c]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46a95a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x46a961
push edi
call ebx
mov eax, dword [ebp - 0xc8c]
jmp 0x46aa00
mov ebx, dword [0x578ad4]
lea ecx, [ebx + 1]
lea eax, [ebx + 2]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 7
jne 0x46a9c6
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub ebx, ecx
xor ecx, ecx
lea eax, [ebx + 0x141]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ef820
push eax
call fcn.004f0683
add esp, 8
mov ebx, dword [ebp - 0xc8c]
push ebx
call fcn.00469de0
add esi, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46a9f3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x46a9fe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret