Function at 0x422ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x50e91c
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
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 0x3048
mov dword [ebp + 0x3c], 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 + 0x4c], edi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x48], esi
mov byte [ebp + 0x53], 1
mov byte [ebx + 0x2d], 0
mov byte [ebx + 0x70], 0
mov byte [ebp + 0x52], 0
jne 0x422f6b
mov byte [ebp + 0x52], 1
call fcn.0042afc0
mov dword [ebp + 0x1c], eax
emms
mov dword [ebp - 4], esi
mov edx, dword [ebx + 0x64]
cmp edx, esi
mov dword [ebp + 0x44], edx
jl 0x4235c1
cmp edx, dword [ebx + 0x44]
jge 0x4235c1
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], edx
jge 0x4235c1
mov ecx, dword [ebx + 0x40]
add ecx, eax
add ecx, 0x28
push ecx
lea ecx, [ebp + 0x30]
call fcn.0040db70
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x30]
cmp dword [eax - 4], 1
jle 0x422fde
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0x30]
call fcn.00404ae0
mov eax, dword [ebp + 0x30]
push eax
mov esi, edi
call fcn.00430580
add esp, 4
test eax, eax
jne 0x423018
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423411
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x423411
mov al, byte [edi + 0xa]
test al, al
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x38], edx
jne 0x42306d
push 0x448
call fcn.00477e9b
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
mov byte [ebp - 4], 2
je 0x423062
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x40]
push eax
push ecx
push esi
call fcn.0042ff30
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [ebp - 4], 1
mov dword [ebp + 0x3c], esi
jmp 0x4230a2
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp + 0x3c], esi
jmp 0x4230a2
cmp al, 1
jne 0x42309b
push 0x148
call fcn.00477e9b
mov esi, eax
add esp, 4
test esi, esi
je 0x423094
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x40]
call fcn.00430920
mov dword [ebp + 0x3c], eax
jmp 0x4230a2
xor eax, eax
mov dword [ebp + 0x3c], eax
jmp 0x4230a2
mov dword [ebp + 0x3c], 0
xor eax, eax
cmp dword [ebp + 0x40], 0x160
setle al
sub eax, 1
and eax, 0x20000
add eax, 0x30000
push eax
call fcn.00477ecb
movzx ecx, byte [edi + 0x19]
mov dword [ebp + 0x28], eax
movzx eax, byte [edi + 0x18]
cdq
idiv ecx
mov edx, dword [ebp + 0x44]
add esp, 4
cmp edx, dword [ebx + 0x64]
mov dword [ebx + 0x12c], eax
jne 0x4230ef
mov edx, edi
mov edi, dword [ebx + 0x68]
push 0
call fcn.004306c0
add esp, 4
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x40]
lea eax, [ebx + 0x6c]
mov ebx, dword [ebp + 0x1c]
push ecx
call fcn.0042c900
mov dword [ebp + 0x2c], 0
mov esi, dword [ebp + 0x5c]
cmp byte [esi + 0x2c], 0
je 0x423b04
cmp byte [esi + 0x2d], 0
je 0x42316b
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x423108
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 0x34], edx
add esi, 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
sar eax, 1
push esi
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x1c]
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 0x423108
cmp byte [esi + 0x2e], 0
je 0x42320b
cmp byte [esi + 0x2f], 0
je 0x4231b2
mov edi, dword [ebp + 0x4c]
mov ebx, dword [ebp + 0x28]
mov byte [esi + 0x2f], 0
call fcn.00430600
test eax, eax
je 0x423b07
test byte [edi + 0x3040], 0x18
jne 0x4231b2
mov edx, dword [edi + 0x3038]
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, ebx
push edx
call eax
mov dword [ebp + 0x2c], eax
cmp dword [ebp + 0x2c], 0
je 0x423108
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 0x38], edx
add esi, 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
sar eax, 1
push esi
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x1c]
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 0x423108
cmp byte [esi + 0x30], 0
je 0x42324d
mov eax, dword [esi + 0x28]
sub dword [esi + 0x124], eax
mov byte [esi + 0x30], 0
jns 0x42322a
mov dword [esi + 0x124], 0
mov edi, dword [esi + 0x124]
sub edi, dword [esi + 0x118]
mov edx, dword [ebp + 0x4c]
imul edi, edi, 0x3e8
push 1
call fcn.004306c0
add esp, 4
mov byte [ebp + 0x53], 1
cmp byte [esi + 0x31], 0
je 0x423285
mov ecx, dword [esi + 0x28]
add dword [esi + 0x124], ecx
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x118]
mov edx, dword [ebp + 0x4c]
imul eax, eax, 0x3e8
push 0
mov edi, eax
mov byte [esi + 0x31], 0
call fcn.004306c0
add esp, 4
mov byte [ebp + 0x53], 1
xor eax, eax
cmp dword [esi + 0x128], eax
je 0x4235d9
mov dword [esi + 0x128], eax
mov byte [ebp + 0x53], 1
mov dword [ebp + 0x44], eax
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jge 0x42355d
add ecx, 0xffffffff
cmp eax, ecx
jne 0x4232b6
mov byte [ebp + 0x52], 1
test eax, eax
jl 0x4235c1
cmp eax, dword [esi + 0x44]
jge 0x4235c1
mov eax, dword [ebp + 0x44]
mov ecx, dword [esi + 0x124]
mov ebx, eax
imul ebx, ebx, 0x8c
add ebx, dword [esi + 0x40]
mov edx, dword [ebx + 0xc]
cmp ecx, edx
mov dword [ebp + 0x20], ebx
jl 0x4235b6
mov edi, dword [ebx + 0x10]
add edi, edx
cmp ecx, edi
jge 0x4235b6
cmp dword [ebp], eax
je 0x423537
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x64], eax
mov edx, dword [ebx + 0xc]
add ecx, 0xffffffff
cmp eax, ecx
mov dword [ebp], eax
mov dword [esi + 0x118], edx
je 0x42331c
mov byte [ebp + 0x52], 0
mov esi, dword [ebp + 0x4c]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0x28
push ebx
lea ecx, [ebp + 0x10]
mov dword [esi], 0xffffffff
call fcn.0040db70
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
jle 0x423356
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 0x10]
call fcn.00404ae0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00430580
add esp, 4
test eax, eax
jne 0x42345e
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
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 0x42338e
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 + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4233b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x1c]
add esi, 0x6c
push esi
call fcn.0042d430
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x4233d6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4233eb
call fcn.0042f080
push edi
call fcn.00477ec6
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4233fb
push eax
call fcn.00477ec6
add esp, 4
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42340b
push eax
call fcn.00477ec6
add esp, 4
mov edi, dword [ebp + 0x4c]
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 0x423441
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 esi, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x38], ebx
je 0x423483
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 0x3c], 0
mov al, byte [esi + 0xa]
test al, al
jne 0x4234c6
push 0x448
call fcn.00477e9b
mov esi, eax
add esp, 4
mov dword [ebp + 0x24], esi
test esi, esi
mov byte [ebp - 4], 4
je 0x4234bb
push ebx
push edi
push esi
call fcn.0042ff30
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [ebp - 4], 3
mov dword [ebp + 0x3c], esi
jmp 0x4234f9
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp + 0x3c], esi
jmp 0x4234f9
cmp al, 1
jne 0x4234f2
push 0x148
call fcn.00477e9b
mov esi, eax
add esp, 4
test esi, esi
je 0x4234eb
mov eax, ebx
mov ecx, edi
call fcn.00430920
mov dword [ebp + 0x3c], eax
jmp 0x4234f9
xor eax, eax
mov dword [ebp + 0x3c], eax
jmp 0x4234f9
mov dword [ebp + 0x3c], 0
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x40]
mov ebx, dword [ebp + 0x1c]
add eax, 0x6c
push ecx
call fcn.0042c900
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423531
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x5c]
mov edi, dword [esi + 0x124]
mov edx, dword [ebp + 0x4c]
mov byte [esi + 0x2c], 1
sub edi, dword [ebx + 0xc]
push 0
imul edi, edi, 0x3e8
mov dword [esi + 0x68], edi
call fcn.004306c0
mov eax, dword [ebp + 0x44]
add esp, 4
cmp eax, dword [esi + 0x44]
jne 0x4235d9
add eax, 0xffffffff
js 0x4235c1
cmp eax, dword [esi + 0x44]
jge 0x4235c1
imul eax, eax, 0x8c
add eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 0xc]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x30]
add eax, 0xfffffff0
cmp dword [esi + 0x124], ecx
jle 0x4235c6
mov byte [ebp + 0x52], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4235aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4233bb
add eax, 1
mov dword [ebp + 0x44], eax
jmp 0x4232a0
call fcn.0047a63a
mov byte [ebp + 0x52], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42359e
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x423713
mov ebx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x4c]
push ebx
call fcn.00430660
add esp, 4
test eax, eax
je 0x423b07
mov edx, edi
mov al, byte [edx + 0x3040]
shr al, 3
and al, 3
jne 0x423661
cmp byte [ebp + 0x53], 0
mov eax, dword [edx + 0x303c]
je 0x423627
mov ecx, eax
sub ecx, eax
mov byte [ebp + 0x53], 0
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x48], ecx
jmp 0x423632
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x34], eax
sub eax, ecx
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x48]
test eax, eax
jle 0x423640
cmp eax, 0x190
jle 0x423647
mov dword [ebp + 0x48], 0x28
mov ecx, dword [ebp + 0x3c]
mov edx, dword [edx + 0x3038]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push ebx
call eax
mov dword [ebp + 0x2c], eax
jmp 0x4237f6
cmp al, 1
jne 0x4237f6
cmp dword [esi + 0x130], 0
je 0x423108
cmp dword [ebp + 0x18], 0
jne 0x42368c
push 0x2800
call fcn.00477ecb
add esp, 4
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0xc], 0
jne 0x4236b7
push 0x38
call fcn.00477e9b
movzx ecx, byte [edi + 0xf]
movzx edx, word [edi + 0xc]
add esp, 4
mov esi, eax
movzx eax, byte [edi + 0xe]
push ecx
push edx
mov dword [ebp + 0xc], esi
call fcn.004307a0
add esp, 8
mov eax, dword [edi + 0x3038]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x28]
push eax
call fcn.004307f0
add esp, 4
cmp dword [ebp + 0x14], 0
mov ebx, eax
jne 0x4236fe
push 0x188
call fcn.00477e9b
movzx edx, byte [edi + 0xf]
movzx ecx, byte [edi + 0xe]
mov esi, eax
movzx eax, word [edi + 0xc]
add esp, 4
push ebx
mov dword [ebp + 0x14], esi
call fcn.0042ef70
add esp, 4
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
push ebx
push ecx
call fcn.0042f100
add esp, 8
jmp 0x423108
jle 0x42378f
mov dword [ebp + 0x44], 0
lea esp, [esp]
mov edx, dword [ebp + 0x44]
cmp edx, dword [esi + 0x24]
jge 0x4237f6
mov edi, dword [ebp + 0x4c]
mov ebx, dword [ebp + 0x28]
call fcn.00430600
test eax, eax
je 0x423b07
mov edx, edi
test byte [edx + 0x3040], 0x18
jne 0x423789
cmp byte [ebp + 0x53], 0
mov eax, dword [edx + 0x303c]
je 0x423766
mov ecx, eax
mov dword [ebp + 0x34], ecx
sub ecx, eax
mov byte [ebp + 0x53], 0
mov dword [ebp + 0x48], ecx
jmp 0x423771
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x34], eax
sub eax, ecx
mov dword [ebp + 0x48], eax
mov edx, dword [edx + 0x3038]
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [ebp + 0x28]
push edx
call eax
mov dword [ebp + 0x2c], eax
add dword [ebp + 0x44], 1
jmp 0x423720
mov edi, dword [ebp + 0x4c]
mov ebx, dword [ebp + 0x28]
call fcn.00430600
test eax, eax
je 0x4237f6
mov edx, edi
mov al, byte [edx + 0x3040]
shr al, 3
and al, 3
jne 0x4237ee
cmp byte [ebp + 0x53], 0
mov eax, dword [edx + 0x303c]
je 0x4237c9
mov ecx, eax
mov dword [ebp + 0x34], ecx
sub ecx, eax
mov byte [ebp + 0x53], 0
mov dword [ebp + 0x48], ecx
jmp 0x4237d4
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x34], eax
sub eax, ecx
mov dword [ebp + 0x48], eax
mov edx, dword [edx + 0x3038]
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [ebp + 0x28]
push edx
call eax
mov dword [ebp + 0x2c], eax
jmp 0x4237f6
cmp al, 1
je 0x423108
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x423b04
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 0x64], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x40]
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 0x42388a
cmp dword [esi + 0x130], 0
je 0x42388c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42388c
mov eax, dword [eax + 0x170]
cmp eax, 9
jle 0x42385d
mov eax, 0x14
sub dword [ebp + 0x48], eax
jmp 0x42389c
cmp eax, 8
jle 0x42386c
mov eax, 0xa
sub dword [ebp + 0x48], eax
jmp 0x42389c
cmp eax, 7
jle 0x42387b
mov eax, 3
sub dword [ebp + 0x48], eax
jmp 0x42389c
xor edx, edx
cmp eax, 6
setg dl
mov eax, edx
sub dword [ebp + 0x48], eax
jmp 0x42389c
jle 0x423892
sub dword [ebp + 0x48], 2
jmp 0x42389c
mov eax, dword [esi + 0x20]
imul eax, dword [ebp + 0x48]
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x48], 0
jge 0x4238a9
mov dword [ebp + 0x48], 0
mov ecx, dword [ebp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x1c]
lea edx, [esi + 0x6c]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.0042c980
mov eax, dword [esi + 0x120]
test al, 1
je 0x423108
mov edx, dword [ebp + 0x4c]
and eax, 0xfffffffe
mov ecx, 0x160
mov dword [esi + 0x120], eax
cmp ecx, dword [edx + 0x10]
sbb edi, edi
and edi, 0x20000
add edi, 0x30000
push edi
mov dword [ebp + 0x20], edi
call fcn.00477ecb
add esp, 4
cmp dword [ebp + 0x40], 0x160
mov dword [ebp + 0x44], eax
jle 0x4239ce
cmp dword [ebp + 0x38], 0x120
jg 0x4239ce
push 0x2c
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0049e490
mov ecx, dword [ebp + 0x40]
mov ebx, dword [ebp + 0x38]
push ecx
add ebx, ebx
push 1
lea edi, [ebp - 0x98]
mov dword [ebp + 0x24], ebx
call fcn.0042fca0
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x40]
mov edx, edi
push edx
lea ebx, [ebp - 0x68]
call fcn.00435b50
add esp, 0x18
push 0xc
mov dword [ebp - 0x78], 1
call fcn.00477e9b
mov edi, eax
add esp, 4
mov dword [ebp + 4], edi
test edi, edi
mov byte [ebp - 4], 5
je 0x423990
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x24]
push 8
push eax
push edi
call fcn.00430340
mov dword [edi], vtable.CJpegEncoder.0
mov ecx, edi
jmp 0x423992
xor ecx, ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
push eax
mov eax, dword [ebp + 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
mov ebx, ecx
call edx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x423a1b
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.00495ebe
add esp, 4
jmp 0x423a1b
push 0xc
call fcn.00477e9b
mov ebx, eax
add esp, 4
mov dword [ebp + 4], ebx
test ebx, ebx
mov byte [ebp - 4], 6
je 0x4239fe
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x38]
push 8
push edx
push ebx
call fcn.00430340
mov dword [ebx], vtable.CJpegEncoder.0
mov ecx, ebx
jmp 0x423a00
xor ecx, ecx
mov edx, dword [ebp + 0x44]
push 0
push edi
mov byte [ebp - 4], 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
lea edx, [ebp - 0x68]
push edx
mov ebx, ecx
call eax
mov dword [ebp + 0x24], eax
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x423a35
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 + 0x20], eax
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp + 4], esp
push str.playback_
call fcn.0040db70
lea ecx, [ebp + 8]
push ecx
push esi
call fcn.00421ff0
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 8
call fcn.00404a60
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x20]
push 0x525398
push edi
call fcn.00498af8
mov esi, eax
add esp, 8
test esi, esi
je 0x423ac5
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x44]
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 + 0x44]
push eax
call fcn.00477ec6
mov edx, dword [ebx]
mov eax, dword [edx]
add esp, 4
push 1
mov ecx, ebx
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 0x423108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x423108
mov edi, dword [ebp + 0x4c]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x30]
mov dword [edi], 0xffffffff
add eax, 0xfffffff0
jmp 0x423591