Function at 0x462740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5083bc
mov eax, dword fs:[0]
push eax
sub esp, 0xb74
mov eax, dword [0x565680]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0xb68], ebx
mov dword [ebp - 0xb80], 0
mov dword [ebp - 0xb78], 0
mov dword [ebp - 0xb74], 0
mov dword [ebp - 0xb70], 0
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xb78]
mov dword [ebp - 4], 0
call fcn.0040bb90
test eax, eax
je 0x462925
lea eax, [ebp - 0xb68]
push eax
call fcn.0040df80
add esp, 4
mov eax, dword [ebp - 0xb68]
or esi, 0xffffffff
mov edx, dword [eax - 0xc]
mov byte [ebp - 4], 1
test edx, edx
je 0x4628da
lea ecx, [edx - 1]
test ecx, ecx
js 0x46291b
cmp ecx, edx
jg 0x46291b
cmp word [eax + ecx*2], 0x5c
je 0x462816
push 0x519f08
lea ecx, [ebp - 0xb68]
call fcn.00402d60
push 0x522ac0
lea eax, [ebp - 0xb68]
push eax
lea eax, [ebp - 0xb6c]
push eax
call fcn.00402ae0
lea eax, [ebp - 0xb6c]
push eax
mov byte [ebp - 4], 2
call fcn.0040d850
add esp, 0x10
test al, al
je 0x4628b7
mov eax, dword [ebp - 0xb6c]
add eax, 0xfffffff0
push eax
call fcn.004053a0
mov edx, dword [ebp - 0xb6c]
add eax, 0x10
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x462882
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xb68]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4628a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xb78]
test eax, eax
je 0x462a8c
push eax
jmp 0x462a86
mov edx, dword [ebp - 0xb6c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4628da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x51781c
mov ecx, ebx
call fcn.00401ba0
mov edx, dword [ebp - 0xb68]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x462907
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xb78]
test eax, eax
je 0x462a8c
push eax
jmp 0x462a86
push 0x80070057
call fcn.00402fc0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004e67c0
mov eax, dword [0x5651b8]
add esp, 0xc
mov ecx, 0x5651b8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xb6c], esi
mov ecx, dword [0x566ac0]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0xd
idiv ecx
mov byte [ebp - 4], 3
cmp edx, 0xb
jne 0x462998
mov esi, dword [0x566ac0]
xor edi, edi
mov ebx, esi
inc edi
dec ebx
cmp edi, 0xd5
jb 0x462982
mov esi, dword [ebp - 0xb6c]
mov ebx, dword [ebp - 0xb68]
mov edi, dword [ebp - 0xb78]
lea eax, [ebp - 0xb68]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0xb7c]
push eax
push 0
push 0x51781c
push edi
mov dword [ebp - 0xb68], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x462a38
mov eax, dword [ebp - 0xb7c]
cmp eax, 1
je 0x4629df
cmp eax, 2
jne 0x462a38
mov eax, dword [ebp - 0xb68]
test eax, eax
je 0x4629fc
test al, 1
jne 0x462a38
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x462a05
jmp 0x462a38
xor eax, eax
mov word [ebp - 0x810], ax
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462a10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xb6c]
call fcn.00409940
mov esi, dword [ebp - 0xb6c]
test edi, edi
je 0x462a4b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0xb78], edi
add esi, 0xfffffff0
push esi
mov dword [ebp - 0xb74], 0
call fcn.004053a0
add eax, 0x10
mov dword [ebx], 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 0x462a81
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x462a8c
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.004e52a4
mov esp, ebp
pop ebp
ret