Function at 0x45368c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x4c], 0xa
mov edx, dword [ecx + 0x14]
test edx, edx
jle 0x453b2b
mov esi, ecx
lea eax, [ecx + 0x26e0]
add edx, edx
add edx, edx
lea ebx, [edx + ecx]
mov edx, dword [esi + 0x5c]
test edx, edx
jle 0x453b1b
mov edi, dword [eax]
test edi, edi
mov ebp, 1
cmovle edi, ebp
sub edi, 1
mov dword [eax], edi
cmp edx, 1
je 0x453ccb
mov edi, dword [eax + 4]
test edi, edi
mov ebp, 1
cmovle edi, ebp
sub edi, 1
mov dword [eax + 4], edi
cmp edx, 2
je 0x453817
mov edi, dword [eax + 8]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 8], edi
cmp edx, 3
je 0x453817
mov edi, dword [eax + 0xc]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xc], edi
cmp edx, 4
je 0x453817
mov edi, dword [eax + 0x10]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x10], edi
cmp edx, 5
je 0x453817
mov edi, dword [eax + 0x14]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x14], edi
cmp edx, 6
je 0x453817
mov edi, dword [eax + 0x18]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x18], edi
cmp edx, 7
je 0x453817
mov edi, dword [eax + 0x1c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x1c], edi
cmp edx, 8
je 0x453817
mov edi, dword [eax + 0x20]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x20], edi
cmp edx, 9
je 0x453817
mov edi, dword [eax + 0x24]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x24], edi
cmp edx, 0xa
je 0x453817
mov edi, dword [eax + 0x28]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x28], edi
cmp edx, 0xb
je 0x453817
mov edi, dword [eax + 0x2c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x2c], edi
cmp edx, 0xc
je 0x453817
mov edi, dword [eax + 0x30]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x30], edi
cmp edx, 0xd
je 0x453817
mov edi, dword [eax + 0x34]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x34], edi
cmp edx, 0xe
je 0x453817
mov edi, dword [eax + 0x38]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x38], edi
cmp edx, 0xf
je 0x453817
mov edi, dword [eax + 0x3c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x3c], edi
mov edi, dword [eax + 0x40]
test edi, edi
mov ebp, 1
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x40], edi
mov edi, dword [eax + 0x44]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x44], edi
cmp edx, 2
je 0x453962
mov edi, dword [eax + 0x48]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x48], edi
cmp edx, 3
je 0x453962
mov edi, dword [eax + 0x4c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x4c], edi
cmp edx, 4
je 0x453962
mov edi, dword [eax + 0x50]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x50], edi
cmp edx, 5
je 0x453962
mov edi, dword [eax + 0x54]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x54], edi
cmp edx, 6
je 0x453962
mov edi, dword [eax + 0x58]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x58], edi
cmp edx, 7
je 0x453962
mov edi, dword [eax + 0x5c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x5c], edi
cmp edx, 8
je 0x453962
mov edi, dword [eax + 0x60]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x60], edi
cmp edx, 9
je 0x453962
mov edi, dword [eax + 0x64]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x64], edi
cmp edx, 0xa
je 0x453962
mov edi, dword [eax + 0x68]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x68], edi
cmp edx, 0xb
je 0x453962
mov edi, dword [eax + 0x6c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x6c], edi
cmp edx, 0xc
je 0x453962
mov edi, dword [eax + 0x70]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x70], edi
cmp edx, 0xd
je 0x453962
mov edi, dword [eax + 0x74]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x74], edi
cmp edx, 0xe
je 0x453962
mov edi, dword [eax + 0x78]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x78], edi
cmp edx, 0xf
je 0x453962
mov edi, dword [eax + 0x7c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x7c], edi
mov edi, dword [eax + 0x80]
test edi, edi
mov ebp, 1
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x80], edi
mov edi, dword [eax + 0x84]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x84], edi
cmp edx, 2
je 0x453b1b
mov edi, dword [eax + 0x88]
test edi, edi
mov ebp, 1
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x88], edi
cmp edx, 3
je 0x453b1b
mov edi, dword [eax + 0x8c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x8c], edi
cmp edx, 4
je 0x453b1b
mov edi, dword [eax + 0x90]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x90], edi
cmp edx, 5
je 0x453b1b
mov edi, dword [eax + 0x94]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x94], edi
cmp edx, 6
je 0x453b1b
mov edi, dword [eax + 0x98]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x98], edi
cmp edx, 7
je 0x453b1b
mov edi, dword [eax + 0x9c]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0x9c], edi
cmp edx, 8
je 0x453b1b
mov edi, dword [eax + 0xa0]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xa0], edi
cmp edx, 9
je 0x453b1b
mov edi, dword [eax + 0xa4]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xa4], edi
cmp edx, 0xa
je 0x453b1b
mov edi, dword [eax + 0xa8]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xa8], edi
cmp edx, 0xb
je 0x453b1b
mov edi, dword [eax + 0xac]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xac], edi
cmp edx, 0xc
je 0x453b1b
mov edi, dword [eax + 0xb0]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xb0], edi
cmp edx, 0xd
je 0x453b1b
mov edi, dword [eax + 0xb4]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xb4], edi
cmp edx, 0xe
je 0x453b1b
mov edi, dword [eax + 0xb8]
test edi, edi
cmovle edi, ebp
sub edi, 1
mov dword [eax + 0xb8], edi
cmp edx, 0xf
je 0x453b1b
mov edx, dword [eax + 0xbc]
test edx, edx
mov ebp, 1
cmovle edx, ebp
sub edx, 1
mov dword [eax + 0xbc], edx
add esi, 4
add eax, 0xc0
cmp esi, ebx
jne 0x4536b5
mov dword [esp + 0x2c], ecx
call method.CBitAlloShort.fnc_scale_factors__
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + 0x14]
test esi, esi
jle 0x453cc7
lea eax, [ecx + 0x5c]
mov dword [esp + 0x30], eax
mov edi, ecx
lea ebx, [ecx + 0x2160]
mov dword [esp + 0x40], ebx
xor ebp, ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
lea ebx, [edi + 0x120]
mov edx, dword [esp + 0x40]
lea esi, [edx - 0x80]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], edi
lea ebp, [ebx + 0x2a78]
mov ecx, ebx
test eax, eax
jle 0x453c02
mov edi, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + esi*4 + 0x64]
mov dword [esp + 0x10], 0xbe99999a
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x600]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp], ebp
call sym._vect_quantB2
mov dword [edi], eax
add ebx, ebx
add ebx, ebx
add ebp, ebx
mov ecx, dword [esp + 0x2c]
add ecx, ebx
add esi, 1
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
add edi, 4
cmp esi, eax
jl 0x453b91
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x38], ebp
je 0x453c02
add ebx, 0x300
add dword [esp + 0x38], 0x40
lea ebp, [ebx + 0x2a78]
mov ecx, ebx
test eax, eax
jg 0x453b87
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add ebp, 1
mov esi, dword [esp + 0x34]
mov ebx, dword [esi + 0x14]
add dword [esp + 0x30], 4
add dword [esp + 0x40], 0xc0
add edi, 0x900
cmp ebp, ebx
jl 0x453b5c
mov ecx, dword [esp + 0x34]
test ebx, ebx
jle 0x453cc7
mov dword [esp + 0xc], 0
mov edx, dword [ecx + 0x5c]
mov dword [esp + 8], edx
lea eax, [ecx + 0x120]
mov dword [esp + 4], eax
lea ebp, [ecx + 0x20e0]
mov dword [esp], ebp
mov dword [esp + 0x2c], ecx
call method.CBitAlloShort.subdivide2_int_____16___int_____192___int__int_
sub esp, 0x10
mov edi, eax
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x54], eax
cmp dword [ecx + 0x14], 1
jle 0x453cab
mov dword [esp + 0xc], 1
mov esi, dword [ecx + 0x60]
mov dword [esp + 8], esi
lea ebx, [ecx + 0xa20]
mov dword [esp + 4], ebx
lea edx, [ecx + 0x21a0]
mov dword [esp], edx
call method.CBitAlloShort.subdivide2_int_____16___int_____192___int__int_
sub esp, 0x10
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x58], eax
add edi, eax
cmp dword [ecx + 0x30], edi
jle 0x453cbb
sub dword [esp + 0x4c], 1
jne 0x45369b
mov eax, edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 4
xor edi, edi
jmp 0x453cab
mov edx, dword [eax + 0x40]
test edx, edx
mov edi, 1
cmovle edx, edi
sub edx, 1
mov dword [eax + 0x40], edx
mov ebp, dword [eax + 0x80]
test ebp, ebp
cmovle ebp, edi
sub ebp, 1
mov dword [eax + 0x80], ebp
jmp 0x453b1b