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

Disassembly:
push 0xffffffffffffffff
push 0x100717f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0xc
call fcn.1003bfe0
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x120], ebx
je 0x1002c69a
mov edi, dword [esp + 0x12c]
mov dword [esi + 4], ebx
push edi
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi], eax
jne 0x1002c69c
cmp edi, ebx
je 0x1002c69c
push 0x8007000e
call fcn.1006e336
jmp 0x1002c69c
xor esi, esi
or edi, 0xffffffff
cmp esi, ebx
mov dword [esp + 0x120], edi
mov dword [esp + 0x10], esi
jne 0x1002c6b8
push 0x8007000e
call fcn.1006e336
cmp esi, ebx
mov dword [esp + 0x120], 1
je 0x1002c70f
mov eax, dword [esi]
cmp eax, ebx
je 0x1002c6e8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 0xc8
jb 0x1002c6e8
lea eax, [esi + 8]
mov dword [esp + 0x120], edi
push eax
jmp 0x1002c731
cmp dword [esi + 4], ebx
jne 0x1002c70a
mov ecx, dword [esi]
push ecx
call fcn.1006e458
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x1002c70a
cmp dword [esi], ebx
je 0x1002c70a
push 0x8007000e
call fcn.1006e336
mov eax, dword [esi + 4]
jmp 0x1002c711
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebp
cmp eax, edi
jne 0x1002c74d
cmp esi, ebx
mov dword [esp + 0x120], edi
je 0x1002c866
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1002c866
push 1
mov ecx, esi
call fcn.10022260
jmp 0x1002c866
cmp esi, ebx
je 0x1002c778
cmp dword [esi + 4], ebx
jne 0x1002c773
mov eax, dword [esi]
push eax
call fcn.1006e458
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x1002c773
cmp dword [esi], ebx
je 0x1002c773
push 0x8007000e
call fcn.1006e336
mov eax, dword [esi + 4]
jmp 0x1002c77a
xor eax, eax
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x18]
push str._s_video_ts.ifo
push ecx
call edi
mov ebx, dword [sym.imp.MSVCRT.dll__fullpath]
lea edx, [esp + 0x20]
push 0x104
lea eax, [esp + 0x24]
push edx
push eax
call ebx
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x1002c7ba
and eax, 0x10
cmp al, 0x10
jne 0x1002c81e
test esi, esi
je 0x1002c7e8
mov eax, dword [esi + 4]
test eax, eax
jne 0x1002c7e3
mov edx, dword [esi]
push edx
call fcn.1006e458
test eax, eax
mov dword [esi + 4], eax
jne 0x1002c7e3
cmp dword [esi], 0
je 0x1002c7e3
push 0x8007000e
call fcn.1006e336
mov eax, dword [esi + 4]
jmp 0x1002c7ea
xor eax, eax
push eax
lea eax, [esp + 0x18]
push str._sVIDEO_TS_video_ts.ifo
push eax
call edi
lea ecx, [esp + 0x20]
push 0x104
lea edx, [esp + 0x24]
push ecx
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 0xffffffff
je 0x1002c844
and eax, 0x10
cmp al, 0x10
je 0x1002c844
test esi, esi
je 0x1002c840
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1002c840
mov ecx, esi
call fcn.1000f350
push esi
call fcn.1003c010
add esp, 4
xor eax, eax
jmp 0x1002c86b
test esi, esi
je 0x1002c866
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1002c866
mov ecx, esi
call fcn.1000f350
push esi
call fcn.1003c010
add esp, 4
mov eax, 0x80004005
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8