Function at 0x56e370
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x630
push ebx
push ebp
push esi
mov esi, dword [esp + 0x640]
cmp dword [esi + 0x10a8], 1
push edi
jle 0x56e748
push esi
call sym.vidcap60.exe_public:_long_int___stdcall_CArchive2::IsSpaceForMerge_void_
test eax, eax
jne 0x56e721
mov eax, dword [esi + 0x20]
test eax, eax
je 0x56e417
push 0x104
lea eax, [esi + 0xc80]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [0x5d2618]
lea edx, [esp + 0x34]
add esp, 0xc
test edx, edx
mov word [esp + 0x22e], 0
je 0x56e3db
mov eax, edx
push eax
call dword [0x5d2620]
add esp, 4
mov ecx, dword [esp + 0x648]
not ecx
test cl, 1
mov ecx, dword [esi + 0x20]
je 0x56e400
mov eax, dword [esi + 0x50]
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x4c]
push eax
lea eax, [esp + 0x30]
push eax
call dword [edx + 4]
jmp 0x56e40a
lea eax, [esp + 0x28]
push eax
call fcn.00597b50
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
push 0xaaaaaa7
call dword [edx + 0xc]
mov ecx, dword [esi + 0x10a4]
mov eax, dword [esi + 0x10a0]
mov edx, dword [esi + 0xc]
push ecx
push eax
push edx
mov edx, dword [esi + 0x50]
push edx
mov edx, dword [esi + 0x4c]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
mov ecx, esi
call fcn.0056abe0
mov edi, eax
test edi, edi
jl 0x56e760
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x56e467
mov edx, dword [esp + 0x648]
not edx
test dl, 1
je 0x56e467
mov eax, dword [ecx]
push 0xaaaaaaf
call dword [eax + 0xc]
mov ebx, dword [esi + 0x4c]
mov ebp, dword [esi + 0x50]
mov ecx, dword [esi + 0x10a8]
lea eax, [esi + 0x868]
push eax
lea edx, [esp + 0x43c]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
call dword [0x5d2614]
mov ecx, dword [esp + 0x20]
mov eax, 2
add esp, 8
cmp ecx, eax
mov dword [esp + 0x1c], eax
jb 0x56e602
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x440]
push edx
mov ecx, esi
call fcn.0056a300
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x56e6fa
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [esp + 0x20], ebx
je 0x56e57f
push 0x104
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x30]
push eax
call dword [0x5d2618]
lea ecx, [esp + 0x34]
add esp, 0xc
test ecx, ecx
mov word [esp + 0x22e], 0
je 0x56e546
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
mov eax, dword [esp + 0x648]
mov ecx, dword [esi + 0x20]
not eax
test al, 1
je 0x56e568
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
call dword [edx + 4]
jmp 0x56e572
lea eax, [esp + 0x28]
push eax
call fcn.00597b50
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
push 0xaaaaaa7
call dword [edx + 0xc]
mov eax, dword [esi + 0x10a0]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
add eax, ecx
mov ecx, dword [esi + 0x10a4]
adc ecx, edi
push ecx
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebx
push 0
push 0
push ebp
mov ecx, esi
call fcn.0056abe0
mov edi, eax
test edi, edi
jl 0x56e5de
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x56e5c6
mov edx, dword [ecx]
push 0xaaaaaaf
call dword [edx + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add edx, ebx
adc ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x56e4b0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
jl 0x56e760
mov eax, dword [esi + 0x10a0]
mov ecx, dword [esi + 0x10a4]
mov edx, eax
add edx, ebx
mov edi, ecx
adc edi, ebp
push edi
push edx
mov edx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0x48]
push edx
mov edx, dword [esi + 0x44]
push edx
mov edx, dword [esi + 0x4c]
add edx, eax
mov eax, dword [esi + 0x50]
adc eax, ecx
mov ecx, dword [esi + 8]
push eax
push edx
push ecx
mov ecx, esi
call fcn.0056abe0
mov edi, eax
test edi, edi
jl 0x56e760
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov edx, ebx
add edx, edi
mov eax, ebp
adc eax, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x58]
test eax, eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x10a8], 1
jg 0x56e68a
jl 0x56e681
mov eax, dword [esi + 0x54]
test eax, eax
ja 0x56e68a
mov word [esi + 0x868], 0
push ebp
push ebx
mov ecx, esi
call fcn.0056c520
mov edi, eax
test edi, edi
jl 0x56e760
mov ebp, dword [esp + 0x18]
mov ebx, 2
cmp ebp, ebx
mov dword [esi + 0x10b8], 1
jb 0x56e760
jmp 0x56e6c0
lea ecx, [esp + 0x230]
push ecx
push ebx
lea edx, [esp + 0x440]
push edx
mov ecx, esi
call fcn.0056a300
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, ebp
jbe 0x56e6c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x630
ret 8
push 0
push str.MergeArchive
push 0xaaaaaaa4
mov ecx, esi
call fcn.0056a380
mov edi, 0x8004e006
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x630
ret 8
push 0
push str.MergeArchive
push 0xaaaaaaa8
mov ecx, esi
call fcn.0056a380
mov edi, 0x8004e0c8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x630
ret 8
push 0
push str.MergeArchive
push 0xaaaaaab0
mov ecx, esi
call fcn.0056a380
mov edi, 0x80004005
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x630
ret 8