Function at 0x100508a4
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x100bc889
call fcn.100a0664
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call fcn.1002a57a
cmp al, bl
jne 0x1005095e
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Toolbar_needs_to_be_fully_initialized_before_you_can_add_or_remove_components._Please_try_again_in_few_moments
call fcn.100057f4
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.components.nouser
mov byte [ebp - 4], 1
call fcn.100057f4
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x1328]
push eax
call fcn.10031253
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.Components_Selection
mov byte [ebp - 4], 2
call fcn.100057f4
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.components.header
mov byte [ebp - 4], 3
call fcn.100057f4
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x1328]
push eax
call fcn.10031253
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0xc]
jmp 0x10050a7b
push 1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.100027a1
mov eax, dword [eax]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x10050979
mov eax, dword [eax]
jmp 0x1005097b
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
call fcn.100057f4
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 6
cmp ecx, ebx
je 0x10050997
call fcn.10003043
mov dword [ebp + 0xc], ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea esi, [edi + 0x54]
push eax
mov ecx, esi
call fcn.10068282
push dword [ebp - 0x14]
mov byte [ebp - 4], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100509d9
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10001ccd
mov eax, esi
jmp 0x10050a85
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.TOOLBAR
call fcn.100057f4
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x100c503c
mov byte [ebp - 4], 8
call fcn.100057f4
push 1
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 9
call fcn.100033f5
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.1008a9c9
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 0xa
jl 0x10050a96
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push ecx
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.100033f5
lea ecx, [ebp - 0x70]
call fcn.10089475
cmp eax, ebx
jl 0x10050a4f
push eax
lea ecx, [ebp - 0x70]
call fcn.10089805
push 1
lea ecx, [ebp - 0x70]
call fcn.10089dee
lea ecx, [edi + 0x54]
call fcn.100684aa
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.10089b1a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10001ccd
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push 0xfffffffffffffffe
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.100033f5
lea ecx, [ebp - 0x70]
call fcn.10089475
mov esi, eax
cmp esi, ebx
jl 0x10050a4f
push esi
lea ecx, [ebp - 0x70]
call fcn.100893cf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
lea ecx, [ebp - 0x70]
cmp al, bl
je 0x10050adf
mov byte [ebp - 4], 7
call fcn.10089b1a
mov esi, 0x80004005
jmp 0x100509bc
push esi
call fcn.10089805
jmp 0x10050a96