Function at 0x57e7c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
mov eax, dword [esp + 0x208]
mov edx, dword [esp + 0x218]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x210]
push edi
mov dword [esi], 0x7dce60
mov dword [esi + 0xc], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0x1c]
xor edi, edi
cmp eax, 1
mov dword [esi + 0x10], edi
mov dword [ebx], edi
mov dword [esi + 0x14], edi
jne 0x57ea75
call sub.AVIFIL32.dll_AVIFileInit
xor ebp, ebp
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x218]
push eax
push str._s_d.AVI
push ecx
inc ebp
call fcn.0078cdc6
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0078ff68
add esp, 0x18
cmp eax, 0xffffffff
jne 0x57e810
push edi
lea eax, [esp + 0x14]
push 0x1001
push eax
lea eax, [esi + 0x14]
push eax
call sub.AVIFIL32.dll_AVIFileOpenA
test eax, eax
je 0x57e8c2
mov ecx, dword [esi + 4]
lea edx, [esp + 0x110]
push ecx
push str.Unable_to_open__s_n
push edx
call fcn.0078cdc6
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x57e8a4
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 0x18]
push ecx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], edi
mov eax, dword [ebx]
cmp eax, edi
je 0x57e8b2
push eax
call sub.AVIFIL32.dll_AVIStreamRelease
mov dword [ebx], edi
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x57ea45
jmp 0x57ea3c
fld dword [esi + 8]
mov dword [esi + 0x20], 0x73646976
mov dword [esi + 0x24], 0x4356534d
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov word [esi + 0x30], di
mov word [esi + 0x32], di
mov dword [esi + 0x34], 1
call fcn.0078c320
mov ebp, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
push ebp
mov dword [esi + 0x38], eax
push edx
push edi
lea eax, [esi + 0x54]
push edi
push eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esi + 0x6c]
push 0x80018c
push ecx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
call fcn.0078cdc6
mov edx, dword [esi + 0x14]
add esp, 8
lea eax, [esi + 0x20]
push eax
push ebx
push edx
call sub.AVIFIL32.dll_AVIFileCreateStreamA
test eax, eax
je 0x57e97d
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x57e96e
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 0x18]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], edi
mov eax, dword [ebx]
cmp eax, edi
je 0x57e8b2
jmp 0x57e8aa
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x21c]
mov word [esi + 0xba], ax
and eax, 0xffff
imul eax, ecx
add eax, 0x1f
mov dword [esi + 0xb0], ecx
shr eax, 3
and eax, 0x1ffffffc
mov ecx, 1
imul eax, ebp
mov dword [esi + 0xc0], eax
lea eax, [esi + 0xac]
mov word [esi + 0xb8], cx
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xc8], ecx
mov ecx, dword [ebx]
push 0x28
push eax
push edi
push ecx
mov dword [esi + 0xb4], ebp
mov dword [eax], 0x28
mov dword [esi + 0xbc], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
call sub.AVIFIL32.dll_AVIStreamSetFormat
test eax, eax
je 0x57ea5c
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x57ea27
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi + 0x18]
push edx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], edi
mov eax, dword [ebx]
cmp eax, edi
je 0x57ea35
push eax
call sub.AVIFIL32.dll_AVIStreamRelease
mov dword [ebx], edi
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x57ea45
push eax
call sub.AVIFIL32.dll_AVIFileRelease
mov dword [esi + 0x14], edi
call sub.AVIFIL32.dll_AVIFileExit
mov dword [esi + 0xc], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 0x18
mov eax, dword [esi + 0xc0]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 0x18