Function at 0x56c1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xce8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor eax, eax
mov ecx, 0x19b
lea edi, [esp + 0x688]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
mov word [esp + 0x6dc], bx
mov word [esp + 0x8e4], bx
mov word [esp + 0xaec], bx
je 0x56c267
mov ecx, esi
call fcn.0056c140
push 0x104
mov edi, eax
lea eax, [esp + 0x484]
push str.Entries
push eax
mov ebp, edx
call dword [0x5d2618]
lea ecx, [esp + 0x48c]
add esp, 0xc
test ecx, ecx
mov word [esp + 0x686], bx
je 0x56c248
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
push ebp
push edi
lea edx, [esp + 0x488]
push edx
call dword [eax + 4]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
push 0xaaaaaa7
call dword [eax + 0xc]
lea ecx, [esp + 0x688]
push ecx
mov ecx, esi
call fcn.0056a6c0
mov edi, eax
cmp edi, ebx
jne 0x56c4ee
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x6dc]
push edx
mov ecx, esi
call fcn.0056c0e0
test eax, eax
jne 0x56c4d5
mov edx, dword [esp + 0x6cc]
mov ecx, 0x116
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x694]
mov ecx, dword [esp + 0x698]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6b4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x6b8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6b0]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x69c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x6ac]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6bc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x6a8]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x6a0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x6a4]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x6dc]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x30], 0xa034d55
mov dword [esp + 0x38], ebx
mov dword [esp + 0x74], edx
call dword [0x5d2614]
mov ecx, dword [esi + 0xc]
add esp, 8
push ebx
lea edx, [esp + 0x18]
push edx
push 0x40
lea eax, [esp + 0x34]
push eax
push ecx
mov word [esp + 0x28c], bx
call ebp
mov edx, dword [esp + 0x14]
mov edi, dword [esi + 0x18]
add edi, edx
mov edx, dword [esi + 0x1c]
adc edx, ebx
cmp eax, ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
je 0x56c4d5
push 0x104
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x488]
push ecx
call dword [0x5d2618]
lea edx, [esp + 0x48c]
add esp, 0xc
test edx, edx
mov word [esp + 0x686], bx
je 0x56c3d8
mov eax, edx
push eax
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x60]
push ebx
lea ecx, [esp + 0x18]
push ecx
lea eax, [edx + edx]
mov edx, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x48c]
push ecx
push edx
call ebp
cmp eax, ebx
je 0x56c4d5
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x6bc]
mov ebp, dword [esp + 0x6d8]
add ecx, eax
mov eax, dword [esi + 0x1c]
adc eax, ebx
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x6c0]
add edx, edx
mov dword [esi + 0x1c], eax
lea eax, [ecx + ecx]
xor ecx, ecx
xor edi, edi
add eax, edx
mov edx, dword [esp + 0x6d4]
adc ecx, edi
mov edi, dword [esi + 0x10a4]
add eax, edx
mov edx, dword [esp + 0x6ac]
adc ecx, ebp
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6b0]
add eax, 0x40
adc ecx, ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x10a0]
mov ebx, edx
add ebx, ebp
mov ebp, edi
adc ebp, dword [esi + 0x1c]
add edx, eax
mov eax, dword [esi + 8]
push ebp
push ebx
mov ebx, dword [esi + 0xc]
push ebx
mov ebx, dword [esp + 0x6bc]
push ebx
mov ebx, dword [esp + 0x6bc]
push ebx
adc edi, ecx
push edi
push edx
push eax
mov ecx, esi
call fcn.0056abe0
test eax, eax
jl 0x56c4d3
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x1c]
add edx, ecx
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x1c]
adc eax, edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push 0x458
lea ecx, [esp + 0x34]
push ecx
push edx
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
inc dword [esi + 0x10ac]
xor ebx, ebx
lea eax, [esp + 0x688]
push eax
mov ecx, esi
call fcn.0056a780
mov edi, eax
cmp edi, ebx
je 0x56c280
mov esi, dword [esi + 0x20]
cmp esi, ebx
je 0x56c501
mov edx, dword [esi]
push 0xaaaaaaf
mov ecx, esi
call dword [edx + 0xc]
xor eax, eax
cmp edi, ebx
setge al
dec eax
and eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret