Function at 0x457ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51537a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1005c
call fcn.004ea520
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0x10058], eax
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x10070]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, ebx
mov dword [esp + 0x24], ebx
mov dword [ebx + 0x298], 1
call fcn.0044b380
xor edi, edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], edi
call fcn.004d1d66
mov dword [esp + 0x10078], edi
call fcn.004c2ca4
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x457d2c
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
push 0x2c
lea eax, [ebx + 0x8a8]
push edi
push eax
mov byte [esp + 0x10084], 1
mov dword [esp + 0x4c], eax
call fcn.004e9730
add esp, 0xc
push 8
call fcn.004c1f9b
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
cmp esi, edi
mov byte [esp + 0x10078], 2
je 0x457d94
mov edi, dword [ebx + 0x80]
mov eax, dword [ebx + 0x7c]
push 8
call fcn.0047c350
mov dword [esi], vtable.CJpegEncoder.0
mov dword [esp + 0x2c], esi
xor edi, edi
jmp 0x457d98
mov dword [esp + 0x2c], edi
push 0x448
mov byte [esp + 0x1007c], 1
call fcn.004c1f9b
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
cmp esi, edi
mov byte [esp + 0x10078], 3
je 0x457ddb
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x7c]
push eax
push ecx
call fcn.0047be90
mov dword [esi], vtable.CMpeg4Decoder.0
mov dword [esp + 0x18], esi
jmp 0x457ddf
mov dword [esp + 0x18], edi
push 0x2c
mov byte [esp + 0x1007c], 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.004c1f9b
mov esi, eax
add esp, 4
cmp esi, edi
je 0x457e0d
push 0x2c
push edi
push esi
call fcn.004e9730
add esp, 0xc
jmp 0x457e0f
xor esi, esi
push 0x2c
mov dword [ebx + 0x8d4], esi
lea esi, [ebx + 0x87c]
push edi
push esi
mov dword [esp + 0x40], esi
call fcn.004e9730
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x7c]
add esp, 0xc
push ecx
push edx
push 4
mov ebx, esi
call fcn.0047bb60
add esp, 0xc
call fcn.0046cd40
mov ebx, dword [esp + 0x24]
mov edx, dword [ebx + 0x7c]
push ebx
lea ecx, [ebx + 0xa0]
push ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x80]
push ecx
push edx
mov dword [esp + 0x48], eax
call fcn.0046d8f0
test byte [ebx + 0x29c], 2
mov dword [esp + 0x30], 0
jne 0x45848f
mov eax, dword [ebx + 0x29c]
test al, 8
je 0x457f9a
mov edx, dword [ebx + 0x7c]
imul edx, dword [ebx + 0x80]
mov ecx, dword [esp + 0x2c]
push 0
push edx
and eax, 0xfffffff7
lea edx, [esp + 0x6c]
mov dword [ebx + 0x29c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x2c]
push edx
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x529b37
mov edi, eax
call fcn.0041aa20
lea ecx, [esp + 0x2c]
push ecx
push ebx
call fcn.0044a8b0
mov byte [esp + 0x10078], 4
mov edx, dword [esp + 0x28]
push 0x53d840
push edx
call fcn.004e4a56
mov esi, eax
add esp, 8
test esi, esi
je 0x457f0e
push esi
push edi
lea eax, [esp + 0x6c]
push 1
push eax
call fcn.004e4b83
push esi
call fcn.004e4c83
add esp, 0x14
mov edi, dword [0x5737f4]
call fcn.00477c20
mov ecx, dword [edi + 0x7c]
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x20], eax
je 0x457f72
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x54], esp
mov esi, esp
push eax
call fcn.00405250
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x10080], 5
mov eax, dword [edi + 0x7c]
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00405250
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x2c]
add esp, 4
mov byte [esp + 0x10080], 4
call fcn.00477f50
mov byte [esp + 0x10078], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x29c]
test al, 0x40
je 0x458034
and eax, 0xffffffbf
cmp byte [ebx + 0x294], 0
mov dword [ebx + 0x29c], eax
je 0x457fea
mov esi, dword [esp + 0x14]
test esi, esi
je 0x457fe3
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, esi
call fcn.0047c6e0
push esi
call fcn.004c1fcb
add esp, 4
mov dword [esp + 0x14], 0
mov byte [ebx + 0x294], 0
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov edx, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebx + 4]
push ecx
push 0
push 0x1323
push edx
call esi
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push ebx
xor edi, edi
push edi
push 0x415
push ecx
call esi
jmp 0x45803c
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
mov eax, dword [ebx + 0x29c]
test al, 0x10
je 0x4581af
and eax, 0xffffffef
cmp byte [ebx + 0x294], 0
mov dword [ebx + 0x29c], eax
jne 0x458170
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x458081
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, esi
call fcn.0047c6e0
push esi
call fcn.004c1fcb
add esp, 4
push 0x18
call fcn.004c1f9b
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, edi
mov byte [esp + 0x10078], 6
je 0x4580c1
mov dword [esi], vtable.CMuxer.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 0x19
mov dword [esi + 0x14], 1
call fcn.00497360
jmp 0x4580c3
xor esi, esi
mov ecx, dword [esp + 0x18]
push edi
add ecx, 8
push ecx
push ecx
mov byte [esp + 0x10084], 1
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x529b37
mov dword [esp + 0x24], esi
call fcn.0041aa20
push ebx
lea ecx, [esp + 0x5c]
call fcn.0044a2c0
mov edi, eax
mov byte [esp + 0x10080], 7
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x458113
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00405430
mov edi, dword [edi]
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.0041aa20
mov edi, esi
call fcn.0047c550
mov byte [esp + 0x10078], 1
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458151
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esp + 0x30], 0
mov byte [ebx + 0x294], 1
xor edi, edi
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov edx, dword [eax + 0x20]
lea ecx, [ebx + 4]
push ecx
push edi
push 0x1323
push edx
call esi
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push ebx
push edi
push 0x415
push ecx
call esi
mov eax, dword [ebx + 0x29c]
test al, al
jns 0x458240
and eax, 0xffffff7f
cmp byte [ebx + 0x295], 0
mov dword [ebx + 0x29c], eax
je 0x458201
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x4581fa
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x10]
call fcn.0047c6e0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004c1fcb
add esp, 4
mov dword [esp + 0x10], edi
mov byte [ebx + 0x295], 0
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov edx, dword [eax + 0x20]
lea ecx, [ebx + 4]
push ecx
push edi
push 0x1323
push edx
call esi
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push ebx
push edi
push 0x415
push ecx
call esi
mov eax, dword [ebx + 0x29c]
test al, 0x20
je 0x458391
and eax, 0xffffffdf
cmp byte [ebx + 0x295], 0
mov dword [ebx + 0x29c], eax
jne 0x458352
cmp dword [esp + 0x10], edi
jne 0x45834b
push 0x18
call fcn.004c1f9b
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, edi
mov byte [esp + 0x10078], 8
je 0x4582ae
mov dword [esi], vtable.CMuxer.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 0x19
mov dword [esi + 0x14], 1
call fcn.00497360
mov edi, esi
mov edx, dword [esp + 0x18]
push 0
add edx, 8
push edx
push ecx
mov byte [esp + 0x10084], 1
mov ecx, esp
mov dword [esp + 0x28], esp
push str.alarm_
mov dword [esp + 0x20], edi
call fcn.0041aa20
push ebx
lea ecx, [esp + 0x58]
call fcn.0044a2c0
mov esi, eax
mov byte [esp + 0x10080], 9
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x4582ff
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00405430
mov esi, dword [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.0041aa20
call fcn.0047c550
mov byte [esp + 0x10078], 1
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45833b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
mov byte [ebx + 0x295], 1
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov edx, dword [eax + 0x20]
lea ecx, [ebx + 4]
push ecx
push edi
push 0x1323
push edx
call esi
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push ebx
push edi
push 0x415
push ecx
call esi
mov eax, dword [ebx + 0x900]
lea edx, [esp + 0x64]
push edx
push eax
call fcn.00458900
mov esi, eax
add esp, 8
cmp esi, edi
je 0x458496
cmp byte [ebx + 0x294], 0
je 0x4583e2
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push esi
lea eax, [esp + 0x68]
push eax
call edx
mov eax, dword [esp + 0x30]
add eax, 1
cmp eax, 0x15f90
mov dword [esp + 0x30], eax
jb 0x4583e2
or dword [ebx + 0x29c], 0x50
cmp byte [ebx + 0x295], 0
je 0x4583fc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push esi
lea edx, [esp + 0x68]
push edx
call eax
mov edi, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx]
lea eax, [esp + 0x64]
push eax
mov ecx, edi
call edx
test eax, eax
mov dword [esp + 0x20], eax
je 0x45849a
mov edx, dword [eax]
mov ecx, dword [esp + 0x40]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 0x8ac], edx
mov edx, dword [eax + 8]
mov dword [ebx + 0x8b0], edx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x8b8], edx
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x8bc], edx
mov eax, dword [eax + 0x18]
mov edx, dword [ebx + 0x7c]
mov dword [ebx + 0x8cc], edx
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0x8c0], eax
mov eax, dword [ebx + 0x80]
push edx
mov dword [ebx + 0x8c8], 1
mov dword [ebx + 0x8d0], eax
mov ebx, dword [esp + 0x3c]
push ecx
call fcn.0046dcb0
mov eax, dword [esp + 0x24]
test byte [eax + 0x29c], 2
mov ebx, eax
je 0x457e80
and dword [ebx + 0x29c], 0xfffffffd
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x900]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x40]
push 0x2c
push 0
push edx
mov dword [ebx + 0x900], 0xffffffff
call fcn.004e9730
mov esi, dword [esp + 0x20]
add esp, 0xc
test esi, esi
mov byte [ebx + 0x294], 0
je 0x4584ea
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, esi
call fcn.0047c6e0
push esi
call fcn.004c1fcb
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
mov byte [ebx + 0x295], 0
je 0x458512
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, esi
call fcn.0047c6e0
push esi
call fcn.004c1fcb
add esp, 4
test edi, edi
je 0x45852d
lea esi, [edi + 8]
mov dword [edi], vtable.CVideoDecoder.0
call fcn.0047d9a0
push edi
call fcn.004c1fcb
add esp, 4
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x458563
mov esi, dword [edi + 4]
test esi, esi
mov dword [edi], vtable.CVideoEncoder.0
je 0x45855a
call fcn.0047d9a0
mov eax, dword [edi + 4]
push eax
call fcn.004e0dcf
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.004c1fcb
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
test eax, eax
je 0x45857c
movzx edx, byte [eax - 1]
sub eax, edx
push eax
call fcn.004e0dcf
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x45858f
mov ecx, dword [esp + 0x3c]
push ecx
push eax
call fcn.0046da00
xor eax, eax
mov esi, ebx
mov dword [ebx + 0x29c], eax
mov dword [ebx + 0x298], eax
call fcn.0044b380
mov byte [esp + 0x10078], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4585cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x10078], 0xffffffff
call fcn.004d1e3a
mov eax, 1
mov ecx, dword [esp + 0x10070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10058]
xor ecx, esp
call fcn.004e0b83
mov esp, ebp
pop ebp
ret