Function at 0x4694d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1df8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x469514
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x469544
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, esi
mov byte [ebp - 4], 1
mov byte [ebp - 0xd], 0
call fcn.004683d0
test al, al
je 0x4696bd
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x23638]
push edi
push ecx
lea edx, [ebp - 0x18]
push str._s_04x.lpp
push edx
call fcn.004065c0
add esp, 0x10
push str.playbill.lpp
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00467c30
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406510
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4695c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push ecx
push edx
call fcn.00480470
add esp, 0xc
test eax, eax
je 0x4695e0
mov byte [ebp - 0xd], 1
mov eax, dword [esi + 0x23638]
push edi
push eax
lea ecx, [ebp - 0x18]
push str._s_04x.rsf
push ecx
call fcn.004065c0
add esp, 0x10
push str.playbill.rsf
lea edx, [ebp + 8]
push edx
mov ecx, esi
call fcn.00467c30
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406510
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469639
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4696ae
mov edx, dword [esi + 0x23638]
push edi
push edx
lea eax, [ebp - 0x18]
push str._s_04x.lpt
push eax
call fcn.004065c0
add esp, 0x10
push str.playbill.lpt
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call fcn.00467c30
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00406510
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4696a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4696bd
mov ecx, dword [ebp - 0x14]
push 0
push ecx
push ebx
call fcn.00480470
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4696e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469703
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4