Function at 0x415406
Capabilities:
Check if file exists

Disassembly:
push 0xec
mov eax, 0x4c6958
call fcn.0049f5ab
mov edi, ecx
xor ebx, ebx
push str.CFirefoxBrowser_IsToolbarEnabled___start
lea ecx, [ebp - 0xd8]
mov byte [ebp - 0xae], bl
call fcn.00404bd0
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 4], ebx
call fcn.004017f5
or dword [ebp - 4], 0xffffffff
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0xd8]
call fcn.004058b3
push ebx
push 0x510884
push 0x510800
push ebx
push edi
call fcn.004bcaba
mov edi, eax
add esp, 0x14
lea ecx, [ebp - 0xd8]
cmp edi, ebx
jne 0x4154a0
push str.CFirefoxBrowser_IsToolbarEnabled___Error_in_casting___return_false.
call fcn.00404bd0
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 4], esi
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xd8]
call fcn.004058b3
jmp 0x415870
push str.CFirefoxBrowser_IsToolbarEnabled__ff_toolbar_folder_name
call fcn.00404bd0
lea eax, [edi + 0x20]
push eax
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 4], 2
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xd8]
call fcn.004058b3
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
call fcn.00405a99
push str.extensions.ini
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 3
call fcn.00404bd0
lea eax, [ebp - 0x4c]
push eax
lea edi, [ebp - 0xd8]
mov byte [ebp - 4], 4
call fcn.00414961
push ebx
push esi
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004058b3
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x415529
lea eax, [ebp - 0x48]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
je 0x415545
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x415549
xor eax, eax
jmp 0x415564
lea eax, [edi + edi]
call fcn.004a0cd0
mov esi, esp
push 3
push edi
push dword [ebp - 0xb4]
call fcn.0040123d
xor esi, esi
inc esi
push eax
lea ecx, [ebp - 0x68]
call fcn.00404bd0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x38], ebx
je 0x415829
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x415586
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415829
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0xad], bl
mov dword [ebp - 0x18], 7
call fcn.00405ece
mov byte [ebp - 4], 7
jmp 0x4155bc
xor ebx, ebx
xor esi, esi
inc esi
push 0x511110
lea ecx, [ebp - 0xbc]
call fcn.00404f19
push dword [ebp - 0xb4]
lea eax, [ebp - 0xbc]
push str.Extension_d
push eax
mov byte [ebp - 4], 8
call fcn.0040642e
mov edi, dword [ebp - 0xbc]
add esp, 0xc
push edi
lea ecx, [ebp - 0x84]
call fcn.00404bd0
lea ecx, [ebp - 0xac]
call fcn.00431b5d
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xa
call fcn.00431bbf
push str.ExtensionDirs
lea ecx, [ebp - 0xd8]
call fcn.00404bd0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xb
call fcn.00431c71
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00405301
push ebx
push esi
lea ecx, [ebp - 0xf8]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
call fcn.004058b3
push str.CFirefoxBrowser_IsToolbarEnabled._szToolbarDir
lea ecx, [ebp - 0xd8]
call fcn.00404bd0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd8]
push eax
mov byte [ebp - 4], 0xd
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
call fcn.004058b3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4156bf
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00404a87
lea ebx, [ebp - 0xb8]
mov byte [ebp - 4], 0xe
call fcn.0041bf26
push dword [eax]
lea ecx, [ebp - 0x30]
call fcn.00405394
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x4157a2
cmp dword [ebp - 0xb4], 0x1f4
jg 0x4157a2
push ebx
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xdc]
call fcn.00404c8b
cmp eax, 0xffffffff
je 0x415751
push str.CFirefoxBrowser_IsToolbarEnabled___start
lea ecx, [ebp - 0xf8]
call fcn.00404bd0
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x10
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xf8]
call fcn.004058b3
mov byte [ebp - 0xae], 1
mov byte [ebp - 0xad], 1
mov ecx, dword [ebp - 0xb8]
inc dword [ebp - 0xb4]
add ecx, 0xfffffff0
call fcn.00401713
lea ecx, [ebp - 0xac]
call fcn.00431b96
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.004058b3
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 7
call fcn.00401713
cmp byte [ebp - 0xad], bl
je 0x4155b7
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x415800
jmp 0x4155b9
push str.CFirefoxBrowser_IsToolbarEnabled___szToolbarDir_is_empty
lea ecx, [ebp - 0xf8]
call fcn.00404bd0
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0xf
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xf8]
call fcn.004058b3
mov ecx, dword [ebp - 0xb8]
add ecx, 0xfffffff0
call fcn.00401713
lea ecx, [ebp - 0xac]
call fcn.00431b96
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.004058b3
lea ecx, [edi - 0x10]
call fcn.00401713
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00404ec6
mov al, byte [ebp - 0xae]
jmp 0x415872
push str.CFirefoxBrowser_IsToolbarEnabled___Error_PathFileExists___return_false.
lea ecx, [ebp - 0xf8]
call fcn.00404bd0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 6
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xf8]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00404ec6
xor al, al
lea esp, [ebp - 0x108]
call fcn.0049f62e
ret