Function at 0x10050d42
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x100bc96d
call fcn.100a0664
sub esp, 0x58
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 0x10050d71
mov eax, 0x80004005
jmp 0x10050ff4
mov ecx, dword [ebp + 0x74]
lea eax, [ebp + 0x64]
add ecx, 0x54
push eax
mov dword [ebp + 0x74], ecx
call fcn.10068282
push dword [ebp + 0x64]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10050da1
mov ecx, dword [ebp + 0x64]
add ecx, 0xfffffff0
call fcn.10001ccd
jmp 0x10050d67
push dword [ebp + 0x78]
lea ecx, [ebp + 0x78]
call fcn.1000274d
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x10050dba
mov eax, dword [eax]
jmp 0x10050dbc
xor eax, eax
push eax
lea ecx, [ebp + 0x68]
call fcn.100057f4
mov ecx, dword [ebp + 0x78]
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x10050dd8
call fcn.10003043
mov dword [ebp + 0x78], ebx
push ecx
mov ecx, esp
mov dword [ebp + 0x5c], esp
push 0x100c5568
call fcn.100057f4
push ecx
lea eax, [ebp + 0x68]
mov dword [ebp + 0x50], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 5
call fcn.100033f5
lea eax, [ebp + 0x60]
push eax
mov byte [ebp - 4], 4
call fcn.10054535
add esp, 0xc
mov eax, dword [ebp + 0x60]
mov byte [ebp - 4], 6
mov edi, 0x100c503c
cmp dword [eax - 0xc], ebx
je 0x10050ee8
push edi
push eax
lea ecx, [ebp + 0x68]
call fcn.10004473
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.100449b3
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], 7
call fcn.1000c4dd
lea eax, [ebp - 0x64]
add esp, 0xc
push eax
call fcn.10081b0e
pop ecx
pop ecx
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 8
jb 0x10050e69
mov eax, dword [eax + 4]
jmp 0x10050e6c
add eax, 4
push eax
lea ecx, [ebp + 0x78]
call fcn.100057f4
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.1000bc62
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xb
call fcn.10001ccd
push ecx
lea eax, [ebp + 0x78]
mov dword [ebp + 0x58], esp
mov ecx, esp
push eax
call fcn.100033f5
push ecx
lea eax, [ebp + 0x68]
mov dword [ebp + 0x54], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.100033f5
lea eax, [ebp + 0x5c]
push eax
mov byte [ebp - 4], 0xb
call fcn.1004f9b8
add esp, 0xc
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xd
call fcn.100046db
mov ecx, dword [ebp + 0x5c]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x78]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.10001ccd
push ecx
mov ecx, esp
mov dword [ebp + 0x78], esp
mov esi, str.TOOLBAR
push esi
call fcn.100057f4
push ecx
mov ecx, esp
mov dword [ebp + 0x54], esp
push edi
mov byte [ebp - 4], 0xe
call fcn.100057f4
push 1
push ecx
lea eax, [ebp + 0x64]
mov dword [ebp + 0x58], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xf
call fcn.100033f5
push dword [ebp + 0x74]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.1008a9c9
push ecx
mov ecx, esp
mov dword [ebp + 0x78], esp
push esi
mov byte [ebp - 4], 0x10
call fcn.100057f4
push ecx
mov ecx, esp
mov dword [ebp + 0x54], esp
push edi
mov byte [ebp - 4], 0x11
call fcn.100057f4
push ebx
push ecx
lea eax, [ebp + 0x68]
mov dword [ebp + 0x58], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x12
call fcn.100033f5
push dword [ebp + 0x74]
lea ecx, [ebp]
mov byte [ebp - 4], 0x10
call fcn.1008a9c9
lea ecx, [ebp]
mov byte [ebp - 4], 0x13
call fcn.100893c5
cmp eax, ebx
jle 0x10050f92
push ebx
lea ecx, [ebp]
call fcn.100893cf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
jmp 0x10050f94
xor eax, eax
cmp eax, ebx
je 0x10050fb9
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.10089c0f
cmp al, bl
je 0x10051008
push 1
lea ecx, [ebp - 0x48]
call fcn.10089dee
mov ecx, dword [ebp + 0x74]
call fcn.100684aa
lea ecx, [ebp]
mov byte [ebp - 4], 0x10
call fcn.10089b1a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.10089b1a
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x68]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x64]
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
add ebp, 0x6c
leave
ret 8
lea ecx, [ebp]
mov byte [ebp - 4], 0x10
call fcn.10089b1a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.10089b1a
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x68]
add ecx, 0xfffffff0
call fcn.10001ccd
jmp 0x10050d94