Function at 0x56f870
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x424
push ebx
push esi
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [0x5d2614]
add esp, 8
push 0x104
lea edx, [esp + 0x24]
push edx
call sym.vidcap60.exe__SfAddSlashToPathName_8
test byte [esi + 0x1090], 1
je 0x56f8c4
mov edi, dword [esp + 0x434]
lea eax, [edi + 0x54]
push eax
call sym.vidcap60.exe__SfGetFileNamePtrW_4
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [0x5d24cc]
jmp 0x56f8e1
mov edx, dword [esp + 0x434]
add edx, 0x54
push edx
lea eax, [esp + 0x24]
push eax
call dword [0x5d24cc]
mov edi, dword [esp + 0x43c]
mov eax, dword [esi + 0x1090]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 8
test al, 4
jne 0x56f936
lea ecx, [esp + 0x20]
push ecx
call sym.vidcap60.exe__SfDoesFileExist_4
test eax, eax
je 0x56f936
mov eax, dword [esi + 0x20]
test eax, eax
je 0x56f936
lea edx, [esp + 0x20]
push edx
call ebx
test al, 1
je 0x56f922
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0056b370
jmp 0x56f92e
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0056b220
test eax, eax
jne 0x56facc
lea edx, [esp + 0x20]
push edx
call sym.vidcap60.exe__SfDoesFileExist_4
test eax, eax
je 0x56f954
push 0x80
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x104
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x28]
push edx
call sym.vidcap60.exe__SfGetPathNameFromFilePath_12
lea eax, [esp + 0x228]
push eax
call ebx
cmp eax, 0xffffffff
je 0x56f97e
test al, 0x10
jne 0x56f98d
push 0
lea ecx, [esp + 0x22c]
push ecx
call sym.vidcap60.exe__SfCreateDirectory_8
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x34]
xor eax, eax
shl ecx, 1
shl edx, 1
xor ebx, ebx
add edx, ecx
mov ecx, dword [edi + 0x50]
adc eax, ebx
add edx, dword [edi + 0x4c]
adc eax, ecx
add edx, 0x40
adc eax, 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x14], 1
call fcn.0056f6a0
mov edi, eax
test edi, edi
je 0x56f9d9
cmp edi, 0xffffffff
jne 0x56fa05
mov eax, dword [esp + 0xc]
cmp eax, 1
jle 0x56fa09
push eax
push str.ExtractCentralDirectoryFile
push 0xaaaaaaad
mov ecx, esi
call fcn.0056a440
pop edi
pop esi
mov eax, 0x8004e00d
pop ebx
add esp, 0x424
ret 8
mov eax, dword [esp + 0xc]
test edi, edi
push ebp
jne 0x56fa3a
cmp eax, 1
jne 0x56fa3a
mov edx, dword [esp + 0x14]
mov ebx, dword [esi + 0x4c]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esi + 0x50]
mov eax, dword [esi + 0x10a0]
mov edi, dword [esi + 8]
sub ebx, edx
sbb ebp, ecx
add edx, eax
mov eax, dword [esi + 0x10a4]
adc ecx, eax
jmp 0x56fa58
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub eax, edx
sbb ebp, ecx
mov ebx, eax
mov eax, ecx
push 0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x438]
mov ecx, dword [eax + 0xc]
sub ecx, 0
je 0x56faa0
dec ecx
je 0x56fa89
mov esi, 0x80004001
jmp 0x56fab7
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x18]
push ebp
push ebx
push eax
push edi
mov ecx, esi
call fcn.0056f0e0
jmp 0x56fab5
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push eax
push ebp
push ebx
push edx
push edi
mov ecx, esi
call fcn.0056ecb0
mov esi, eax
test edi, edi
pop ebp
je 0x56faca
cmp dword [esp + 0xc], 1
jle 0x56faca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x424
ret 8