Function at 0x100135c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ec90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov ax, word [0x10120a24]
push ebx
push esi
push edi
mov word [ebp - 0xa0], ax
mov al, byte [0x10120a26]
push 0x3e
mov byte [ebp - 0x9e], al
lea eax, [ebp - 0x9d]
push 0
push eax
call fcn.100ed160
add esp, 0xc
xor ecx, ecx
nop
mov al, byte [ecx + 0x10142c20]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x9f], al
test al, al
jne 0x10013610
mov esi, 0x10120a28
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push str.language
mov edx, str.system
lea ecx, [ebp - 0xa0]
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
jne 0x1001366f
cmp dword [ebp - 0x1c], 0x10
lea esi, [ebp - 0x30]
cmovae esi, dword [ebp - 0x30]
lea edx, [ebp - 0x53]
xor eax, eax
sub edx, esi
lea edi, [ebp - 0x51]
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x52]
sub edx, esi
sub edi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], edi
nop dword [eax]
mov bl, byte [eax + esi]
lea edx, [eax + esi]
test bl, bl
je 0x100136de
mov byte [ecx], bl
mov bl, byte [eax + esi + 1]
test bl, bl
je 0x100136dd
mov edi, dword [ebp - 0x14]
mov byte [edx + edi], bl
mov bl, byte [eax + esi + 2]
test bl, bl
je 0x100136d8
mov edi, dword [ebp - 0x18]
mov byte [edx + edi], bl
mov bl, byte [eax + esi + 3]
mov edi, dword [ebp - 0x10]
test bl, bl
je 0x100136d3
add eax, 4
mov byte [edx + edi], bl
add ecx, 4
cmp eax, 0x20
jb 0x10013690
jmp 0x100136de
add ecx, 3
jmp 0x100136de
add ecx, 2
jmp 0x100136de
inc ecx
mov eax, dword [ebp - 0x1c]
mov byte [ecx], 0
cmp eax, 0x10
jb 0x100136f6
mov ecx, dword [ebp - 0x30]
lea edx, [eax + 1]
push 1
call fcn.1000d8e0
mov esi, str.data
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push str.master_patches
mov edx, str.system
lea ecx, [ebp - 0xa0]
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
jne 0x10013742
cmp dword [ebp - 0x1c], 0x10
lea esi, [ebp - 0x30]
cmovae esi, dword [ebp - 0x30]
lea edx, [ebp - 0xe7]
xor ecx, ecx
sub edx, esi
lea edi, [ebp - 0xe4]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0xe8]
lea edx, [ebp - 0xe6]
sub edx, esi
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0xe5]
sub edx, esi
sub edi, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x10], edi
mov bl, byte [ecx + esi]
lea edx, [ecx + esi]
test bl, bl
je 0x100137d7
mov byte [eax], bl
mov bl, byte [ecx + esi + 1]
test bl, bl
je 0x100137d6
mov edi, dword [ebp - 0x18]
mov byte [edi + edx], bl
mov bl, byte [ecx + esi + 2]
test bl, bl
je 0x100137d1
mov edi, dword [ebp - 0x14]
mov byte [edi + edx], bl
mov bl, byte [ecx + esi + 3]
test bl, bl
je 0x100137cc
mov edi, dword [ebp - 0x34]
mov byte [edi + edx], bl
mov bl, byte [ecx + esi + 4]
mov edi, dword [ebp - 0x10]
test bl, bl
je 0x100137c7
add ecx, 5
mov byte [edi + edx], bl
add eax, 5
cmp ecx, 0x41
jb 0x10013776
jmp 0x100137d7
add eax, 4
jmp 0x100137d7
add eax, 3
jmp 0x100137d7
add eax, 2
jmp 0x100137d7
inc eax
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x100137ef
mov ecx, dword [ebp - 0x30]
lea edx, [eax + 1]
push 1
call fcn.1000d8e0
mov ecx, 0x10153e80
mov al, byte [ecx]
cmp al, 0x5c
je 0x10013802
cmp al, 0x2f
je 0x10013802
cmp al, 0x2e
jne 0x10013805
inc ecx
jmp 0x100137f4
push ecx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xe8]
push eax
push str._s_text_s_s
push 0x10153ec1
call fcn.1000d880
add esp, 0x14
push 0x10153ec1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0xc]
cmp eax, 0xffffffff
pop edi
pop esi
setne byte [0x10153f66]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret