Function at 0x100142b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x10014666
cmp dword [edi + 4], 0
je 0x10014666
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x48], cx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
call fcn.10001f80
mov dword [ebp - 4], 0
mov edx, dword [edi + 4]
add edx, 0x48
lea ecx, [ebp - 0x30]
call fcn.10058dd0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
cmp esi, 8
lea ecx, [ebp - 0x48]
cmovae ecx, edx
lea ebx, [ebp - 0x48]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x48]
cmovae ecx, edx
cmovae ebx, edx
cmp ecx, eax
je 0x10014367
push dword [sym.imp.MSVCR110.dll_tolower]
mov edx, ecx
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.100150d0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmp edx, 8
lea ecx, [ebp - 0x30]
cmovae ecx, esi
lea ebx, [ebp - 0x30]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x30]
cmovae ecx, esi
cmovae ebx, esi
cmp ecx, eax
je 0x100143a1
push dword [sym.imp.MSVCR110.dll_tolower]
mov edx, ecx
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.100150d0
add esp, 0xc
mov ecx, dword [edi + 4]
push 7
add ecx, 0x30
push str.matches
push dword [ecx + 0x10]
push ecx
call fcn.10005a80
test eax, eax
jne 0x100143e8
cmp dword [ebp - 0x34], 8
lea edx, [ebp - 0x48]
cmovae edx, dword [ebp - 0x48]
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
call fcn.10013db0
movzx eax, al
push eax
mov ecx, edi
call fcn.10014830
mov bl, al
jmp 0x1001461c
mov ecx, dword [edi + 4]
add ecx, 0x30
mov edx, str.contains
call fcn.10006100
test al, al
je 0x1001442d
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push eax
lea ecx, [ebp - 0x48]
call fcn.1000e380
cmp eax, 0xffffffff
setne al
movzx eax, al
push eax
mov ecx, edi
call fcn.10014830
mov bl, al
jmp 0x1001461c
mov ecx, dword [edi + 4]
add ecx, 0x30
mov edx, 0x1007dabc
call fcn.10006100
test al, al
je 0x1001445e
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.100150b0
movzx eax, al
push eax
mov ecx, edi
call fcn.10014830
mov bl, al
jmp 0x1001461c
mov ecx, dword [edi + 4]
add ecx, 0x30
mov edx, str.ends_with
call fcn.10006100
test al, al
je 0x100144bb
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x20]
cmp esi, ebx
jbe 0x100144aa
cmp dword [ebp - 0x1c], 8
push ebx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.1000bfb0
sub esi, ebx
cmp eax, esi
jne 0x100144aa
mov al, 1
mov ecx, edi
push eax
call fcn.10014830
mov bl, al
jmp 0x1001461c
xor al, al
mov ecx, edi
push eax
call fcn.10014830
mov bl, al
jmp 0x1001461c
mov ecx, dword [edi + 4]
add ecx, 0x30
mov edx, str.begins_with
call fcn.10006100
test al, al
je 0x100144ff
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push eax
lea ecx, [ebp - 0x48]
call fcn.1000e380
test eax, eax
sete al
movzx eax, al
push eax
mov ecx, edi
call fcn.10014830
mov bl, al
jmp 0x1001461c
mov ecx, dword [edi + 4]
add ecx, 0x30
mov edx, str.invalid
call fcn.10006100
test al, al
je 0x1001455b
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.10004790
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete al
movzx eax, al
push eax
mov ecx, edi
call fcn.10014830
lea ecx, [ebp - 0x18]
mov bl, al
mov byte [ebp - 4], 1
call fcn.100047d0
jmp 0x1001461c
mov ecx, dword [edi + 4]
add ecx, 0x30
mov edx, str.invalid_link
call fcn.10006100
test al, al
je 0x10014656
push 0x1007d0cc
lea ecx, [ebp - 0x60]
call fcn.10008e70
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.10013c00
cmp dword [ebp - 0x50], 0
jne 0x100145d1
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100145c9
push 7
add ecx, 0x60
push str.exclude
push dword [ecx + 0x10]
push ecx
call fcn.10005a80
test eax, eax
je 0x100145cd
mov ecx, dword [edi + 4]
push 7
add ecx, 0x60
push str.include
push dword [ecx + 0x10]
push ecx
call fcn.10005a80
xor bl, bl
jmp 0x10014614
mov bl, 1
jmp 0x10014614
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.10004790
mov byte [ebp - 4], 4
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete al
movzx eax, al
push eax
mov ecx, edi
call fcn.10014830
lea ecx, [ebp - 0x18]
mov bl, al
mov byte [ebp - 4], 3
call fcn.100047d0
lea ecx, [ebp - 0x60]
call fcn.10001a00
cmp dword [ebp - 0x1c], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10014630
push dword [ebp - 0x30]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
jb 0x10014652
push dword [ebp - 0x48]
call esi
add esp, 4
mov al, bl
jmp 0x10014668
lea ecx, [ebp - 0x30]
call fcn.10001a00
lea ecx, [ebp - 0x48]
call fcn.10001a00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4