Function at 0x404e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x21
mov dword [esp + 0x40], ecx
push str.SoftwareMozillaMozilla_Firefox_
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00401d80
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x154], ebx
jae 0x404eab
lea eax, [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call ebp
test eax, eax
je 0x404ef3
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x404ed6
lea eax, [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call ebp
test eax, eax
je 0x404ef3
cmp dword [esp + 0x34], esi
jmp 0x404f40
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
push str.CurrentVersion
push ecx
mov dword [esp + 0x30], 0x104
call edi
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x404f6e
cmp dword [esp + 0x34], 0x10
jb 0x40505b
mov eax, dword [esp + 0x20]
push eax
call fcn.004186e7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404f75
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x24]
call fcn.004049d0
push 5
push str.Main
lea ecx, [esp + 0x24]
call fcn.004049d0
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x20]
jae 0x404fb2
lea eax, [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push 0x80000001
call ebp
test eax, eax
je 0x405012
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x404fd7
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call ebp
test eax, eax
je 0x405012
lea ecx, [esp + 0x1c]
call fcn.004015a0
mov eax, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebx
push str.Install_Directory
push edx
mov dword [esp + 0x30], 0x104
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x405076
cmp dword [esp + 0x34], 0x10
jb 0x40505b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004186e7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x40]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405080
mov ecx, dword [esp + 0x3c]
sub eax, edx
push eax
lea edx, [esp + 0x44]
push edx
add ecx, 4
call fcn.00401d80
cmp dword [esp + 0x34], 0x10
jb 0x4050af
mov eax, dword [esp + 0x20]
push eax
call fcn.004186e7
add esp, 4
mov ecx, dword [esp + 0x14c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret