Function at 0x1004ffd2
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x100c1c03
call fcn.100a35ac
sub esp, 0xf0
push ebx
mov ebx, dword [ebp + 0x6c]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
cmp dword [ebx - 0xc], edi
jne 0x10050003
mov eax, 0x80004005
jmp 0x10050462
call fcn.10025322
test al, al
jne 0x100500a3
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push str.Toolbar_needs_to_be_fully_initialized_before_you_can_add_or_remove_components._Please_try_again_in_few_moments
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.components.nouser
mov byte [ebp - 4], 1
call fcn.10005f07
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0
mov ecx, dword [ebx + 0x1340]
push eax
call fcn.1002be4e
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.Components_Selection
mov byte [ebp - 4], 2
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push str.components.header
mov byte [ebp - 4], 3
call fcn.10005f07
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x1340]
push eax
call fcn.1002be4e
push edi
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0x60]
jmp 0x10050458
lea eax, [ebp + 0x54]
lea esi, [ebx + 0x64]
push eax
mov ecx, esi
call fcn.10064264
push dword [ebp + 0x54]
mov byte [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100500d7
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x54]
add ecx, 0xfffffff0
call fcn.10001d29
mov eax, esi
jmp 0x10050462
push dword [ebp + 0x70]
lea ecx, [ebp + 0x70]
call fcn.100027e0
mov eax, dword [eax]
mov byte [ebp - 4], 5
cmp eax, edi
je 0x100500f0
mov eax, dword [eax]
jmp 0x100500f2
xor eax, eax
push eax
lea ecx, [ebp + 0x6c]
call fcn.10005f07
mov ecx, dword [ebp + 0x70]
mov byte [ebp - 4], 7
cmp ecx, edi
je 0x1005010e
call fcn.10003111
mov dword [ebp + 0x70], edi
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x1c]
call fcn.10006227
lea eax, [ebp + 0x1c]
push str.http:__www.mozilla.org_keymaster_gatekeeper_there.is.only.xul
push eax
mov byte [ebp - 4], 8
call fcn.10050ed4
pop ecx
pop ecx
cmp eax, edi
je 0x1005020e
lea eax, [ebp + 0x60]
push edi
push eax
call fcn.100404f4
pop ecx
pop ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.ff.xsl
push eax
push ecx
mov byte [ebp - 4], 9
call fcn.100053c1
lea eax, [ebp]
add esp, 0xc
push eax
call fcn.1007fe93
pop ecx
pop ecx
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 0xa
jb 0x10050174
mov eax, dword [eax + 4]
jmp 0x10050177
add eax, 4
push eax
lea ecx, [ebp + 0x70]
call fcn.10005f07
push edi
push 1
lea ecx, [ebp]
call fcn.100035a9
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xd
call fcn.10001d29
push str._xsl:variable_name_client_mode__0__xsl:variable_
push str._xsl:variable_name_client_mode__1__xsl:variable_
lea ecx, [ebp + 0x70]
call fcn.100047f1
push ecx
lea eax, [ebp + 0x70]
mov dword [ebp + 0x5c], esp
mov ecx, esp
push eax
call fcn.10003561
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 0xe
jae 0x100501cb
lea eax, [ebp + 0x20]
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push eax
call fcn.10005f07
lea eax, [ebp + 0x50]
push eax
mov byte [ebp - 4], 0xd
call fcn.1004b5b2
add esp, 0xc
push eax
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], 0xf
call fcn.10004a20
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.10001d29
cmp esi, edi
je 0x1005021a
lea esi, [ebx + 0x11c]
jmp 0x1005021c
xor esi, esi
push ecx
mov ecx, esp
mov dword [ebp + 0x70], esp
push str.component.xsl
call fcn.10005f07
push ecx
lea eax, [ebp + 0x6c]
mov dword [ebp + 0x58], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x10
call fcn.10003561
push esi
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.10087be9
lea ecx, [ebx + 0x11c]
mov eax, dword [ecx]
mov byte [ebp - 4], 0x11
call dword [eax + 0x5c]
push edi
push eax
lea ecx, [ebp - 0xfc]
call fcn.1004ffa0
cmp eax, 2
jne 0x1005029c
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.1008723d
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.100035a9
mov ecx, dword [ebp + 0x6c]
add ecx, 0xfffffff0
call fcn.10001d29
xor esi, esi
jmp 0x100500c5
push ecx
mov ecx, esp
mov dword [ebp + 0x70], esp
mov esi, str.TOOLBAR
push esi
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
mov edi, 0x100cb0a0
push edi
mov byte [ebp - 4], 0x12
call fcn.10005f07
push 1
push ecx
lea eax, [ebp + 0x54]
mov dword [ebp + 0x5c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x13
call fcn.10003561
lea eax, [ebx + 0x64]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.10089796
push ecx
mov ecx, esp
mov dword [ebp + 0x70], esp
push esi
mov byte [ebp - 4], 0x14
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push edi
mov byte [ebp - 4], 0x15
call fcn.10005f07
xor edi, edi
push edi
push ecx
lea eax, [ebp + 0x6c]
mov dword [ebp + 0x5c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x16
call fcn.10003561
lea esi, [ebx + 0x64]
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x14
call fcn.10089796
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x17
call fcn.10088122
cmp eax, edi
jle 0x1005034f
push edi
lea ecx, [ebp - 0x80]
call fcn.1008812c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
jmp 0x10050351
xor eax, eax
cmp eax, edi
je 0x10050418
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.100889ec
test al, al
je 0x1005037e
push 1
lea ecx, [ebp - 0x48]
call fcn.10088bcb
mov ecx, esi
call fcn.1006448c
jmp 0x10050418
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push str.You_can_only_add_one_instance_of_this_component
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.components.single
mov byte [ebp - 4], 0x18
call fcn.10005f07
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x17
mov ecx, dword [ebx + 0x1340]
push eax
call fcn.1002be4e
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push str.Components_Selection
mov byte [ebp - 4], 0x19
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.components.header
mov byte [ebp - 4], 0x1a
call fcn.10005f07
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0x19
mov ecx, dword [ebx + 0x1340]
push eax
call fcn.1002be4e
mov eax, dword [ebx + 0x68]
push 0x40
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
call fcn.10001d29
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x14
call fcn.100888f7
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.100888f7
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.1008723d
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.100035a9
mov ecx, dword [ebp + 0x6c]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0x54]
add ecx, 0xfffffff0
call fcn.10001d29
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x64
leave
ret 8