Function at 0x401df0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x408fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [0x40d0f4]
push ebx
push ebp
push esi
push edi
push 0x20
mov ebp, ecx
xor ebx, ebx
mov edi, 0xf
push str.C:Program_FilesMozilla_Firefox
lea ecx, [esp + 0x88]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.00401340
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
push 0x20
push str.SOFTWAREMozillaMozilla_Firefox
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00401340
mov eax, dword [esp + 0x44]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x30]
mov byte [esp + 0xa8], 2
jae 0x401ea0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x64]
push ecx
push str.CurrentVersion
push eax
push 0x80000002
call fcn.00401d30
add esp, 0x10
test eax, eax
je 0x401f55
push 1
push 0x40a22c
lea ecx, [esp + 0x34]
call fcn.00401af0
push str.Main
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401c80
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xb4], 3
call fcn.00401a00
cmp dword [esp + 0x28], esi
mov byte [esp + 0xa8], 2
jb 0x401f17
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00402f4d
add esp, 4
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x401f25
lea eax, [esp + 0x30]
lea edx, [esp + 0x64]
push edx
push str.Install_Directory
push eax
push 0x80000002
call fcn.00401d30
add esp, 0x10
test eax, eax
je 0x401f55
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x8c]
call fcn.00401250
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00401250
push 0xe
push str._searchplugins
lea ecx, [esp + 0x50]
mov byte [esp + 0xb0], 4
call fcn.00401af0
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x401f9b
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401fd1
push 0xa
push str._baidu.xml
lea ecx, [esp + 0x50]
call fcn.00401af0
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x401fc4
lea eax, [esp + 0x4c]
push eax
push 0x8b
mov ecx, ebp
call fcn.00401740
cmp dword [esp + 0x60], esi
jb 0x401fe4
mov edx, dword [esp + 0x4c]
push edx
call fcn.00402f4d
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x402003
mov eax, dword [esp + 0x30]
push eax
call fcn.00402f4d
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x402022
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00402f4d
add esp, 4
mov eax, dword [esp + 0x98]
mov dword [esp + 0x7c], edi
pop edi
cmp eax, esi
pop esi
pop ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
pop ebx
jb 0x40204a
mov edx, dword [esp + 0x74]
push edx
call fcn.00402f4d
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8c]
call fcn.004034b5
add esp, 0x9c
ret