Function at 0x423010
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x5104ec
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x5426a0]
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 + 0x4c], esi
call fcn.00479a8b
mov ebx, dword [ebp + 0x70]
mov edi, eax
mov eax, dword [ebx + 0x44]
add eax, 0xffffffff
add esp, 4
cmp dword [ebx + 0x64], eax
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x5c], esi
mov byte [ebp + 0x67], 1
mov byte [ebx + 0x2d], 0
mov byte [ebx + 0x70], 0
mov byte [ebp + 0x66], 0
jne 0x42308e
mov byte [ebp + 0x66], 1
call fcn.0042c690
mov dword [ebp + 0x28], eax
emms
mov dword [ebp - 4], esi
mov edx, dword [ebx + 0x64]
cmp edx, esi
mov dword [ebp + 0x58], edx
jl 0x423772
cmp edx, dword [ebx + 0x44]
jge 0x423772
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 + 8], edx
jge 0x423772
mov ecx, dword [ebx + 0x40]
add ecx, eax
add ecx, 0x28
push ecx
lea ecx, [ebp + 0x40]
call fcn.0040db80
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x40]
cmp dword [eax - 4], 1
jle 0x423101
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0x40]
call fcn.00404ae0
mov eax, dword [ebp + 0x40]
push eax
mov esi, edi
call fcn.00431a50
add esp, 4
test eax, eax
jne 0x42313b
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423586
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x423586
movzx edx, byte [edi + 0x2a]
mov ecx, dword [edi + 0x10]
movzx eax, byte [edi + 0x29]
mov esi, dword [edi + 0x14]
push 0xffffffffffffffff
push edx
movzx edx, byte [edi + 0x27]
mov dword [ebp + 0x50], ecx
movzx ecx, byte [edi + 0x28]
push eax
movzx eax, byte [edi + 0x26]
push ecx
movzx ecx, word [edi + 0x24]
push edx
push eax
push ecx
lea ecx, [ebp]
mov dword [ebp + 0x48], esi
call fcn.00421ca0
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [ebp + 0x10], eax
mov al, byte [edi + 0x1b]
and al, 1
mov byte [ebp + 0x57], al
mov al, byte [edi + 0xa]
test al, al
mov dword [ebp + 0xc], edx
jne 0x4231cc
push 0x448
call fcn.00479a8b
mov esi, eax
add esp, 4
mov dword [ebp + 0x14], esi
test esi, esi
mov byte [ebp - 4], 2
je 0x4231c1
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x50]
push ecx
push edx
push esi
call fcn.004313e0
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [ebp - 4], 1
mov dword [ebp + 0x4c], esi
jmp 0x423202
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp + 0x4c], esi
jmp 0x423202
cmp al, 1
jne 0x4231fb
push 0x148
call fcn.00479a8b
mov edx, eax
add esp, 4
test edx, edx
je 0x4231f4
mov ecx, dword [ebp + 0x50]
mov eax, esi
mov esi, edx
call fcn.00431df0
mov dword [ebp + 0x4c], eax
jmp 0x423202
xor eax, eax
mov dword [ebp + 0x4c], eax
jmp 0x423202
mov dword [ebp + 0x4c], 0
xor eax, eax
cmp dword [ebp + 0x50], 0x160
setle al
sub eax, 1
and eax, 0x20000
add eax, 0x30000
push eax
call fcn.00479ab6
movzx ecx, byte [edi + 0x19]
mov dword [ebp + 0x38], eax
movzx eax, byte [edi + 0x18]
cdq
idiv ecx
mov edx, dword [ebp + 0x58]
add esp, 4
cmp edx, dword [ebx + 0x64]
mov dword [ebx + 0x12c], eax
jne 0x42324f
mov edx, edi
mov edi, dword [ebx + 0x68]
push 0
call fcn.00431b90
add esp, 4
mov ecx, dword [ebp + 0x48]
mov edi, dword [ebp + 0x50]
lea eax, [ebx + 0x6c]
mov ebx, dword [ebp + 0x28]
push ecx
call fcn.0042df40
mov dword [ebp + 0x3c], 0
mov esi, dword [ebp + 0x70]
cmp byte [esi + 0x2c], 0
je 0x423d16
cmp byte [esi + 0x2d], 0
je 0x4232cb
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x423268
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x48]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
sar eax, 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp + 0x28]
add esi, 0x6c
push esi
lea edx, [ebp - 0x3c]
push edx
call fcn.0042dfc0
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x423268
cmp byte [esi + 0x2e], 0
je 0x423380
cmp byte [esi + 0x2f], 0
je 0x423312
mov edi, dword [ebp + 0x60]
mov ebx, dword [ebp + 0x38]
mov byte [esi + 0x2f], 0
call fcn.00431ad0
test eax, eax
je 0x423d19
test byte [edi + 0x3040], 0x18
jne 0x423312
mov edx, dword [edi + 0x3038]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, ebx
push edx
call eax
mov dword [ebp + 0x3c], eax
cmp dword [ebp + 0x3c], 0
je 0x423268
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov edi, dword [ebp + 0x50]
mov ebx, dword [ebp + 0x48]
mov dword [ebp - 0x34], eax
mov eax, edi
sar eax, 1
cmp byte [ebp + 0x57], 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 1
je 0x4232b1
mov ecx, dword [ebp + 0x60]
mov eax, 0x10624dd3
mul dword [ecx + 0x303c]
mov ecx, edx
push ebx
shr ecx, 6
add ecx, dword [ebp + 0xc]
push edi
push esi
lea edi, [ebp - 0x3c]
call fcn.00425ae0
jmp 0x4232b1
cmp byte [esi + 0x30], 0
je 0x4233c2
mov eax, dword [esi + 0x28]
sub dword [esi + 0x124], eax
mov byte [esi + 0x30], 0
jns 0x42339f
mov dword [esi + 0x124], 0
mov edi, dword [esi + 0x124]
sub edi, dword [esi + 0x118]
mov edx, dword [ebp + 0x60]
imul edi, edi, 0x3e8
push 1
call fcn.00431b90
add esp, 4
mov byte [ebp + 0x67], 1
cmp byte [esi + 0x31], 0
je 0x4233fa
mov ecx, dword [esi + 0x28]
add dword [esi + 0x124], ecx
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x118]
mov edx, dword [ebp + 0x60]
imul eax, eax, 0x3e8
push 0
mov edi, eax
mov byte [esi + 0x31], 0
call fcn.00431b90
add esp, 4
mov byte [ebp + 0x67], 1
xor eax, eax
cmp dword [esi + 0x128], eax
je 0x42378a
mov dword [esi + 0x128], eax
mov byte [ebp + 0x67], 1
mov dword [ebp + 0x58], eax
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jge 0x42370e
add ecx, 0xffffffff
cmp eax, ecx
jne 0x42342b
mov byte [ebp + 0x66], 1
test eax, eax
jl 0x423772
cmp eax, dword [esi + 0x44]
jge 0x423772
mov eax, dword [ebp + 0x58]
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 + 0x30], ebx
jl 0x423767
mov edi, dword [ebx + 0x10]
add edi, edx
cmp ecx, edi
jge 0x423767
cmp dword [ebp + 8], eax
je 0x4236e8
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x64], eax
mov edx, dword [ebx + 0xc]
add ecx, 0xffffffff
cmp eax, ecx
mov dword [ebp + 8], eax
mov dword [esi + 0x118], edx
je 0x423491
mov byte [ebp + 0x66], 0
mov esi, dword [ebp + 0x60]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0x28
push ebx
lea ecx, [ebp + 0x20]
mov dword [esi], 0xffffffff
call fcn.0040db80
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x20]
cmp dword [eax - 4], 1
jle 0x4234cb
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404ae0
mov eax, dword [ebp + 0x20]
push eax
call fcn.00431a50
add esp, 4
test eax, eax
jne 0x4235d3
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
mov byte [ebp + 0x66], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423503
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 + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423526
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 + 0x70]
mov eax, dword [ebp + 0x28]
add esi, 0x6c
push esi
call fcn.0042e900
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
je 0x42354b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x423560
call fcn.00430530
push edi
call fcn.00479abb
add esp, 4
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x423570
push eax
call fcn.00479abb
add esp, 4
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x423580
push eax
call fcn.00479abb
add esp, 4
mov edi, dword [ebp + 0x60]
mov ebx, dword [ebp + 0x70]
push edi
call fcn.00479abb
add esp, 4
cmp byte [ebp + 0x66], 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 0x4235b6
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, 0x68
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 0x60]
movzx ecx, byte [esi + 0x2a]
movzx edx, byte [esi + 0x29]
movzx eax, byte [esi + 0x28]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
push 0xffffffffffffffff
push ecx
movzx ecx, byte [esi + 0x27]
push edx
movzx edx, byte [esi + 0x26]
push eax
movzx eax, word [esi + 0x24]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x48], ebx
call fcn.00421ca0
mov ecx, dword [ebp - 0x44]
mov al, byte [esi + 0x1b]
mov edx, dword [ebp - 0x40]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x4c]
and al, 1
test ecx, ecx
mov dword [ebp + 0x10], edx
mov byte [ebp + 0x57], al
je 0x423634
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebp + 0x4c], 0
mov al, byte [esi + 0xa]
test al, al
jne 0x423677
push 0x448
call fcn.00479a8b
mov esi, eax
add esp, 4
mov dword [ebp + 0x34], esi
test esi, esi
mov byte [ebp - 4], 4
je 0x42366c
push ebx
push edi
push esi
call fcn.004313e0
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [ebp - 4], 3
mov dword [ebp + 0x4c], esi
jmp 0x4236aa
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp + 0x4c], esi
jmp 0x4236aa
cmp al, 1
jne 0x4236a3
push 0x148
call fcn.00479a8b
mov esi, eax
add esp, 4
test esi, esi
je 0x42369c
mov eax, ebx
mov ecx, edi
call fcn.00431df0
mov dword [ebp + 0x4c], eax
jmp 0x4236aa
xor eax, eax
mov dword [ebp + 0x4c], eax
jmp 0x4236aa
mov dword [ebp + 0x4c], 0
mov ecx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x70]
mov edi, dword [ebp + 0x50]
mov ebx, dword [ebp + 0x28]
add eax, 0x6c
push ecx
call fcn.0042df40
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4236e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 0x30]
mov esi, dword [ebp + 0x70]
mov edi, dword [esi + 0x124]
mov edx, dword [ebp + 0x60]
mov byte [esi + 0x2c], 1
sub edi, dword [ebx + 0xc]
push 0
imul edi, edi, 0x3e8
mov dword [esi + 0x68], edi
call fcn.00431b90
mov eax, dword [ebp + 0x58]
add esp, 4
cmp eax, dword [esi + 0x44]
jne 0x42378a
add eax, 0xffffffff
js 0x423772
cmp eax, dword [esi + 0x44]
jge 0x423772
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 + 0x40]
add eax, 0xfffffff0
cmp dword [esi + 0x124], ecx
jle 0x423777
mov byte [ebp + 0x66], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42375b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x423530
add eax, 1
mov dword [ebp + 0x58], eax
jmp 0x423415
call fcn.0047c168
mov byte [ebp + 0x66], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42374f
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x4238ee
mov ebx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x60]
push ebx
call fcn.00431b30
add esp, 4
test eax, eax
je 0x423d19
mov edx, edi
mov al, byte [edx + 0x3040]
shr al, 3
and al, 3
jne 0x423812
cmp byte [ebp + 0x67], 0
mov eax, dword [edx + 0x303c]
je 0x4237d8
mov ecx, eax
sub ecx, eax
mov byte [ebp + 0x67], 0
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x5c], ecx
jmp 0x4237e3
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x44], eax
sub eax, ecx
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x5c]
test eax, eax
jle 0x4237f1
cmp eax, 0x190
jle 0x4237f8
mov dword [ebp + 0x5c], 0x28
mov ecx, dword [ebp + 0x4c]
mov edx, dword [edx + 0x3038]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push ebx
call eax
mov dword [ebp + 0x3c], eax
jmp 0x4239df
cmp al, 1
jne 0x4239df
cmp dword [esi + 0x130], 0
je 0x423268
cmp dword [ebp + 0x2c], 0
jne 0x42383d
push 0x2800
call fcn.00479ab6
add esp, 4
mov dword [ebp + 0x2c], eax
mov al, byte [edi + 0xb]
cmp al, 1
jne 0x42388c
cmp dword [ebp + 0x1c], 0
jne 0x42386f
push 0x38
call fcn.00479a8b
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 + 0x1c], esi
call fcn.00431c70
add esp, 8
mov eax, dword [edi + 0x3038]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x38]
push eax
call fcn.00431cc0
add esp, 4
mov dword [ebp + 0x18], eax
jmp 0x4238a6
cmp al, 3
jne 0x4238a6
mov eax, dword [edi + 0x3038]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x2c]
push ebx
call fcn.004276d0
add esp, 8
cmp dword [ebp + 0x24], 0
jne 0x4238d6
push 0x188
call fcn.00479a8b
movzx edx, byte [edi + 0xf]
movzx ecx, byte [edi + 0xe]
mov esi, eax
movzx eax, word [edi + 0xc]
mov edi, dword [ebp + 0x18]
add esp, 4
push edi
mov dword [ebp + 0x24], esi
call fcn.004304c0
add esp, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x24]
push edx
push eax
call fcn.004305b0
add esp, 8
jmp 0x423268
jle 0x423978
mov dword [ebp + 0x58], 0
mov ecx, dword [ebp + 0x58]
cmp ecx, dword [esi + 0x24]
jge 0x4239df
mov edi, dword [ebp + 0x60]
mov ebx, dword [ebp + 0x38]
call fcn.00431ad0
test eax, eax
je 0x423d19
mov edx, edi
mov al, byte [edx + 0x3040]
shr al, 3
and al, 3
jne 0x4238fb
cmp byte [ebp + 0x67], 0
je 0x423947
mov eax, edx
mov eax, dword [eax + 0x303c]
mov ecx, eax
mov dword [ebp + 0x44], ecx
sub ecx, eax
mov byte [ebp + 0x67], 0
mov dword [ebp + 0x5c], ecx
jmp 0x423958
mov eax, dword [edx + 0x303c]
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x44], eax
sub eax, ecx
mov dword [ebp + 0x5c], eax
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov edx, edi
mov edx, dword [edx + 0x3038]
push edx
mov edx, dword [ebp + 0x38]
push edx
call eax
add dword [ebp + 0x58], 1
mov dword [ebp + 0x3c], eax
jmp 0x4238fb
mov edi, dword [ebp + 0x60]
mov ebx, dword [ebp + 0x38]
call fcn.00431ad0
test eax, eax
je 0x4239df
mov edx, edi
mov al, byte [edx + 0x3040]
shr al, 3
and al, 3
jne 0x4239d7
cmp byte [ebp + 0x67], 0
mov eax, dword [edx + 0x303c]
je 0x4239b2
mov ecx, eax
mov dword [ebp + 0x44], ecx
sub ecx, eax
mov byte [ebp + 0x67], 0
mov dword [ebp + 0x5c], ecx
jmp 0x4239bd
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x44], eax
sub eax, ecx
mov dword [ebp + 0x5c], eax
mov edx, dword [edx + 0x3038]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [ebp + 0x38]
push edx
call eax
mov dword [ebp + 0x3c], eax
jmp 0x4239df
cmp al, 1
je 0x423268
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x423d16
mov ecx, dword [eax]
mov edi, dword [ebp + 0x50]
mov ebx, dword [ebp + 0x48]
mov dword [ebp - 0x70], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x6c], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x68], eax
mov eax, edi
sar eax, 1
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x24]
cmp eax, 1
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x50], 1
jne 0x423a75
cmp dword [esi + 0x130], 0
je 0x423a77
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x423a77
mov eax, dword [eax + 0x170]
cmp eax, 9
jle 0x423a48
mov eax, 0x14
sub dword [ebp + 0x5c], eax
jmp 0x423a87
cmp eax, 8
jle 0x423a57
mov eax, 0xa
sub dword [ebp + 0x5c], eax
jmp 0x423a87
cmp eax, 7
jle 0x423a66
mov eax, 3
sub dword [ebp + 0x5c], eax
jmp 0x423a87
xor ecx, ecx
cmp eax, 6
setg cl
mov eax, ecx
sub dword [ebp + 0x5c], eax
jmp 0x423a87
jle 0x423a7d
sub dword [ebp + 0x5c], 2
jmp 0x423a87
mov edx, dword [esi + 0x20]
imul edx, dword [ebp + 0x5c]
mov dword [ebp + 0x5c], edx
cmp dword [ebp + 0x5c], 0
jge 0x423a94
mov dword [ebp + 0x5c], 0
mov eax, dword [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp + 0x57], 0
je 0x423ac5
mov ecx, dword [ebp + 0x60]
mov eax, 0x10624dd3
mul dword [ecx + 0x303c]
mov ecx, edx
push ebx
shr ecx, 6
add ecx, dword [ebp + 0xc]
push edi
push esi
lea edi, [ebp - 0x70]
call fcn.00425ae0
mov ecx, dword [ebp + 0x28]
lea edx, [esi + 0x6c]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0042dfc0
mov eax, dword [esi + 0x120]
test al, 1
je 0x423268
mov edx, dword [ebp + 0x60]
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 + 0x30], edi
call fcn.00479ab6
add esp, 4
cmp dword [ebp + 0x50], 0x160
mov dword [ebp + 0x58], eax
jle 0x423be0
cmp dword [ebp + 0x48], 0x120
jg 0x423be0
push 0x2c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004a0080
mov ecx, dword [ebp + 0x50]
mov ebx, dword [ebp + 0x48]
push ecx
add ebx, ebx
push 1
lea edi, [ebp - 0xa0]
mov dword [ebp + 0x34], ebx
call fcn.00431150
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x50]
mov edx, edi
push edx
lea ebx, [ebp - 0x70]
call fcn.00437020
add esp, 0x18
push 0xc
mov dword [ebp - 0x80], 1
call fcn.00479a8b
mov edi, eax
add esp, 4
mov dword [ebp + 4], edi
test edi, edi
mov byte [ebp - 4], 5
je 0x423ba2
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x34]
push 8
push eax
push edi
call fcn.00431810
mov dword [edi], vtable.CJpegEncoder.0
mov ecx, edi
jmp 0x423ba4
xor ecx, ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x30]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
push eax
mov eax, dword [ebp + 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
mov ebx, ecx
call edx
mov dword [ebp + 0x34], eax
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x423c2d
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.004979c7
add esp, 4
jmp 0x423c2d
push 0xc
call fcn.00479a8b
mov ebx, eax
add esp, 4
mov dword [ebp + 4], ebx
test ebx, ebx
mov byte [ebp - 4], 6
je 0x423c10
mov edx, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x48]
push 8
push edx
push ebx
call fcn.00431810
mov dword [ebx], vtable.CJpegEncoder.0
mov ecx, ebx
jmp 0x423c12
xor ecx, ecx
mov edx, dword [ebp + 0x58]
push 0
push edi
mov byte [ebp - 4], 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
lea edx, [ebp - 0x70]
push edx
mov ebx, ecx
call eax
mov dword [ebp + 0x34], eax
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x423c47
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 + 0x30], eax
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp + 4], esp
push str.playback_
call fcn.0040db80
lea ecx, [ebp + 0x14]
push ecx
push esi
call fcn.00422120
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 8
call fcn.00404a60
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423ca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x30]
push 0x526408
push edi
call fcn.0049a9ae
mov esi, eax
add esp, 8
test esi, esi
je 0x423cd7
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x58]
push esi
push ecx
push 1
push edx
call fcn.0049b1f1
add esp, 0x10
push esi
call fcn.0049acac
add esp, 4
mov eax, dword [ebp + 0x58]
push eax
call fcn.00479abb
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 0x423268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x423268
mov edi, dword [ebp + 0x60]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x40]
mov dword [edi], 0xffffffff
add eax, 0xfffffff0
jmp 0x423742