Function at 0x421d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b276
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x474454]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
push 1
push str.SoftwareMozillaMozilla_Firefox
push SysReAllocStringLen
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], ebx
call fcn.00404a30
cmp eax, ebx
je 0x421e36
push 1
push str.SoftwareMozillaMozilla_Firefox
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x424]
call fcn.00404a30
cmp eax, ebx
je 0x421e36
push 1
push str.SoftwareWow6432NodeMozillaMozilla_Firefox
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x424]
call fcn.00404a30
cmp eax, ebx
je 0x421e36
push esi
call fcn.00421970
mov eax, dword [ebp - 0x424]
add esp, 4
cmp eax, ebx
je 0x421e2f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x421fa2
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.0043ffa0
add esp, 0xc
push 0x46146c
lea ecx, [ebp - 0x414]
call fcn.00402280
mov esi, dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x42c]
push eax
push ebx
push str.CurrentVersion
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x428], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x421eec
mov eax, dword [ebp - 0x42c]
cmp eax, 1
je 0x421eab
cmp eax, 2
jne 0x421eec
mov eax, dword [ebp - 0x428]
cmp eax, ebx
je 0x421ec0
cmp byte [ebp + eax - 0x411], bl
je 0x421ec6
jmp 0x421eec
mov byte [ebp - 0x410], bl
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421ed0
sub eax, edx
push eax
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x414]
call fcn.00401be0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x421f01
push esi
call edi
xor esi, esi
mov dword [ebp - 0x424], esi
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x420], ebx
cmp dword [eax - 0xc], ebx
je 0x421f61
push 0x46146c
push eax
call fcn.0043f751
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
jne 0x421f61
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
push eax
call fcn.004011e0
mov edx, dword [ebp - 0x418]
add eax, 0x10
mov dword [edx], eax
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x421f89
mov ecx, dword [ebp - 0x418]
push ecx
call fcn.00421970
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421f95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x421f9c
push esi
call edi
mov eax, dword [ebp - 0x418]
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.0043fdbf
mov esp, ebp
pop ebp
ret