Function at 0x40b410
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462454
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x174], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], 0
mov byte [ebp - 0x13c], 0
lea eax, [ebp - 0x120]
push eax
push str.SOFTWAREMozillaMozilla_Firefox
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x120], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b5f8
push 0x103
push eax
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x117]
push eax
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x120]
mov dword [ebp - 0x11c], 0x104
mov dword [ebp - 0x124], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b5f8
mov dword [ebp - 0x178], 0xf
mov dword [ebp - 0x17c], eax
mov byte [ebp - 0x18c], al
cmp byte [ebp - 0x118], al
jne 0x40b51f
xor ecx, ecx
jmp 0x40b531
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b528
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x18c]
call fcn.00407c90
push str.Main
lea edx, [ebp - 0x18c]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 3
call fcn.004089f0
mov edi, eax
lea eax, [ebp - 0x13c]
add esp, 4
cmp eax, edi
je 0x40b5ab
cmp dword [ebp - 0x128], 0x10
jb 0x40b584
push dword [ebp - 0x13c]
call fcn.0041a4c1
add esp, 4
push edi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], 0
mov byte [ebp - 0x13c], 0
call fcn.00406f50
cmp dword [ebp - 0x15c], 0x10
jb 0x40b5c2
push dword [ebp - 0x170]
call fcn.0041a4c1
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x178], 0x10
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
jb 0x40b5f8
push dword [ebp - 0x18c]
call fcn.0041a4c1
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x12c], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x174], 1
je 0x40b77d
mov byte [ebp - 4], 4
cmp dword [ebp - 0x128], 0x10
lea ecx, [ebp - 0x11c]
lea eax, [ebp - 0x13c]
cmovae eax, dword [ebp - 0x13c]
push ecx
push eax
push dword [ebp - 0x120]
mov dword [ebp - 0x11c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b770
push 0x103
push eax
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x117]
push eax
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push str.Install_Directory
push dword [ebp - 0x11c]
mov dword [ebp - 0x124], 0x104
mov dword [ebp - 0x140], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b770
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x170]
call fcn.00405140
push str._firefox.exe
mov edx, eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 5
call fcn.004089f0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x15c], 0x10
jb 0x40b709
push dword [ebp - 0x170]
call fcn.0041a4c1
add esp, 4
cmp dword [ebp - 0x144], 0x10
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
push eax
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b759
lea eax, [ebp - 0x158]
cmp esi, eax
je 0x40b759
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407060
cmp dword [ebp - 0x144], 0x10
jb 0x40b770
push dword [ebp - 0x158]
call fcn.0041a4c1
add esp, 4
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x40b77d
push eax
call edi
cmp dword [ebp - 0x128], 0x10
jb 0x40b794
push dword [ebp - 0x13c]
call fcn.0041a4c1
add esp, 4
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], 0
mov byte [ebp - 0x13c], 0
test ecx, ecx
je 0x40b7bc
push ecx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret