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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x38], 0x64
lea esi, [ecx + 0x120]
lea eax, [ecx + 0x20e0]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x14]
test edx, edx
jle 0x4543c1
mov ebx, ecx
lea eax, [ecx + 0x26e0]
add edx, edx
add edx, edx
add ecx, edx
cmp dword [ebx + 0x54], 0xfb5
jg 0x454555
add ebx, 4
add eax, 0xc0
cmp ecx, ebx
jne 0x4543a8
mov edi, dword [esp + 0x18]
mov ecx, edi
call method.CBitAlloShort.fnc_scale_factors__
mov eax, edi
mov ecx, dword [edi + 0x14]
test ecx, ecx
jle 0x4549d4
lea ebx, [edi + 0x5c]
mov dword [esp + 0x1c], ebx
add eax, 0x2160
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
lea ebx, [edi + 0x120]
mov ebp, dword [esp + 0x28]
add ebp, 0xffffff80
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
lea ebp, [ebx + 0x2a78]
mov ecx, ebx
test eax, eax
jle 0x45448d
mov edi, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + esi*4 + 0x64]
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x600]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], ebp
call sym._vect_quant
mov dword [edi], eax
add ebx, ebx
add ebx, ebx
add ebp, ebx
mov ecx, dword [esp + 0x14]
add ecx, ebx
add esi, 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
add edi, 4
cmp esi, eax
jl 0x454424
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x20], ebp
je 0x45448d
add ebx, 0x300
add dword [esp + 0x20], 0x40
lea ebp, [ebx + 0x2a78]
mov ecx, ebx
test eax, eax
jg 0x45441a
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add ecx, 1
mov esi, dword [esp + 0x18]
mov ebx, dword [esi + 0x14]
add dword [esp + 0x1c], 4
add dword [esp + 0x28], 0xc0
add edi, 0x900
cmp ecx, ebx
jl 0x4543ef
mov esi, dword [esp + 0x34]
test ebx, ebx
jle 0x4549d4
mov dword [esp + 0xc], 0
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, ebp
call method.CBitAlloShort.subdivide2_int_____16___int_____192___int__int_
sub esp, 0x10
mov edi, eax
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x14], 1
jle 0x45452a
mov dword [esp + 0xc], 1
mov ebx, dword [ebp + 0x60]
mov dword [esp + 8], ebx
lea eax, [ebp + 0xa20]
mov dword [esp + 4], eax
lea edx, [ebp + 0x21a0]
mov dword [esp], edx
mov ecx, ebp
call method.CBitAlloShort.subdivide2_int_____16___int_____192___int__int_
sub esp, 0x10
mov dword [ebp + 0x58], eax
add edi, eax
mov ebp, dword [esp + 0x18]
cmp dword [ebp + 0x54], 0xfb5
jg 0x454540
cmp dword [ebp + 0x58], 0xfb5
jle 0x45454b
sub dword [esp + 0x38], 1
jne 0x45438f
mov eax, edi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x5c]
test edx, edx
jle 0x4543b5
mov edi, dword [eax]
mov ebp, 0x7e
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax], edi
cmp edx, 1
je 0x4549db
mov edi, dword [eax + 4]
mov ebp, 0x7e
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 4], edi
cmp edx, 2
je 0x4546b7
mov edi, dword [eax + 8]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 8], edi
cmp edx, 3
je 0x4546b7
mov edi, dword [eax + 0xc]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xc], edi
cmp edx, 4
je 0x4546b7
mov edi, dword [eax + 0x10]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x10], edi
cmp edx, 5
je 0x4546b7
mov edi, dword [eax + 0x14]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x14], edi
cmp edx, 6
je 0x4546b7
mov edi, dword [eax + 0x18]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x18], edi
cmp edx, 7
je 0x4546b7
mov edi, dword [eax + 0x1c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x1c], edi
cmp edx, 8
je 0x4546b7
mov edi, dword [eax + 0x20]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x20], edi
cmp edx, 9
je 0x4546b7
mov edi, dword [eax + 0x24]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x24], edi
cmp edx, 0xa
je 0x4546b7
mov edi, dword [eax + 0x28]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x28], edi
cmp edx, 0xb
je 0x4546b7
mov edi, dword [eax + 0x2c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x2c], edi
cmp edx, 0xc
je 0x4546b7
mov edi, dword [eax + 0x30]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x30], edi
cmp edx, 0xd
je 0x4546b7
mov edi, dword [eax + 0x34]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x34], edi
cmp edx, 0xe
je 0x4546b7
mov edi, dword [eax + 0x38]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x38], edi
cmp edx, 0xf
je 0x4546b7
mov edi, dword [eax + 0x3c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x3c], edi
mov edi, dword [eax + 0x40]
mov ebp, 0x7e
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x40], edi
mov edi, dword [eax + 0x44]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x44], edi
cmp edx, 2
je 0x454802
mov edi, dword [eax + 0x48]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x48], edi
cmp edx, 3
je 0x454802
mov edi, dword [eax + 0x4c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x4c], edi
cmp edx, 4
je 0x454802
mov edi, dword [eax + 0x50]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x50], edi
cmp edx, 5
je 0x454802
mov edi, dword [eax + 0x54]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x54], edi
cmp edx, 6
je 0x454802
mov edi, dword [eax + 0x58]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x58], edi
cmp edx, 7
je 0x454802
mov edi, dword [eax + 0x5c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x5c], edi
cmp edx, 8
je 0x454802
mov edi, dword [eax + 0x60]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x60], edi
cmp edx, 9
je 0x454802
mov edi, dword [eax + 0x64]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x64], edi
cmp edx, 0xa
je 0x454802
mov edi, dword [eax + 0x68]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x68], edi
cmp edx, 0xb
je 0x454802
mov edi, dword [eax + 0x6c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x6c], edi
cmp edx, 0xc
je 0x454802
mov edi, dword [eax + 0x70]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x70], edi
cmp edx, 0xd
je 0x454802
mov edi, dword [eax + 0x74]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x74], edi
cmp edx, 0xe
je 0x454802
mov edi, dword [eax + 0x78]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x78], edi
cmp edx, 0xf
je 0x454802
mov edi, dword [eax + 0x7c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x7c], edi
mov edi, dword [eax + 0x80]
mov ebp, 0x7e
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x80], edi
mov edi, dword [eax + 0x84]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x84], edi
cmp edx, 2
je 0x4543b5
mov edi, dword [eax + 0x88]
mov ebp, 0x7e
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x88], edi
cmp edx, 3
je 0x4543b5
mov edi, dword [eax + 0x8c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x8c], edi
cmp edx, 4
je 0x4543b5
mov edi, dword [eax + 0x90]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x90], edi
cmp edx, 5
je 0x4543b5
mov edi, dword [eax + 0x94]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x94], edi
cmp edx, 6
je 0x4543b5
mov edi, dword [eax + 0x98]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x98], edi
cmp edx, 7
je 0x4543b5
mov edi, dword [eax + 0x9c]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0x9c], edi
cmp edx, 8
je 0x4543b5
mov edi, dword [eax + 0xa0]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xa0], edi
cmp edx, 9
je 0x4543b5
mov edi, dword [eax + 0xa4]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xa4], edi
cmp edx, 0xa
je 0x4543b5
mov edi, dword [eax + 0xa8]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xa8], edi
cmp edx, 0xb
je 0x4543b5
mov edi, dword [eax + 0xac]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xac], edi
cmp edx, 0xc
je 0x4543b5
mov edi, dword [eax + 0xb0]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xb0], edi
cmp edx, 0xd
je 0x4543b5
mov edi, dword [eax + 0xb4]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xb4], edi
cmp edx, 0xe
je 0x4543b5
mov edi, dword [eax + 0xb8]
cmp edi, ebp
cmovg edi, ebp
add edi, 1
mov dword [eax + 0xb8], edi
cmp edx, 0xf
je 0x4543b5
mov edx, dword [eax + 0xbc]
mov ebp, 0x7e
cmp edx, ebp
cmovg edx, ebp
add edx, 1
mov dword [eax + 0xbc], edx
jmp 0x4543b5
xor edi, edi
jmp 0x45452a
mov edx, dword [eax + 0x40]
mov edi, 0x7e
cmp edx, edi
cmovg edx, edi
add edx, 1
mov dword [eax + 0x40], edx
mov ebp, dword [eax + 0x80]
cmp ebp, edi
cmovg ebp, edi
add ebp, 1
mov dword [eax + 0x80], ebp
jmp 0x4543b5