Function at 0x404ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e72b
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.00401d30
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x154], ebx
jae 0x404d0b
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 SysReAllocString
call ebp
test eax, eax
je 0x404d53
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x404d36
lea eax, [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x404d53
cmp dword [esp + 0x34], esi
jmp 0x404da0
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 0x404dce
cmp dword [esp + 0x34], 0x10
jb 0x404ebb
mov eax, dword [esp + 0x20]
push eax
call fcn.00418537
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 0x404dd5
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404830
push 5
push str.Main
lea ecx, [esp + 0x24]
call fcn.00404830
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x20]
jae 0x404e12
lea eax, [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push SysReAllocString
call ebp
test eax, eax
je 0x404e72
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x404e37
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x404e72
lea ecx, [esp + 0x1c]
call fcn.00401550
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 0x404ed6
cmp dword [esp + 0x34], 0x10
jb 0x404ebb
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00418537
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 0x404ee0
mov ecx, dword [esp + 0x3c]
sub eax, edx
push eax
lea edx, [esp + 0x44]
push edx
add ecx, 4
call fcn.00401d30
cmp dword [esp + 0x34], 0x10
jb 0x404f0f
mov eax, dword [esp + 0x20]
push eax
call fcn.00418537
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