Function at 0x4223e0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x51055c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
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 0x2048
mov dword [ebp + 0x38], esi
call fcn.00479a8b
mov ebx, dword [ebp + 0x58]
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 + 0xc], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x44], esi
mov byte [ebp + 0x4f], 1
mov byte [ebx + 0x2d], 0
mov byte [ebx + 0x70], 0
mov byte [ebp + 0x4e], 0
jne 0x42245b
mov byte [ebp + 0x4e], 1
call fcn.0042c690
mov dword [ebp + 0x20], eax
emms
mov dword [ebp - 4], esi
mov edx, dword [ebx + 0x64]
cmp edx, esi
mov dword [ebp + 0x34], edx
jl 0x4229f1
cmp edx, dword [ebx + 0x44]
jge 0x4229f1
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 0x4229f1
mov ecx, dword [ebx + 0x40]
add ecx, eax
add ecx, 0x28
push ecx
lea ecx, [ebp + 0x2c]
call fcn.0040db80
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x2c]
cmp dword [eax - 4], 1
jle 0x4224ce
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.004314d0
add esp, 4
test eax, eax
jne 0x422508
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 0x422fbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x422fbf
mov al, byte [edi + 0xa]
test al, al
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x40], edx
jne 0x42255d
push 0x448
call fcn.00479a8b
mov esi, eax
add esp, 4
mov dword [ebp + 4], esi
test esi, esi
mov byte [ebp - 4], 2
je 0x422552
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
push eax
push ecx
push esi
call fcn.004313e0
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [ebp - 4], 1
mov dword [ebp + 0x38], esi
jmp 0x422592
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp + 0x38], esi
jmp 0x422592
cmp al, 1
jne 0x42258b
push 0x148
call fcn.00479a8b
mov esi, eax
add esp, 4
test esi, esi
je 0x422584
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
call fcn.00431df0
mov dword [ebp + 0x38], eax
jmp 0x422592
xor eax, eax
mov dword [ebp + 0x38], eax
jmp 0x422592
mov dword [ebp + 0x38], 0
xor eax, eax
cmp dword [ebp + 0x3c], 0x160
setle al
sub eax, 1
and eax, 0x20000
add eax, 0x30000
push eax
call fcn.00479ab6
mov dword [ebp + 0x1c], eax
mov eax, dword [edi + 0x18]
cdq
idiv dword [edi + 0x1c]
mov edx, dword [ebp + 0x34]
add esp, 4
cmp edx, dword [ebx + 0x64]
mov dword [ebx + 0x12c], eax
jne 0x4225db
mov edx, edi
mov edi, dword [ebx + 0x68]
push 0
call fcn.00431690
add esp, 4
mov ecx, dword [ebp + 0x40]
mov edi, dword [ebp + 0x3c]
lea eax, [ebx + 0x6c]
mov ebx, dword [ebp + 0x20]
push ecx
call fcn.0042df40
mov dword [ebp + 0x24], 0
mov ebx, dword [ebp + 0x58]
cmp byte [ebx + 0x2c], 0
je 0x422f2a
cmp byte [ebx + 0x2d], 0
je 0x422657
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4225f4
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x3c]
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 + 0x20]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 1
call fcn.0042dfc0
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4225f4
cmp byte [ebx + 0x2e], 0
je 0x4226f5
cmp byte [ebx + 0x2f], 0
je 0x42269c
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x1c]
mov byte [ebx + 0x2f], 0
call fcn.00431550
test eax, eax
je 0x422f2d
test byte [esi + 0x2038], 0x18
jne 0x42269c
mov ecx, dword [ebp + 0x38]
mov edx, dword [esi + 0x203a]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push edi
call eax
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x24], 0
je 0x4225f4
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x3c]
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 + 0x20]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 1
call fcn.0042dfc0
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4225f4
cmp byte [ebx + 0x30], 0
je 0x422737
mov eax, dword [ebx + 0x28]
sub dword [ebx + 0x124], eax
mov byte [ebx + 0x30], 0
jns 0x422714
mov dword [ebx + 0x124], 0
mov edi, dword [ebx + 0x124]
sub edi, dword [ebx + 0x118]
mov edx, dword [ebp + 0x48]
imul edi, edi, 0x3e8
push 1
call fcn.00431690
add esp, 4
mov byte [ebp + 0x4f], 1
cmp byte [ebx + 0x31], 0
je 0x42276f
mov ecx, dword [ebx + 0x28]
add dword [ebx + 0x124], ecx
mov eax, dword [ebx + 0x124]
sub eax, dword [ebx + 0x118]
mov edx, dword [ebp + 0x48]
imul eax, eax, 0x3e8
push 0
mov edi, eax
mov byte [ebx + 0x31], 0
call fcn.00431690
add esp, 4
mov byte [ebp + 0x4f], 1
cmp dword [ebx + 0x128], 0
je 0x4229ff
xor esi, esi
mov dword [ebx + 0x128], esi
mov byte [ebp + 0x4f], 1
mov eax, dword [ebx + 0x44]
cmp esi, eax
mov dword [ebp + 0x34], esi
jge 0x4229a3
add eax, 0xffffffff
cmp esi, eax
jne 0x4227a1
mov byte [ebp + 0x4e], 1
test esi, esi
jl 0x4229f1
cmp esi, dword [ebx + 0x44]
jge 0x4229f1
mov eax, dword [ebx + 0x124]
mov edi, esi
imul edi, edi, 0x8c
add edi, dword [ebx + 0x40]
mov ecx, dword [edi + 0xc]
cmp eax, ecx
mov dword [ebp + 0x28], edi
jl 0x4229e9
mov edx, dword [edi + 0x10]
add edx, ecx
cmp eax, edx
jge 0x4229e9
cmp dword [ebp], esi
je 0x42297e
mov dword [ebx + 0x64], esi
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x118], eax
mov eax, dword [ebx + 0x44]
add eax, 0xffffffff
cmp esi, eax
mov dword [ebp], esi
je 0x422804
mov byte [ebp + 0x4e], 0
mov esi, dword [ebp + 0x48]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x28
push edi
lea ecx, [ebp + 0x14]
mov dword [esi], 0xffffffff
call fcn.0040db80
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x14]
cmp dword [eax - 4], 1
jle 0x42283e
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0x14]
call fcn.00404ae0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x48]
push eax
call fcn.004314d0
add esp, 4
test eax, eax
jne 0x4228a4
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp + 0x4e], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422875
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 0x422898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x422f69
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
mov dword [ebp + 0x40], ecx
mov ecx, dword [ebp + 0x38]
test ecx, ecx
mov dword [ebp + 0x3c], edi
je 0x4228c6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 0x38], 0
mov al, byte [esi + 0xa]
test al, al
jne 0x42290c
push 0x448
call fcn.00479a8b
mov esi, eax
add esp, 4
mov dword [ebp + 0x18], esi
test esi, esi
mov byte [ebp - 4], 4
je 0x422901
mov ecx, dword [ebp + 0x40]
push ecx
push edi
push esi
call fcn.004313e0
mov dword [esi], vtable.CMpeg4Decoder.0
mov byte [ebp - 4], 3
mov dword [ebp + 0x38], esi
jmp 0x422940
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp + 0x38], esi
jmp 0x422940
cmp al, 1
jne 0x422939
push 0x148
call fcn.00479a8b
mov esi, eax
add esp, 4
test esi, esi
je 0x422932
mov eax, dword [ebp + 0x40]
mov ecx, edi
call fcn.00431df0
mov dword [ebp + 0x38], eax
jmp 0x422940
xor eax, eax
mov dword [ebp + 0x38], eax
jmp 0x422940
mov dword [ebp + 0x38], 0
mov edx, dword [ebp + 0x40]
mov edi, dword [ebp + 0x3c]
lea eax, [ebx + 0x6c]
mov ebx, dword [ebp + 0x20]
push edx
call fcn.0042df40
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422975
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x58]
mov eax, dword [ebx + 0x124]
mov edx, dword [ebp + 0x48]
mov byte [ebx + 0x2c], 1
sub eax, dword [edi + 0xc]
push 0
imul eax, eax, 0x3e8
mov edi, eax
mov dword [ebx + 0x68], eax
call fcn.00431690
add esp, 4
cmp esi, dword [ebx + 0x44]
jne 0x4229ff
add esi, 0xffffffff
js 0x4229f1
cmp esi, dword [ebx + 0x44]
jge 0x4229f1
imul esi, esi, 0x8c
add esi, dword [ebx + 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 [ebx + 0x124], ecx
jle 0x4229f6
mov byte [ebp + 0x4e], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42288c
add esi, 1
jmp 0x422788
call fcn.0047c168
mov byte [ebp + 0x4e], 0
jmp 0x42287f
mov eax, dword [ebx + 0x24]
cmp eax, 1
jne 0x422b34
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x1c]
call fcn.004315f0
test eax, eax
je 0x422f2a
mov edx, esi
mov al, byte [edx + 0x2038]
shr al, 3
and al, 3
jne 0x422a6e
cmp byte [ebp + 0x4f], 0
mov eax, dword [edx + 0x203e]
je 0x422a49
mov ecx, eax
sub ecx, eax
mov byte [ebp + 0x4f], 0
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x44], ecx
jmp 0x422a54
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x30], eax
sub eax, ecx
mov dword [ebp + 0x44], 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 + 0x24], eax
jmp 0x422c17
cmp al, 1
jne 0x422c17
cmp byte [0x55f580], 0
je 0x4225f4
cmp dword [ebx + 0x130], 0
je 0x4225f4
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x422aa9
push 0x2800
call fcn.00479ab6
add esp, 4
mov dword [ebp + 0xc], eax
mov edi, eax
cmp dword [ebp + 8], 0
jne 0x422ad2
push 0x38
call fcn.00479a8b
add esp, 4
mov esi, eax
push 1
push 0x3e80
mov eax, 0x10
mov dword [ebp + 8], esi
call fcn.00431c70
add esp, 8
mov ecx, dword [ebp + 0x48]
mov edx, dword [ecx + 0x203a]
mov ebx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x1c]
mov ecx, edi
call fcn.00431cc0
add esp, 4
cmp dword [ebp + 0x10], 0
mov ebx, eax
jne 0x422b1e
push 0x188
call fcn.00479a8b
mov esi, eax
add esp, 4
push ebx
mov edx, 1
mov ecx, 0x10
mov eax, 0x3e80
mov dword [ebp + 0x10], esi
call fcn.004304c0
add esp, 4
mov esi, dword [ebp + 0x10]
push 0x2800
push edi
call fcn.004305b0
add esp, 8
jmp 0x4225f4
jle 0x422bad
mov dword [ebp + 0x34], 0
lea ecx, [ecx]
mov eax, dword [ebp + 0x34]
cmp eax, dword [ebx + 0x24]
jge 0x422c17
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x1c]
call fcn.00431550
test eax, eax
je 0x422f2a
mov edx, esi
test byte [edx + 0x2038], 0x18
jne 0x422ba7
cmp byte [ebp + 0x4f], 0
je 0x422b81
mov ecx, dword [edx + 0x203e]
mov byte [ebp + 0x4f], 0
mov eax, ecx
mov dword [ebp + 0x30], ecx
jmp 0x422b8d
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 + 0x44], eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push edi
call eax
mov dword [ebp + 0x24], eax
add dword [ebp + 0x34], 1
jmp 0x422b40
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x1c]
call fcn.00431550
test eax, eax
je 0x422c17
mov edx, esi
mov al, byte [edx + 0x2038]
shr al, 3
and al, 3
jne 0x422c0c
cmp byte [ebp + 0x4f], 0
mov eax, dword [edx + 0x203e]
je 0x422be7
mov ecx, eax
mov dword [ebp + 0x30], ecx
sub ecx, eax
mov byte [ebp + 0x4f], 0
mov dword [ebp + 0x44], ecx
jmp 0x422bf2
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x30], eax
sub eax, ecx
mov dword [ebp + 0x44], eax
mov edx, dword [edx + 0x203a]
mov ecx, dword [ebp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [ebp + 0x1c]
push edx
call eax
mov dword [ebp + 0x24], eax
jmp 0x422c17
cmp al, 1
je 0x4225f4
mov ebx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x422f2a
mov ecx, dword [eax]
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 + 0x3c]
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 [ebx + 0x24]
cmp eax, 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], 1
jne 0x422cb0
cmp byte [0x55f580], 0
je 0x422cb2
cmp dword [ebx + 0x130], 0
je 0x422cb2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x170]
cmp eax, 9
jle 0x422c83
mov eax, 0x14
sub dword [ebp + 0x44], eax
jmp 0x422cc2
cmp eax, 8
jle 0x422c92
mov eax, 0xa
sub dword [ebp + 0x44], eax
jmp 0x422cc2
cmp eax, 7
jle 0x422ca1
mov eax, 3
sub dword [ebp + 0x44], eax
jmp 0x422cc2
xor ecx, ecx
cmp eax, 6
setg cl
mov eax, ecx
sub dword [ebp + 0x44], eax
jmp 0x422cc2
jle 0x422cb8
sub dword [ebp + 0x44], 2
jmp 0x422cc2
mov edx, dword [ebx + 0x20]
imul edx, dword [ebp + 0x44]
mov dword [ebp + 0x44], edx
cmp dword [ebp + 0x44], 0
jge 0x422ccf
mov dword [ebp + 0x44], 0
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebx + 0x6c]
push ecx
mov ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x68]
push edx
call fcn.0042dfc0
mov ebx, dword [ebx + 0x120]
test bl, 1
je 0x4225f4
mov eax, dword [ebp + 0x58]
mov edx, dword [ebp + 0x48]
and ebx, 0xfffffffe
mov ecx, 0x160
mov dword [eax + 0x120], ebx
cmp ecx, dword [edx + 0x10]
sbb esi, esi
and esi, 0x20000
add esi, 0x30000
push esi
call fcn.00479ab6
add esp, 4
cmp dword [ebp + 0x3c], 0x160
mov ebx, eax
mov dword [ebp + 0x28], ebx
jle 0x422df5
cmp dword [ebp + 0x40], 0x120
jg 0x422df5
push 0x2c
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004a0080
mov ecx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x40]
push ecx
add ebx, ebx
push 1
lea edi, [ebp - 0x9c]
mov dword [ebp + 0x18], ebx
call fcn.00431150
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov edx, edi
push edx
lea ebx, [ebp - 0x68]
call fcn.00437020
add esp, 0x18
push 0xc
mov dword [ebp - 0x7c], 1
call fcn.00479a8b
mov edi, eax
add esp, 4
mov dword [ebp + 0x34], edi
test edi, edi
mov byte [ebp - 4], 5
je 0x422db9
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x18]
push 8
push eax
push edi
call fcn.00431810
mov dword [edi], vtable.CJpegEncoder.0
mov ecx, edi
jmp 0x422dbb
xor ecx, ecx
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
push esi
push ebx
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp + 0x18], ecx
call edx
mov dword [ebp + 0x34], eax
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x422e43
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.004979c7
add esp, 4
jmp 0x422e43
push 0xc
call fcn.00479a8b
mov edi, eax
add esp, 4
mov dword [ebp + 0x18], edi
test edi, edi
mov byte [ebp - 4], 6
je 0x422e25
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
push 8
push edx
push edi
call fcn.00431810
mov dword [edi], vtable.CJpegEncoder.0
mov ecx, edi
jmp 0x422e27
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 + 0x18], ecx
call eax
mov ebx, dword [ebp + 0x28]
mov dword [ebp + 0x34], eax
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422e5d
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 + 0x28], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
push str.playback_
mov byte [ebp - 4], 7
call fcn.0040db80
mov edx, dword [ebp + 0x58]
lea ecx, [ebp + 4]
push ecx
push edx
call fcn.00422120
push eax
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 8
call fcn.00404a60
mov byte [ebp - 4], 7
mov eax, dword [ebp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422ebd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x28]
push 0x526408
push edi
call fcn.0049a9ae
mov esi, eax
add esp, 8
test esi, esi
je 0x422eed
mov ecx, dword [ebp + 0x34]
push esi
push ecx
push 1
push ebx
call fcn.0049b1f1
add esp, 0x10
push esi
call fcn.0049acac
add esp, 4
push ebx
call fcn.00479abb
mov ecx, dword [ebp + 0x18]
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 0x4225f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4225f4
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 0x42288c
mov eax, dword [ebp + 0x20]
add ebx, 0x6c
push ebx
call fcn.0042e900
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x422f84
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x422f99
call fcn.00430530
push edi
call fcn.00479abb
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x422fa9
push eax
call fcn.00479abb
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x422fb9
push eax
call fcn.00479abb
add esp, 4
mov edi, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x58]
push edi
call fcn.00479abb
add esp, 4
cmp byte [ebp + 0x4e], 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 0x422fef
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, 0x50
mov esp, ebp
pop ebp
ret 4