Function at 0x570830
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
xor ebx, ebx
xor edi, edi
call fcn.0056a170
cmp eax, ebx
je 0x570a7b
cmp word [eax], bx
je 0x570a7b
push eax
lea edx, [esp + 0x47c]
push edx
call dword [0x5d2614]
add esp, 8
push 0x104
lea eax, [esp + 0x47c]
push eax
call sym.vidcap60.exe__SfAddSlashToPathName_8
cmp dword [esi + 0x24], 2
jne 0x5708cf
mov eax, dword [esi + 0x1094]
test al, 4
jne 0x5708cf
cmp dword [esi + 0x20], ebx
je 0x5708cf
lea ecx, [esp + 0x478]
push ecx
push esi
call sym.vidcap60.exe_public:_int___stdcall_CArchive2::IsEntryInArchive_unsigned_short_int_const__
test eax, eax
je 0x5708cf
lea edx, [esp + 0x478]
push edx
mov ecx, esi
call fcn.0056b220
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x570a9b
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 0x116
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
push edx
mov dword [esp + 0x24], 0xa034d55
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x478]
test eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jne 0x57092c
mov dword [esp + 0x58], ebx
jmp 0x570941
lea ecx, [esp + 0x478]
push ecx
call dword [0x5d2620]
add esp, 4
mov dword [esp + 0x58], eax
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x478]
mov dword [esp + 0x60], edx
push ecx
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x6c], eax
call dword [0x5d2614]
mov edx, dword [esi + 0x10]
add esp, 8
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push 0x458
lea ecx, [esp + 0x2c]
push ecx
push edx
mov word [esp + 0x284], bx
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
mov ebx, eax
test ebx, ebx
jl 0x570a4f
mov edx, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x2c]
push ecx
push edx
call edi
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
add edx, ecx
mov dword [esi + 0x18], edx
mov edx, dword [esi + 0x1c]
adc edx, 0
test eax, eax
mov dword [esi + 0x1c], edx
je 0x570a5a
push 0x104
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x688]
push eax
call dword [0x5d2618]
lea ecx, [esp + 0x68c]
add esp, 0xc
test ecx, ecx
mov word [esp + 0x886], 0
je 0x570a0c
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
mov ecx, dword [esp + 0x58]
push 0
lea eax, [esp + 0x14]
push eax
lea edx, [ecx + ecx]
mov ecx, dword [esi + 0xc]
push edx
lea eax, [esp + 0x68c]
push eax
push ecx
call edi
test eax, eax
je 0x570a5a
mov edi, dword [esi + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x10ac]
add edi, edx
adc ecx, 0
inc eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x10ac], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push str.AddDirectory
push 0xaaaaaaa9
mov ecx, esi
call fcn.0056a380
mov eax, 0x8004e009
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push str.AddDirectory
push 0xaaaaaaa0
mov ecx, esi
call fcn.0056a380
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8