Function at 0x5baf2bf9
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x538
mov eax, dword [0x5bb70c3c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x538], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x528], eax
mov ebx, 0x208
xor edi, edi
push ebx
lea eax, [ebp - 0x514]
push eax
mov dword [ebp - 0x518], edi
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x524], edi
call fcn.5ba6aead
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
push 0x5baf2950
lea eax, [ebp - 0x518]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x528]
call fcn.5baf27e5
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
cmp dword [ebp - 0x528], edi
jne 0x5baf2dcd
test byte [ebp + 0xc], 4
je 0x5baf2dcd
mov eax, dword [0x5bb73870]
mov ecx, dword [eax]
lea edx, [ebp - 0x520]
push edx
push edi
push eax
call dword [ecx + 0x34]
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
mov eax, dword [ebp - 0x520]
add dword [ebp - 0x518], eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x5ba4cc94
push 0x5ba4cba8
lea eax, [ebp - 0x514]
push eax
call fcn.5ba572e2
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x5baf2d41
mov eax, dword [0x5bb73898]
mov ecx, dword [eax]
lea edx, [ebp - 0x51c]
push edx
push edi
push 0x5ba50ec4
push edi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
lea edx, [ebp - 0x520]
push edx
push edi
push eax
call dword [ecx + 0x34]
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
mov eax, dword [ebp - 0x520]
add dword [ebp - 0x518], eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x5ba4cc94
push 0x5ba4cbb8
lea eax, [ebp - 0x514]
push eax
call fcn.5ba572e2
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x5baf2dcd
mov eax, dword [0x5bb73898]
mov ecx, dword [eax]
lea edx, [ebp - 0x524]
push edx
push edi
push 0x5ba51000
push edi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
mov eax, dword [ebp - 0x524]
mov ecx, dword [eax]
lea edx, [ebp - 0x520]
push edx
push edi
push eax
call dword [ecx + 0x34]
mov esi, eax
cmp esi, edi
jl 0x5baf2ee8
mov eax, dword [ebp - 0x520]
add dword [ebp - 0x518], eax
push 0x34
call fcn.5ba5615b
cmp eax, edi
pop ecx
je 0x5baf2de4
mov ecx, eax
call fcn.5bacda67
mov ebx, eax
jmp 0x5baf2de6
xor ebx, ebx
cmp ebx, edi
jne 0x5baf2df4
mov esi, 0x8007000e
jmp 0x5baf2ee8
push 0xff
lea eax, [ebp - 0x30c]
push eax
push 0x1292
call fcn.5ba56439
mov esi, dword [ebp - 0x538]
push edi
push 1
push 7
push dword [ebp - 0x518]
lea eax, [ebp - 0x30c]
push edi
push eax
push esi
mov ecx, ebx
call fcn.5bacdb50
push edi
mov ecx, ebx
call fcn.5baccde9
mov eax, dword [ebp + 0xc]
and al, 0x10
xor ecx, ecx
push 0x5baf2ab0
cmp al, 0x10
lea eax, [ebp - 0x534]
push eax
setne cl
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x534], esi
push dword [ebp - 0x528]
mov dword [ebp - 0x52c], ebx
mov dword [ebp - 0x530], ecx
call fcn.5baf27e5
mov esi, eax
cmp esi, edi
jl 0x5baf2ee2
cmp dword [ebp - 0x528], edi
jne 0x5baf2ee2
test byte [ebp + 0xc], 4
je 0x5baf2ee2
push 0x1989
push dword [ebp - 0x51c]
lea eax, [ebp - 0x534]
push 0x5ba4cba8
push eax
call fcn.5baf2b55
mov esi, eax
cmp esi, edi
jl 0x5baf2ee2
push 0x198a
push dword [ebp - 0x524]
lea eax, [ebp - 0x534]
push 0x5ba4cbb8
push eax
call fcn.5baf2b55
mov esi, eax
cmp esi, edi
jl 0x5baf2ee2
push 0x198b
push dword [0x5bb73870]
lea eax, [ebp - 0x534]
push 0x5ba4cb9c
push eax
call fcn.5baf2b55
mov esi, eax
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x51c]
cmp eax, edi
je 0x5baf2efe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x51c], edi
mov eax, dword [ebp - 0x524]
cmp eax, edi
je 0x5baf2f0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
sub eax, 0x8004100a
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0xc