Function at 0x462fe0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x463e59
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
call sub.mdes.dll_CreateDvdGrabber
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x128], eax
xor eax, eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], 1
mov dword [ebp - 0xf4], 1
xor eax, eax
mov dword [ebp - 0xf0], eax
xor eax, eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], 1
xor eax, eax
mov dword [ebp - 0x104], eax
xor eax, eax
mov dword [ebp - 0xbc], eax
xor eax, eax
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
xor eax, eax
mov dword [ebp - 0xc8], eax
xor eax, eax
mov dword [ebp - 0xc4], eax
xor eax, eax
mov dword [ebp - 0xc0], eax
fld dword [0x463e6c]
fdiv qword [ebx + 0x48]
call fcn.00403294
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x40], eax
push 0xc3500
call fcn.0040641c
pop ecx
mov dword [ebp - 0x64], eax
mov edx, 0xc3500
mov eax, dword [ebp - 0x64]
call fcn.00407614
xor eax, eax
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x40]
imul dword [ebx + 0x44]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
shr eax, 2
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x99], 0
mov esi, dword [ebx + 0x74]
cmp esi, dword [ebx + 0x40]
jge 0x463136
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x78]
cmp edi, dword [ebx + 0x44]
jge 0x463141
mov edi, dword [ebx + 0x44]
cmp byte [ebx + 0x5c], 0
je 0x4631c1
cmp byte [ebx + 0x3c], 0
je 0x4631c1
mov dword [ebp - 0xc], 0xa
mov eax, esi
imul edi
test eax, eax
jns 0x46315f
add eax, 3
sar eax, 2
push eax
mov eax, esi
imul edi
test eax, eax
jns 0x46316e
add eax, 3
sar eax, 2
push eax
push 0x2000
mov ecx, esi
imul ecx, edi
mov dl, 1
mov eax, dword [0x462bbc]
call fcn.004646c0
mov edx, eax
mov eax, dword [ebx + 0x6c]
call fcn.0041e584
dec dword [ebp - 0xc]
jne 0x463154
push 0
push 0
push 0
call fcn.00406cb8
mov dword [ebx + 0x64], eax
lea eax, [ebp - 0x80]
push eax
push 0
push ebx
push 0x462d50
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x60], eax
mov byte [ebx + 0x70], 0
xor eax, eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x463c76
inc eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 4]
call fcn.0042cba4
mov esi, eax
mov eax, dword [ebx + 0x58]
push eax
mov eax, dword [esi + 4]
call fcn.00404d94
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jl 0x463c67
cmp byte [esi + 0x28], 0
je 0x463223
push dword [esi + 0x1c]
push dword [esi + 0x18]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp byte [ebx + 0x3d], 0
je 0x463258
cmp byte [esi + 0x2c], 0
je 0x463258
cmp byte [ebx + 0x3e], 0
jne 0x463258
cmp dword [ebp - 0x40], 0
je 0x463245
mov eax, dword [ebp - 0x40]
push eax
call sub.CodecBri.dll_ARes_Free
pop ecx
mov eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.CodecBri.dll_ARes_Create
add esp, 8
mov dword [ebp - 0x40], eax
cmp byte [ebx + 0x3c], 0
je 0x463ae5
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x124], eax
mov eax, dword [esi + 0x30]
sar eax, 1
jns 0x463275
adc eax, 0
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 0x30]
sar eax, 1
jns 0x463285
adc eax, 0
mov dword [ebp - 0x11c], eax
xor eax, eax
mov dword [ebp - 0x118], eax
cmp byte [esi + 0x61], 0
je 0x4632af
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x30]
push eax
call sub.CodecBri.dll_IMD_Create
add esp, 8
mov dword [ebp - 0xa0], eax
fld dword [0x463e70]
fdiv qword [esi + 0x40]
fstp qword [ebp - 0x50]
wait
fild qword [ebp - 0x60]
fdiv qword [ebx + 0x48]
fmul dword [0x463e6c]
call fcn.00403288
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
cmp byte [esi + 0x2b], 0
je 0x463452
cmp byte [esi + 0x2a], 0
je 0x463363
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0xc]
imul edx
mov dword [ebp - 0x90], eax
push dword [esi + 0x3c]
push dword [esi + 0x38]
mov eax, dword [esi + 0x48]
push eax
push 0
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x40]
push eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
push eax
call sub.CodecBri.dll_VRes_CreateByResizeModeWithAspectRatio
add esp, 0x20
mov dword [esi + 0x58], eax
cmp byte [ebx + 0x5c], 0
je 0x4633c3
push dword [esi + 0x3c]
push dword [esi + 0x38]
mov eax, dword [esi + 0x48]
push eax
push 0
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x40]
push eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
push eax
call sub.CodecBri.dll_VRes_CreateByResizeModeWithAspectRatio
add esp, 0x20
mov dword [esi + 0x5c], eax
jmp 0x4633c3
mov eax, dword [esi + 0x30]
imul dword [esi + 0x34]
mov dword [ebp - 0x90], eax
push dword [esi + 0x3c]
push dword [esi + 0x38]
mov eax, dword [esi + 0x48]
push eax
push 0
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x40]
push eax
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x30]
push eax
call sub.CodecBri.dll_VRes_CreateByResizeModeWithAspectRatio
add esp, 0x20
mov dword [esi + 0x58], eax
cmp byte [ebx + 0x5c], 0
je 0x4633c3
push dword [esi + 0x3c]
push dword [esi + 0x38]
mov eax, dword [esi + 0x48]
push eax
push 0
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x40]
push eax
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x30]
push eax
call sub.CodecBri.dll_VRes_CreateByResizeModeWithAspectRatio
add esp, 0x20
mov dword [esi + 0x5c], eax
cmp dword [ebp - 0xc8], 0
je 0x4633d9
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xc4], 0
je 0x4633ef
mov eax, dword [ebp - 0xc4]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xc0], 0
je 0x463405
mov eax, dword [ebp - 0xc0]
push eax
call fcn.00406434
pop ecx
mov eax, dword [ebx + 0x40]
imul dword [ebx + 0x44]
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0xc8], eax
mov eax, dword [ebx + 0x40]
imul dword [ebx + 0x44]
test eax, eax
jns 0x463425
add eax, 3
sar eax, 2
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0xc4], eax
mov eax, dword [ebx + 0x40]
imul dword [ebx + 0x44]
test eax, eax
jns 0x463442
add eax, 3
sar eax, 2
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0xc0], eax
cmp byte [esi + 0x2a], 0
je 0x463503
cmp dword [ebp - 0xbc], 0
je 0x463472
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xb8], 0
je 0x463488
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xb4], 0
je 0x46349e
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00406434
pop ecx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0xc]
imul edx
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0xbc], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0xc]
imul edx
test eax, eax
jns 0x4634ce
add eax, 3
sar eax, 2
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0xb8], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0xc]
imul edx
test eax, eax
jns 0x4634f3
add eax, 3
sar eax, 2
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
test eax, eax
jl 0x463c49
cmp byte [esi + 0x29], 0
je 0x463548
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp edx, dword [esi + 0x24]
jne 0x463542
cmp eax, dword [esi + 0x20]
jbe 0x463548
jmp 0x463c49
jg 0x463c49
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [esi + 0x18]
sbb edx, dword [esi + 0x1c]
add eax, dword [ebp - 0x98]
adc edx, dword [ebp - 0x94]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
fild qword [ebp - 0x28]
fdiv dword [0x463e6c]
fadd qword [ebp - 0x50]
fmul qword [ebx + 0x48]
fild qword [ebp - 0x60]
fsubp st(1)
fstp qword [ebp - 0x78]
wait
mov dword [ebp - 0x44], 1
fld xword [0x463e74]
fcomp qword [ebp - 0x78]
fnstsw ax
sahf
jbe 0x463598
xor eax, eax
mov dword [ebp - 0x44], eax
fld xword [0x463e80]
fcomp qword [ebp - 0x78]
fnstsw ax
sahf
jae 0x4635b1
fld qword [ebp - 0x78]
call fcn.00403288
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x46379f
fild qword [ebp - 0x60]
fdiv qword [ebx + 0x48]
fmul dword [0x463e6c]
call fcn.00403288
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x44]
cdq
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0xa0], 0
je 0x46363a
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x12c], eax
push 0
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0xa0]
push eax
call sub.CodecBri.dll_IMD_Deinterlace
add esp, 0x10
cmp byte [esi + 0x2a], 0
je 0x463680
mov eax, dword [esi + 0x34]
push eax
lea eax, [esi + 8]
push eax
lea edx, [ebp - 0xbc]
lea eax, [ebp - 0xb0]
mov ecx, dword [esi + 0x30]
call fcn.00462c70
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0x39], 0
cmp byte [esi + 0x2b], 0
je 0x46379f
cmp byte [ebx + 0x5c], 0
je 0x4636a1
cmp byte [ebp - 0x99], 0
je 0x463775
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xd0], eax
xor eax, eax
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xe0], eax
xor eax, eax
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xd8]
push eax
mov eax, dword [esi + 0x58]
push eax
call sub.CodecBri.dll_VRes_ResizeRaw
add esp, 0x14
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0x40]
imul dword [ebx + 0x44]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
shr eax, 2
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
shr eax, 2
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x39], 1
jmp 0x46379f
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
shr eax, 2
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
shr eax, 2
mov dword [ebp - 0x8c], eax
cmp byte [ebx + 0x5c], 0
jne 0x463807
cmp dword [ebx + 0x2c], 0
je 0x463807
mov edi, dword [ebp - 0x44]
test edi, edi
jle 0x463807
mov dword [ebp - 0x10], 1
mov eax, dword [esi + 0x54]
push eax
cmp dword [ebp - 0x10], 1
setne al
push eax
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x40]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebx + 0x28]
push eax
call dword [ebx + 0x2c]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
inc dword [ebp - 0x10]
dec edi
jne 0x4637b9
cmp byte [ebx + 0x3d], 0
je 0x463934
cmp byte [ebx + 0x3e], 0
je 0x463857
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
push 0
push 0x989680
mov eax, dword [ebx + 0x50]
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x38]
sbb edx, dword [ebp - 0x34]
call fcn.004056f0
call fcn.00405714
add eax, eax
imul dword [ebx + 0x54]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x463ad6
jmp 0x4638f3
cmp byte [esi + 0x2c], 0
je 0x4638f3
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.CodecBri.dll_ARes_GetOutBufferSize
add esp, 0x10
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x7c]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x463896
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4638bd
jmp 0x46389a
pop edx
pop eax
jle 0x4638bd
cmp dword [ebp - 0x68], 0
je 0x4638aa
mov eax, dword [ebp - 0x68]
push eax
call fcn.00406434
pop ecx
mov eax, dword [ebp - 0x7c]
add dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.CodecBri.dll_ARes_Convert
add esp, 0x1c
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x3c], 0
jne 0x463905
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x1c], eax
cmp byte [ebx + 0x5c], 0
jne 0x463934
cmp dword [ebx + 0x34], 0
je 0x463934
mov eax, dword [esi + 0x54]
push eax
mov eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebx + 0x50]
push eax
push 0x10
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebx + 0x28]
push eax
call dword [ebx + 0x34]
cmp byte [ebx + 0x5c], 0
je 0x463a92
cmp dword [ebp - 0x44], 0
jne 0x46394e
cmp byte [ebx + 0x3d], 0
je 0x463ad6
push 0xffffffffffffffff
mov eax, dword [ebx + 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x463976
mov eax, dword [ebx + 0x64]
push eax
call sub.kernel32.dll_ReleaseMutex
push 1
call sub.kernel32.dll_Sleep_1
push 0xffffffffffffffff
mov eax, dword [ebx + 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebx + 0x6c]
cmp dword [eax + 8], 0
je 0x46395b
mov edi, dword [ebx + 0x6c]
mov edx, dword [edi + 8]
dec edx
mov eax, edi
call fcn.0041e6e0
mov edi, eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax + 8]
dec edx
call fcn.0041e5d0
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 8]
mov edx, dword [ebx + 0x6c]
cmp eax, dword [edx + 8]
setg byte [ebp - 0x99]
mov eax, dword [ebx + 0x64]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x10], eax
cmp dword [ebp - 0x44], 0
setne al
mov byte [edi + 0x20], al
mov eax, dword [esi + 0x54]
mov dword [edi + 0x40], eax
cmp byte [esi + 0x2b], 0
je 0x4639db
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x44], eax
jmp 0x4639e0
xor eax, eax
mov dword [edi + 0x44], eax
mov al, byte [ebp - 0x39]
mov byte [edi + 0x48], al
cmp byte [edi + 0x20], 0
je 0x463a40
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x84]
call fcn.00402ff0
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x88]
call fcn.00402ff0
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x8c]
call fcn.00402ff0
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x34], eax
mov al, byte [ebx + 0x3d]
mov byte [edi + 0x21], al
test al, al
je 0x463a74
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00464784
mov edx, dword [edi + 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.00402ff0
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x3c], eax
push 0xffffffffffffffff
mov eax, dword [ebx + 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov edx, edi
mov eax, dword [ebx + 0x68]
call fcn.0041e584
mov eax, dword [ebx + 0x64]
push eax
call sub.kernel32.dll_ReleaseMutex
cmp byte [ebx + 0x3d], 0
je 0x463ad6
mov eax, dword [ebp - 0x1c]
sar eax, 1
jns 0x463aa2
adc eax, 0
cdq
idiv dword [ebx + 0x54]
cdq
add eax, dword [ebp - 0x58]
adc edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebx + 0x50]
cdq
push edx
push eax
push 0
push 0x989680
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
call fcn.004056f0
call fcn.00405714
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp byte [ebx + 0x24], 0
je 0x463503
jmp 0x463c49
cmp byte [ebx + 0x3c], 0
jne 0x463af7
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
test eax, eax
jl 0x463c49
cmp byte [esi + 0x29], 0
je 0x463b3c
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp edx, dword [esi + 0x24]
jne 0x463b36
cmp eax, dword [esi + 0x20]
jbe 0x463b3c
jmp 0x463c49
jg 0x463c49
cmp byte [esi + 0x2c], 0
je 0x463bd8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.CodecBri.dll_ARes_GetOutBufferSize
add esp, 0x10
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x7c]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x463b7b
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x463ba2
jmp 0x463b7f
pop edx
pop eax
jle 0x463ba2
cmp dword [ebp - 0x68], 0
je 0x463b8f
mov eax, dword [ebp - 0x68]
push eax
call fcn.00406434
pop ecx
mov eax, dword [ebp - 0x7c]
add dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0040641c
pop ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.CodecBri.dll_ARes_Convert
add esp, 0x1c
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x34], 0
je 0x463c01
mov eax, dword [esi + 0x54]
push eax
mov eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebx + 0x50]
push eax
push 0x10
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebx + 0x28]
push eax
call dword [ebx + 0x34]
mov eax, dword [ebp - 0x1c]
sar eax, 1
jns 0x463c0b
adc eax, 0
cdq
idiv dword [ebx + 0x54]
cdq
add eax, dword [ebp - 0x58]
adc edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebx + 0x50]
cdq
push edx
push eax
push 0
push 0x989680
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
call fcn.004056f0
call fcn.00405714
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp byte [ebx + 0x24], 0
je 0x463ae5
cmp dword [ebp - 0xa0], 0
je 0x463c67
mov eax, dword [ebp - 0xa0]
push eax
call sub.CodecBri.dll_IMD_Free
pop ecx
xor eax, eax
mov dword [ebp - 0xa0], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0xa4]
jne 0x4631e3
cmp byte [ebx + 0x5c], 0
je 0x463ce9
cmp byte [ebx + 0x3c], 0
je 0x463ce9
mov byte [ebx + 0x70], 1
push 0xffffffffffffffff
mov eax, dword [ebx + 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebx + 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 0x64]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x463ce1
inc eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x6c]
call fcn.0041e6e0
call fcn.00403a80
inc dword [ebp - 0xc]
dec dword [ebp - 0xa4]
jne 0x463cc6
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 8]
cmp byte [ebx + 0x3c], 0
je 0x463d02
cmp byte [ebx + 0x5c], 0
jne 0x463d02
cmp dword [ebx + 0x30], 0
je 0x463d02
mov eax, dword [ebx + 0x28]
push eax
call dword [ebx + 0x30]
cmp byte [ebx + 0x3d], 0
je 0x463d1c
cmp byte [ebx + 0x5c], 0
jne 0x463d1c
lea eax, [ebx + 0x3d]
test eax, eax
je 0x463d1c
mov eax, dword [ebx + 0x28]
push eax
call dword [ebx + 0x38]
cmp dword [ebp - 0x64], 0
je 0x463d2c
mov eax, dword [ebp - 0x64]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0x68], 0
je 0x463d3c
mov eax, dword [ebp - 0x68]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xc8], 0
je 0x463d52
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xc4], 0
je 0x463d68
mov eax, dword [ebp - 0xc4]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xc0], 0
je 0x463d7e
mov eax, dword [ebp - 0xc0]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xbc], 0
je 0x463d94
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xb8], 0
je 0x463daa
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00406434
pop ecx
cmp dword [ebp - 0xb4], 0
je 0x463dc0
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00406434
pop ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x463e1b
inc eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 4]
call fcn.0042cba4
mov esi, eax
cmp dword [esi + 0x58], 0
je 0x463dfb
mov eax, dword [esi + 0x58]
push eax
call sub.CodecBri.dll_VRes_Free
pop ecx
xor eax, eax
mov dword [esi + 0x58], eax
cmp dword [esi + 0x5c], 0
je 0x463e10
mov eax, dword [esi + 0x5c]
push eax
call sub.CodecBri.dll_VRes_Free
pop ecx
xor eax, eax
mov dword [esi + 0x5c], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0xa4]
jne 0x463dd9
cmp dword [ebp - 0x40], 0
je 0x463e2b
mov eax, dword [ebp - 0x40]
push eax
call sub.CodecBri.dll_ARes_Free
pop ecx
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0x20], eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463e60
lea eax, [ebp - 8]
call fcn.004062f0
ret