Function at 0x100cedd3
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x1016e888
call fcn.1012b67a
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jbe 0x100cf600
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100cf600
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100cf600
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x100cf600
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
mov ebx, eax
test ebx, ebx
je 0x100cf600
mov eax, dword [ebp + 0x20]
xor ecx, ecx
test eax, eax
je 0x100cee28
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
dec ecx
cmp ecx, 0xd
ja case.default.0x100cee35
jmp dword [ecx*4 + 0x100cf60b]
cmp dword [ebp + 0xc], 0x804
jne 0x100cef0b
mov eax, dword [ebx]
push ebx
call dword [eax + 0x4c]
push eax
call fcn.10130fe5
pop ecx
test eax, eax
je 0x100cee99
lea eax, [ebp + 8]
push 0x2f9c
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov esi, eax
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x4c]
push eax
push dword [esi]
push str._s_n_s
push dword [ebp + 0x18]
push edi
call fcn.1000de27
add esp, 0x14
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
jmp 0x100ceefb
lea eax, [ebp + 0xc]
push 0x2f9a
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov esi, eax
mov dword [ebp - 4], 2
lea eax, [ebp + 8]
push 0x2f9c
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov byte [ebp - 4], 3
push dword [esi]
push dword [eax]
push str._s_n_s
push dword [ebp + 0x18]
push edi
call fcn.1000de27
add esp, 0x14
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.100078bc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.100078bc
xor eax, eax
inc eax
jmp 0x100cf602
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.100cf6e6
mov esi, eax
mov dword [ebp - 4], 6
lea eax, [ebp + 0x1c]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.100cf643
mov byte [ebp - 4], 7
push dword [esi]
mov esi, dword [ebp + 0x18]
push dword [eax]
push str._s_n_s
push esi
push edi
call fcn.1000de27
add esp, 0x14
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.100078bc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100078bc
jmp 0x100cf27e
push dword [0x102486e0]
jmp 0x100cf277
mov eax, dword [ebp + 0xc]
cmp eax, 0x805
jne 0x100cf036
mov eax, dword [ebx]
push ebx
call dword [eax + 0x4c]
push eax
call fcn.10130fe5
pop ecx
test eax, eax
je 0x100cefd6
lea eax, [ebp + 8]
push 0x2f9d
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov esi, eax
mov dword [ebp - 4], 0xa
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x4c]
push eax
push dword [esi]
push str._s_n_s
push dword [ebp + 0x18]
push edi
call fcn.1000de27
add esp, 0x14
jmp 0x100cee90
lea eax, [ebp + 0xc]
push 0x2f9b
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov esi, eax
mov dword [ebp - 4], 0xc
lea eax, [ebp + 8]
push 0x2f9d
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov byte [ebp - 4], 0xd
push dword [esi]
push dword [eax]
push str._s_n_s
push dword [ebp + 0x18]
push edi
call fcn.1000de27
add esp, 0x14
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.100078bc
jmp 0x100ceef4
cmp eax, 0xbc1
jne 0x100cf0f9
call fcn.10007945
push eax
lea ecx, [ebp + 8]
call fcn.10008bfd
mov dword [ebp - 4], 0x11
lea eax, [ebp + 0xc]
push 0x2ef0
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov byte [ebp - 4], 0x12
push 0x1019de30
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.10014838
add esp, 0xc
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.100078bc
push 0xa
push edi
call fcn.1012e97a
pop ecx
pop ecx
test eax, eax
je 0x100cf0aa
push eax
lea ecx, [ebp + 8]
call fcn.100461c5
jmp 0x100cf0e0
lea eax, [ebp + 0xc]
push 0x2ee7
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 8]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10022581
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0x18]
push edi
call fcn.10019f19
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
jmp 0x100ceefe
mov eax, dword [ebx]
push 0x10184394
push ebx
call dword [eax + 0x44]
push eax
call fcn.101311cd
pop ecx
pop ecx
test eax, eax
jne 0x100cf133
push dword [0x10248718]
push esi
push edi
call fcn.10019f19
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100cf27e
mov dword [eax], 1
jmp 0x100cf27e
push dword [0x102486e4]
jmp 0x100cf277
push dword [0x102486e8]
jmp 0x100cf277
cmp dword [ebp + 0xc], 0x810
jne case.default.0x100cee35
push dword [0x1024872c]
jmp 0x100cf277
test eax, eax
je 0x100cf16b
mov dword [eax], 1
push dword [0x102486f4]
jmp 0x100cf277
mov eax, dword [ebp + 0xc]
cmp eax, 0x7fd
je 0x100cf187
cmp eax, 0x7fe
jne 0x100cf1a4
mov eax, dword [ebx]
push ebx
call dword [eax + 0x64]
push eax
call fcn.10130fe5
pop ecx
test eax, eax
je 0x100cf1a4
mov eax, dword [ebx]
push ebx
call dword [eax + 0x64]
push eax
jmp 0x100cf277
cmp dword [ebp + 0x10], 7
jne 0x100cf1b5
push dword [0x102486f8]
jmp 0x100cf277
push dword [0x102486fc]
jmp 0x100cf277
push dword [0x102486ec]
jmp 0x100cf277
cmp dword [ebp + 0xc], 0x803
jne 0x100cf1e5
mov eax, dword [ebx]
push ebx
call dword [eax + 0x64]
push eax
call fcn.10130fe5
pop ecx
test eax, eax
jne case.0x100cee35.9
push dword [0x10248704]
jmp 0x100cf277
push dword [0x102486f8]
push esi
push edi
call fcn.10019f19
call fcn.10007945
push eax
lea ecx, [ebp - 0x14]
call fcn.10008bfd
mov dword [ebp - 4], 0x18
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
push str.importfile
push ebx
call dword [eax + 0x6c]
push eax
call fcn.100d538d
add esp, 0xc
test eax, eax
je 0x100cf25c
cmp dword [ebp + 0x1c], 0
push dword [ebp - 0x14]
je 0x100cf24c
push dword [ebp - 0x14]
push dword [0x1024870c]
push esi
push edi
call fcn.1000de27
add esp, 0x14
jmp 0x100cf25c
push dword [0x10248708]
push esi
push edi
call fcn.1000de27
add esp, 0x10
jmp 0x100cef5b
push dword [0x10248710]
jmp 0x100cf277
push dword [0x10248714]
jmp 0x100cf277
push dword [0x102486f0]
push esi
push edi
call fcn.10019f19
mov eax, dword [ebx]
push ebx
call dword [eax + 0x64]
mov ecx, eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x7e4
je 0x100cf2aa
cmp eax, 0x7e5
je 0x100cf2aa
cmp eax, 0x7eb
je 0x100cf2aa
add eax, 0xffffb1e0
cmp eax, 0x2710
ja 0x100cf2cb
xor eax, eax
cmp word [ecx], ax
je 0x100cf2cb
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100cf2be
mov dword [eax], 1
push ecx
push esi
push edi
call fcn.10019f19
jmp 0x100cef03
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10046087
mov dword [ebp - 4], 0x1a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100cf31e
cmp dword [ebp + 0x10], 1
je 0x100cf31e
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x100cf31e
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100cf31e
xor ecx, ecx
cmp word [eax], cx
je 0x100cf31e
push eax
push esi
push edi
call fcn.10019f19
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100cf31e
mov dword [eax], 1
cmp dword [ebp + 0xc], 0x7fd
jne 0x100cf361
mov eax, dword [ebx]
push ebx
call dword [eax + 0x34]
cmp eax, 0xa
jl 0x100cf341
mov eax, dword [ebx]
push ebx
call dword [eax + 0x34]
cmp eax, 0x1e
jl 0x100cf5d5
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push edi
mov eax, dword [edi]
call dword [eax + 0x18]
push eax
call fcn.100d478c
add esp, 0xc
test eax, eax
jne 0x100cf5d5
jmp 0x100cf364
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x84]
test eax, eax
jne 0x100cf5d5
mov eax, dword [ebx]
push ebx
call dword [eax + 0x8c]
test eax, eax
jne 0x100cf5d5
mov eax, dword [ebx]
push ebx
call dword [eax + 0x34]
cmp eax, 0xa
jl 0x100cf3a0
mov eax, dword [ebx]
push ebx
call dword [eax + 0x34]
cmp eax, 0x14
jl 0x100cf5d5
mov eax, dword [edi]
push edi
call dword [eax + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100cf5d5
mov eax, dword [edi]
push edi
call dword [eax + 0x18]
push eax
lea ecx, [ebp + 0x10]
call fcn.100088c7
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x10]
call fcn.1001f111
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
add ecx, 0x18
push eax
lea eax, [ebp + 0xc]
push eax
mov esi, dword [ecx]
call fcn.1003e932
cmp dword [eax], esi
jne 0x100cf5c6
mov eax, dword [edi]
push edi
call dword [eax + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x100cf5fe
push eax
lea ecx, [ebp + 0xc]
call fcn.100088c7
mov byte [ebp - 4], 0x21
lea ecx, [ebp + 0xc]
call fcn.1001f111
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [edi + 0x20]
call fcn.1003e932
mov esi, dword [ebp + 0x1c]
cmp esi, dword [edi + 0x20]
je 0x100cf5ef
mov eax, dword [ebx]
push ebx
call dword [eax + 0x3c]
cmp eax, 0xffffffff
je 0x100cf4ed
mov eax, dword [ebx]
push ebx
call dword [eax + 0x3c]
mov ebx, dword [ebp + 8]
and eax, 3
cmp al, 3
jne 0x100cf4f0
mov eax, dword [ebx]
push ebx
call dword [eax + 0x18]
push eax
call fcn.10113482
pop ecx
test eax, eax
je 0x100cf4f0
mov eax, dword [ebx]
push ebx
call dword [eax + 0x18]
push eax
mov ecx, edi
call fcn.100cf9f5
test eax, eax
jne 0x100cf5b7
call fcn.10007945
push eax
lea ecx, [ebp + 8]
call fcn.10008bfd
mov byte [ebp - 4], 0x2d
lea eax, [ebp + 0x1c]
push 0x2ef0
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov byte [ebp - 4], 0x2e
push dword [esi + 0x14]
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.10014838
add esp, 0xc
mov byte [ebp - 4], 0x2d
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.100078bc
push 0xa
push dword [ebp + 0x14]
call fcn.1012e97a
pop ecx
pop ecx
test eax, eax
je 0x100cf559
push eax
lea ecx, [ebp + 8]
call fcn.100461c5
jmp 0x100cf58f
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x18]
push eax
mov ecx, edi
call fcn.100cf9f5
test eax, eax
je 0x100cf484
push 3
push 0x1019de30
push dword [esi + 0x14]
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x100cf484
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100cf527
mov dword [eax], 1
lea eax, [ebp + 8]
push 0x2f0f
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov byte [ebp - 4], 0x26
push dword [eax]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10019f19
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
jmp 0x100cf5b2
lea eax, [ebp + 0x1c]
push 0x2ee7
push eax
call fcn.100856ec
mov ecx, eax
call fcn.100856f2
mov byte [ebp - 4], 0x30
lea ecx, [ebp + 8]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10022581
mov byte [ebp - 4], 0x2d
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10019f19
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100cf5ab
mov dword [eax], 1
mov byte [ebp - 4], 0x21
lea ecx, [esi - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.100078bc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100cef03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100cef03
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.100078bc
jmp 0x100cf5c6
xor eax, eax
call fcn.1012b643
ret 0x1c