Function at 0x4222b0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x50e98c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x5416a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push 0x2048
mov dword [ebp + 0x38], esi
call fcn.00477e9b
mov ebx, dword [ebp + 0x5c]
mov edi, eax
mov eax, dword [ebx + 0x44]
add eax, 0xffffffff
add esp, 4
cmp dword [ebx + 0x64], eax
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x4c], esi
mov byte [ebp + 0x53], 1
mov byte [ebx + 0x2d], 0
mov byte [ebx + 0x70], 0
mov byte [ebp + 0x52], 0
jne 0x42232b
mov byte [ebp + 0x52], 1
call fcn.0042afc0
mov dword [ebp + 0x24], eax
emms
mov dword [ebp - 4], esi
mov edx, dword [ebx + 0x64]
cmp edx, esi
mov dword [ebp + 0x3c], edx
jl 0x42297e
cmp edx, dword [ebx + 0x44]
jge 0x42297e
mov ecx, dword [ebx + 0x40]
mov eax, edx
imul eax, eax, 0x8c
add ecx, eax
mov ecx, dword [ecx + 0xc]
mov dword [ebx + 0x118], ecx
cmp edx, dword [ebx + 0x44]
mov dword [ebp + 4], edx
jge 0x42297e
mov ecx, dword [ebx + 0x40]
add ecx, eax
add ecx, 0x28
push ecx
lea ecx, [ebp + 0x2c]
call fcn.0040db70
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x2c]
cmp dword [eax - 4], 1
jle 0x42239e
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0x2c]
call fcn.00404ae0
mov eax, dword [ebp + 0x2c]
push eax
mov esi, edi
call fcn.00430020
add esp, 4
test eax, eax
jne 0x4223d8
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4227d8
mov al, byte [edi + 0xa]
test al, al
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x40], edx
jne 0x42242d
push 0x448
call fcn.00477e9b
mov esi, eax
add esp, 4
mov dword [ebp], esi
test esi, esi
mov byte [ebp - 4], 2
je 0x422422
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x44]
push eax
push ecx
push esi
call fcn.0042ff30
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [ebp - 4], 1
mov dword [ebp + 0x38], esi
jmp 0x422462
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp + 0x38], esi
jmp 0x422462
cmp al, 1
jne 0x42245b
push 0x148
call fcn.00477e9b
mov esi, eax
add esp, 4
test esi, esi
je 0x422454
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x44]
call fcn.00430920
mov dword [ebp + 0x38], eax
jmp 0x422462
xor eax, eax
mov dword [ebp + 0x38], eax
jmp 0x422462
mov dword [ebp + 0x38], 0
xor eax, eax
cmp dword [ebp + 0x44], 0x160
setle al
sub eax, 1
and eax, 0x20000
add eax, 0x30000
push eax
call fcn.00477ecb
mov dword [ebp + 0x28], eax
mov eax, dword [edi + 0x18]
cdq
idiv dword [edi + 0x1c]
mov edx, dword [ebp + 0x3c]
add esp, 4
cmp edx, dword [ebx + 0x64]
mov dword [ebx + 0x12c], eax
jne 0x4224ab
mov edx, edi
mov edi, dword [ebx + 0x68]
push 0
call fcn.004301e0
add esp, 4
mov ecx, dword [ebp + 0x40]
mov edi, dword [ebp + 0x44]
lea eax, [ebx + 0x6c]
mov ebx, dword [ebp + 0x24]
push ecx
call fcn.0042c900
mov dword [ebp + 0x34], 0
mov ebx, dword [ebp + 0x5c]
cmp byte [ebx + 0x2c], 0
je 0x422eac
cmp byte [ebx + 0x2d], 0
je 0x422527
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4224c4
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0x34], edx
add ebx, 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
sar eax, 1
push ebx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x24]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 1
call fcn.0042c980
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4224c4
cmp byte [ebx + 0x2e], 0
je 0x4225c5
cmp byte [ebx + 0x2f], 0
je 0x42256e
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x28]
mov byte [ebx + 0x2f], 0
call fcn.004300a0
test eax, eax
je 0x422eaf
test byte [esi + 0x2038], 0x18
jne 0x42256e
mov edx, dword [esi + 0x203a]
mov ecx, dword [ebp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, edi
push edx
call eax
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4224c4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0x38], edx
add ebx, 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
sar eax, 1
push ebx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x24]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 1
call fcn.0042c980
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4224c4
cmp byte [ebx + 0x30], 0
je 0x42260d
mov eax, dword [ebx + 0x28]
sub dword [ebx + 0x124], eax
mov byte [ebx + 0x30], 0
jns 0x4225e4
mov dword [ebx + 0x124], 0
mov eax, ebx
mov edi, dword [eax + 0x124]
sub edi, dword [eax + 0x118]
mov ebx, dword [ebp + 0x48]
imul edi, edi, 0x3e8
push 1
mov edx, ebx
call fcn.004301e0
add esp, 4
mov byte [ebp + 0x53], 1
jmp 0x422610
mov ebx, dword [ebp + 0x48]
mov esi, dword [ebp + 0x5c]
cmp byte [esi + 0x31], 0
je 0x42264a
mov ecx, dword [esi + 0x28]
add dword [esi + 0x124], ecx
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x118]
push 0
imul eax, eax, 0x3e8
mov edx, ebx
mov edi, eax
mov byte [esi + 0x31], 0
call fcn.004301e0
add esp, 4
mov byte [ebp + 0x53], 1
cmp dword [esi + 0x128], 0
je 0x42298f
mov edx, esi
xor esi, esi
mov dword [edx + 0x128], esi
mov byte [ebp + 0x53], 1
mov eax, dword [edx + 0x44]
cmp esi, eax
mov dword [ebp + 0x3c], esi
jge 0x4228f1
add eax, 0xffffffff
cmp esi, eax
jne 0x42267e
mov byte [ebp + 0x52], 1
test esi, esi
jl 0x42297e
cmp esi, dword [edx + 0x44]
jge 0x42297e
mov eax, dword [edx + 0x124]
mov edi, esi
imul edi, edi, 0x8c
add edi, dword [edx + 0x40]
mov ecx, dword [edi + 0xc]
cmp eax, ecx
mov dword [ebp + 0x14], edi
jl 0x422976
mov edx, dword [edi + 0x10]
add edx, ecx
cmp eax, edx
jge 0x422973
cmp dword [ebp + 4], esi
je 0x4228c7
mov eax, dword [ebp + 0x5c]
mov dword [eax + 0x64], esi
mov ecx, dword [edi + 0xc]
mov dword [eax + 0x118], ecx
mov eax, dword [eax + 0x44]
add eax, 0xffffffff
cmp esi, eax
mov dword [ebp + 4], esi
je 0x4226e4
mov byte [ebp + 0x52], 0
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x28
push edi
lea ecx, [ebp + 0x18]
mov dword [ebx], 0xffffffff
call fcn.0040db70
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x18]
cmp dword [eax - 4], 1
jle 0x42271b
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 0x18]
call fcn.00404ae0
mov eax, dword [ebp + 0x18]
push eax
mov esi, ebx
call fcn.00430020
add esp, 4
test eax, eax
jne 0x422825
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov byte [ebp + 0x52], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422778
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x24]
add ecx, 0x6c
push ecx
call fcn.0042d430
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x42279d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x4227b2
call fcn.0042f080
push edi
call fcn.00477ec6
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4227c2
push eax
call fcn.00477ec6
add esp, 4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4227d2
push eax
call fcn.00477ec6
add esp, 4
mov edi, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x5c]
push edi
call fcn.00477ec6
add esp, 4
cmp byte [ebp + 0x52], 0
mov byte [ebx + 0x2c], 0
mov byte [ebx + 0x2d], 0
mov byte [ebx + 0x2e], 0
mov dword [ebx + 0x34], 1
mov dword [ebx + 0x12c], 0
je 0x422808
mov byte [ebx + 0x70], 1
mov byte [ebx + 0x32], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x54
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
mov dword [ebp + 0x40], ecx
mov ecx, dword [ebp + 0x38]
xor esi, esi
cmp ecx, esi
mov dword [ebp + 0x44], edi
je 0x422845
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 0x38], esi
mov bl, byte [ebx + 0xa]
test bl, bl
jne 0x42293b
push 0x448
call fcn.00477e9b
mov esi, eax
add esp, 4
mov dword [ebp + 0x20], esi
test esi, esi
mov byte [ebp - 4], 4
je 0x42287d
mov ecx, dword [ebp + 0x40]
push ecx
push edi
push esi
call fcn.0042ff30
mov dword [esi], vtable.CMpeg4Decoder.0
jmp 0x42287f
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp + 0x38], esi
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x44]
mov ebx, dword [ebp + 0x24]
add eax, 0x6c
push edx
call fcn.0042c900
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4228be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x48]
mov esi, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx + 0x124]
mov byte [ecx + 0x2c], 1
sub eax, dword [edi + 0xc]
push 0
imul eax, eax, 0x3e8
mov edx, ebx
mov edi, eax
mov dword [ecx + 0x68], eax
call fcn.004301e0
mov edx, dword [ebp + 0x5c]
add esp, 4
cmp esi, dword [edx + 0x44]
jne 0x42298c
add esi, 0xffffffff
js 0x42297e
cmp esi, dword [edx + 0x44]
jge 0x42297e
imul esi, esi, 0x8c
add esi, dword [edx + 0x40]
mov ecx, dword [esi + 0x10]
add ecx, dword [esi + 0xc]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
cmp dword [edx + 0x124], ecx
jle 0x422983
mov byte [ebp + 0x52], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42276c
cmp bl, 1
jne 0x422883
push 0x148
call fcn.00477e9b
mov esi, eax
add esp, 4
test esi, esi
je 0x422969
mov eax, dword [ebp + 0x40]
mov ecx, edi
call fcn.00430920
mov dword [ebp + 0x38], eax
jmp 0x422886
xor eax, eax
mov dword [ebp + 0x38], eax
jmp 0x422886
mov edx, dword [ebp + 0x5c]
add esi, 1
jmp 0x422665
call fcn.0047a63a
mov byte [ebp + 0x52], 0
jmp 0x42275f
mov esi, dword [ebp + 0x5c]
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x422aba
mov edi, dword [ebp + 0x28]
mov esi, ebx
call fcn.00430140
test eax, eax
je 0x422eac
mov edx, dword [ebp + 0x48]
mov al, byte [edx + 0x2038]
shr al, 3
and al, 3
jne 0x4229fe
cmp byte [ebp + 0x53], 0
mov eax, dword [edx + 0x203e]
je 0x4229d9
mov ecx, eax
sub ecx, eax
mov byte [ebp + 0x53], 0
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x4c], ecx
jmp 0x4229e4
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x30], eax
sub eax, ecx
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x38]
mov edx, dword [edx + 0x203a]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push edi
call eax
mov dword [ebp + 0x34], eax
jmp 0x422b9a
cmp al, 1
jne 0x422b9a
mov ecx, dword [ebp + 0x5c]
cmp dword [ecx + 0x130], 0
je 0x4224c4
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x422a2f
push 0x2800
call fcn.00477ecb
add esp, 4
mov dword [ebp + 0x10], eax
mov edi, eax
cmp dword [ebp + 0xc], 0
jne 0x422a58
push 0x38
call fcn.00477e9b
add esp, 4
mov esi, eax
push 1
push 0x3e80
mov eax, 0x10
mov dword [ebp + 0xc], esi
call fcn.004307a0
add esp, 8
mov edx, dword [ebp + 0x48]
mov eax, dword [edx + 0x203a]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x28]
push eax
mov ecx, edi
call fcn.004307f0
add esp, 4
cmp dword [ebp + 0x1c], 0
mov ebx, eax
jne 0x422aa4
push 0x188
call fcn.00477e9b
mov esi, eax
add esp, 4
push ebx
mov edx, 1
mov ecx, 0x10
mov eax, 0x3e80
mov dword [ebp + 0x1c], esi
call fcn.0042ef70
add esp, 4
mov esi, dword [ebp + 0x1c]
push 0x2800
push edi
call fcn.0042f100
add esp, 8
jmp 0x4224c4
jle 0x422b36
mov dword [ebp + 0x3c], 0
mov ecx, dword [ebp + 0x3c]
cmp ecx, dword [esi + 0x24]
jge 0x422b9a
mov edi, dword [ebp + 0x28]
mov esi, ebx
call fcn.004300a0
test eax, eax
je 0x422eac
mov edx, dword [ebp + 0x48]
test byte [edx + 0x2038], 0x18
jne 0x422b2a
cmp byte [ebp + 0x53], 0
je 0x422b04
mov ecx, dword [edx + 0x203e]
mov byte [ebp + 0x53], 0
mov eax, ecx
mov dword [ebp + 0x30], ecx
jmp 0x422b10
mov eax, dword [edx + 0x203e]
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x30], eax
mov edx, dword [edx + 0x203a]
sub eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x4c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push edi
call eax
mov dword [ebp + 0x34], eax
add dword [ebp + 0x3c], 1
mov ebx, dword [ebp + 0x48]
mov esi, dword [ebp + 0x5c]
jmp 0x422ac3
mov edi, dword [ebp + 0x28]
mov esi, ebx
call fcn.004300a0
test eax, eax
je 0x422b9a
mov al, byte [ebx + 0x2038]
shr al, 3
and al, 3
jne 0x422b92
cmp byte [ebp + 0x53], 0
mov eax, dword [ebx + 0x203e]
je 0x422b6d
mov ecx, eax
mov dword [ebp + 0x30], ecx
sub ecx, eax
mov byte [ebp + 0x53], 0
mov dword [ebp + 0x4c], ecx
jmp 0x422b78
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x30], eax
sub eax, ecx
mov dword [ebp + 0x4c], eax
mov eax, dword [ebx + 0x203a]
mov ecx, dword [ebp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [ebp + 0x28]
push eax
call edx
mov dword [ebp + 0x34], eax
jmp 0x422b9a
cmp al, 1
je 0x4224c4
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x422eac
mov ecx, dword [eax]
mov esi, dword [ebp + 0x5c]
mov dword [ebp - 0x68], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0x64], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], eax
sar eax, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x24]
cmp eax, 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], 1
jne 0x422c31
cmp dword [esi + 0x130], 0
je 0x422c33
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x422c33
mov eax, dword [eax + 0x170]
cmp eax, 9
jle 0x422c04
mov eax, 0x14
sub dword [ebp + 0x4c], eax
jmp 0x422c43
cmp eax, 8
jle 0x422c13
mov eax, 0xa
sub dword [ebp + 0x4c], eax
jmp 0x422c43
cmp eax, 7
jle 0x422c22
mov eax, 3
sub dword [ebp + 0x4c], eax
jmp 0x422c43
xor edx, edx
cmp eax, 6
setg dl
mov eax, edx
sub dword [ebp + 0x4c], eax
jmp 0x422c43
jle 0x422c39
sub dword [ebp + 0x4c], 2
jmp 0x422c43
mov eax, dword [esi + 0x20]
imul eax, dword [ebp + 0x4c]
mov dword [ebp + 0x4c], eax
cmp dword [ebp + 0x4c], 0
jge 0x422c50
mov dword [ebp + 0x4c], 0
mov ecx, dword [ebp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x24]
lea edx, [esi + 0x6c]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.0042c980
mov eax, dword [esi + 0x120]
test al, 1
je 0x4224c4
mov ecx, esi
and eax, 0xfffffffe
mov dword [ecx + 0x120], eax
mov eax, dword [ebp + 0x48]
mov edx, 0x160
cmp edx, dword [eax + 0x10]
sbb esi, esi
and esi, 0x20000
add esi, 0x30000
push esi
call fcn.00477ecb
add esp, 4
cmp dword [ebp + 0x44], 0x160
mov ebx, eax
mov dword [ebp + 0x3c], ebx
jle 0x422d74
cmp dword [ebp + 0x40], 0x120
jg 0x422d74
push 0x2c
lea ecx, [ebp - 0x9c]
push 0
push ecx
call fcn.0049e490
mov edx, dword [ebp + 0x44]
mov ebx, dword [ebp + 0x40]
push edx
add ebx, ebx
push 1
lea edi, [ebp - 0x9c]
mov dword [ebp + 0x20], ebx
call fcn.0042fca0
mov ecx, dword [ebp + 0x44]
mov eax, edi
push eax
mov eax, dword [ebp + 0x40]
lea ebx, [ebp - 0x68]
call fcn.00435b50
add esp, 0x18
push 0xc
mov dword [ebp - 0x7c], 1
call fcn.00477e9b
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
mov byte [ebp - 4], 5
je 0x422d38
mov ecx, dword [ebp + 0x44]
push 8
push ecx
mov ecx, dword [ebp + 0x20]
push edi
call fcn.00430340
mov dword [edi], vtable.CJpegEncoder.0
mov ecx, edi
jmp 0x422d3a
xor ecx, ecx
mov eax, dword [ebp + 0x3c]
push 0
push esi
mov byte [ebp - 4], 1
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp + 0x20], ecx
call edx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x422dbf
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.00495ebe
add esp, 4
jmp 0x422dbf
push 0xc
call fcn.00477e9b
mov edi, eax
add esp, 4
mov dword [ebp + 0x20], edi
test edi, edi
mov byte [ebp - 4], 6
je 0x422da4
mov edx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
push 8
push edx
push edi
call fcn.00430340
mov dword [edi], vtable.CJpegEncoder.0
mov ecx, edi
jmp 0x422da6
xor ecx, ecx
push 0
mov byte [ebp - 4], 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push esi
push ebx
lea edx, [ebp - 0x68]
push edx
mov dword [ebp + 0x20], ecx
call eax
mov dword [ebp + 8], eax
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422dd9
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov bl, 7
push str.playback_
mov byte [ebp - 4], bl
call fcn.0040db70
mov edx, dword [ebp + 0x5c]
lea ecx, [ebp]
push ecx
push edx
call fcn.00421ff0
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 8
call fcn.00404a60
mov byte [ebp - 4], bl
mov eax, dword [ebp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422e39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x14]
push 0x525398
push edi
call fcn.00498af8
mov esi, eax
add esp, 8
test esi, esi
je 0x422e6c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x3c]
push esi
push ecx
push 1
push edx
call fcn.0049933b
add esp, 0x10
push esi
call fcn.00498df6
add esp, 4
mov eax, dword [ebp + 0x3c]
push eax
call fcn.00477ec6
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx]
add esp, 4
push 1
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4224c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4224c4
mov esi, dword [ebp + 0x48]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
mov dword [esi], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42276c