Function at 0x1004582b
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x100e60b7
call fcn.100c908c
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 0x6c]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [esi - 0xc], ebx
je 0x10045d4a
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x10045d4a
cmp dword [eax + 0x12bc], ebx
je 0x10045d4a
call fcn.10049ad4
test al, al
jne 0x1004591c
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.10009e15
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.components.nouser
mov byte [ebp - 4], 1
call fcn.10009e15
lea eax, [ebp + 0x60]
push eax
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], bl
mov ecx, dword [eax + 0x12bc]
call fcn.1004ef75
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.Components_Selection
mov byte [ebp - 4], 2
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push str.components.header
mov byte [ebp - 4], 3
call fcn.10009e15
lea eax, [ebp + 0x70]
push eax
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x12bc]
call fcn.1004ef75
push ebx
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
call fcn.10003f60
xor eax, eax
jmp 0x10045d4f
mov ecx, dword [esi + 0x54]
lea eax, [ebp + 0x54]
push eax
call fcn.1007f33d
push dword [ebp + 0x54]
mov byte [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004594e
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x54]
add ecx, 0xfffffff0
call fcn.10003f60
mov eax, esi
jmp 0x10045d4f
push dword [ebp + 0x70]
lea ecx, [ebp + 0x6c]
call fcn.10009e15
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.1000209a
lea eax, [ebp + 0x1c]
push str.http:__www.mozilla.org_keymaster_gatekeeper_there.is.only.xul
push eax
mov byte [ebp - 4], 6
call fcn.100476db
pop ecx
pop ecx
cmp eax, ebx
je 0x10045a5b
lea eax, [ebp + 0x60]
push eax
call fcn.10060b08
pop ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.ff.xsl
push eax
push ecx
mov byte [ebp - 4], 7
call fcn.10006fb9
lea eax, [ebp]
add esp, 0xc
push eax
call fcn.10097821
pop ecx
pop ecx
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 8
jb 0x100459c1
mov eax, dword [eax + 4]
jmp 0x100459c4
add eax, 4
push eax
lea ecx, [ebp + 0x70]
call fcn.10009e15
push ebx
push 1
lea ecx, [ebp]
call fcn.100022b8
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xb
call fcn.10003f60
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.10006657
push ecx
lea eax, [ebp + 0x70]
mov dword [ebp + 0x5c], esp
mov ecx, esp
push eax
call fcn.1000548f
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 0xc
jae 0x10045a18
lea eax, [ebp + 0x20]
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push eax
call fcn.10009e15
lea eax, [ebp + 0x50]
push eax
mov byte [ebp - 4], 0xb
call fcn.10038876
add esp, 0xc
push eax
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], 0xd
call fcn.1000688b
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.10003f60
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x10045a6a
lea edi, [eax + 0xb8]
jmp 0x10045a6c
xor edi, edi
push ecx
mov ecx, esp
mov dword [ebp + 0x70], esp
push str.component.xsl
call fcn.10009e15
push ecx
lea eax, [ebp + 0x6c]
mov dword [ebp + 0x58], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.1000548f
push edi
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 6
call fcn.1009fda8
mov eax, dword [esi + 0x54]
lea ecx, [eax + 0xb8]
mov eax, dword [ecx]
mov byte [ebp - 4], 0xf
call dword [eax + 0x5c]
push ebx
push eax
lea ecx, [ebp - 0x100]
call fcn.100457b3
cmp eax, 2
jne 0x10045aef
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 6
call fcn.1009f354
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.100022b8
mov ecx, dword [ebp + 0x6c]
add ecx, 0xfffffff0
call fcn.10003f60
xor esi, esi
jmp 0x1004593c
push ecx
mov ecx, esp
mov dword [ebp + 0x70], esp
mov edi, str.TOOLBAR
push edi
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
mov ebx, 0x1010d92c
push ebx
mov byte [ebp - 4], 0x10
call fcn.10009e15
push 1
push ecx
lea eax, [ebp + 0x54]
mov dword [ebp + 0x5c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x11
call fcn.1000548f
push dword [esi + 0x54]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.100a1a38
push ecx
mov ecx, esp
mov dword [ebp + 0x70], esp
push edi
mov byte [ebp - 4], 0x12
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push ebx
mov byte [ebp - 4], 0x13
call fcn.10009e15
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], 0x14
call fcn.1000548f
push dword [esi + 0x54]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x12
call fcn.100a1a38
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x15
call fcn.100a0475
cmp eax, edi
jle 0x10045ba0
push edi
lea ecx, [ebp - 0x80]
call fcn.100a047f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
jmp 0x10045ba2
xor eax, eax
cmp eax, edi
je 0x10045c72
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.100a0c8e
test al, al
je 0x10045bd0
push 1
lea ecx, [ebp - 0x48]
call fcn.100a0e6d
mov ecx, dword [esi + 0x54]
call fcn.1007f473
jmp 0x10045c72
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push str.You_can_only_add_one_instance_of_this_component
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.components.single
mov byte [ebp - 4], 0x16
call fcn.10009e15
lea eax, [ebp + 0x60]
push eax
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], 0x15
mov ecx, dword [eax + 0x12bc]
call fcn.1004ef75
push ecx
mov ecx, esp
mov dword [ebp + 0x58], esp
push str.Components_Selection
mov byte [ebp - 4], 0x17
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push str.components.header
mov byte [ebp - 4], 0x18
call fcn.10009e15
lea eax, [ebp + 0x70]
push eax
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], 0x17
mov ecx, dword [eax + 0x12bc]
call fcn.1004ef75
mov eax, dword [esi + 0x54]
push 0x40
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
call fcn.10003f60
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x12
call fcn.100a0b99
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.100a0b99
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 6
call fcn.1009f354
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.100022b8
mov ecx, dword [ebp + 0x6c]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x54]
jmp 0x1004590d
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x64
leave
ret 8