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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 0x50]
mov dword [esp + 0x10], eax
lea esi, [eax + 0xa]
mov eax, 0x3e800
xor edx, edx
idiv esi
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x60]
sub edx, dword [ecx + 0x2c]
imul edx, eax
sar edx, 0xa
mov ecx, 0x28
cmp edx, ecx
cmovl edx, ecx
mov dword [esp + 0x30], 0xa
xor eax, eax
lea ebx, [ebp + 0x120]
mov dword [esp + 0x38], ebx
lea edi, [ebp + 0x20e0]
mov dword [esp + 0x3c], edi
add eax, edx
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x455121
lea eax, [ebp + 0x1ae0]
xor ebx, ebx
mov ecx, dword [ebp + ebx*4 + 0x5c]
test ecx, ecx
jle 0x455111
add dword [eax], edx
cmp ecx, 1
je 0x455318
add dword [eax + 4], edx
cmp ecx, 2
je 0x455326
add dword [eax + 8], edx
cmp ecx, 3
je 0x4552c0
add dword [eax + 0xc], edx
cmp ecx, 4
je 0x4552c0
add dword [eax + 0x10], edx
cmp ecx, 5
je 0x4552c0
add dword [eax + 0x14], edx
cmp ecx, 6
je 0x4552c0
add dword [eax + 0x18], edx
cmp ecx, 7
je 0x4552c0
add dword [eax + 0x1c], edx
cmp ecx, 8
je 0x4552c0
add dword [eax + 0x20], edx
cmp ecx, 9
je 0x4552c0
add dword [eax + 0x24], edx
cmp ecx, 0xa
je 0x4552c0
add dword [eax + 0x28], edx
cmp ecx, 0xb
je 0x4552c0
add dword [eax + 0x2c], edx
cmp ecx, 0xc
je 0x4552c0
add dword [eax + 0x30], edx
cmp ecx, 0xd
je 0x4552c0
add dword [eax + 0x34], edx
cmp ecx, 0xe
je 0x4552c0
add dword [eax + 0x38], edx
cmp ecx, 0xf
je 0x4552c0
add dword [eax + 0x3c], edx
add dword [eax + 0x40], edx
add dword [eax + 0x44], edx
add dword [eax + 0x48], edx
add dword [eax + 0x4c], edx
cmp ecx, 4
je 0x4552d7
add dword [eax + 0x50], edx
cmp ecx, 5
je 0x4552d7
add dword [eax + 0x54], edx
cmp ecx, 6
je 0x4552d7
add dword [eax + 0x58], edx
cmp ecx, 7
je 0x4552d7
add dword [eax + 0x5c], edx
cmp ecx, 8
je 0x4552d7
add dword [eax + 0x60], edx
cmp ecx, 9
je 0x4552d7
add dword [eax + 0x64], edx
cmp ecx, 0xa
je 0x4552d7
add dword [eax + 0x68], edx
cmp ecx, 0xb
je 0x4552d7
add dword [eax + 0x6c], edx
cmp ecx, 0xc
je 0x4552d7
add dword [eax + 0x70], edx
cmp ecx, 0xd
je 0x4552d7
add dword [eax + 0x74], edx
cmp ecx, 0xe
je 0x4552d7
add dword [eax + 0x78], edx
cmp ecx, 0xf
je 0x4552d7
add dword [eax + 0x7c], edx
add dword [eax + 0x80], edx
add dword [eax + 0x84], edx
add dword [eax + 0x88], edx
add dword [eax + 0x8c], edx
cmp ecx, 4
je 0x455111
add dword [eax + 0x90], edx
cmp ecx, 5
je 0x455111
add dword [eax + 0x94], edx
cmp ecx, 6
je 0x455111
add dword [eax + 0x98], edx
cmp ecx, 7
je 0x455111
add dword [eax + 0x9c], edx
cmp ecx, 8
je 0x455111
add dword [eax + 0xa0], edx
cmp ecx, 9
je 0x455111
add dword [eax + 0xa4], edx
cmp ecx, 0xa
je 0x455111
add dword [eax + 0xa8], edx
cmp ecx, 0xb
je 0x455111
add dword [eax + 0xac], edx
cmp ecx, 0xc
je 0x455111
add dword [eax + 0xb0], edx
cmp ecx, 0xd
je 0x455111
add dword [eax + 0xb4], edx
cmp ecx, 0xe
je 0x455111
add dword [eax + 0xb8], edx
cmp ecx, 0xf
je 0x455111
add dword [eax + 0xbc], edx
add ebx, 1
add eax, 0xc0
cmp ebx, esi
jne 0x454f17
mov edi, dword [esp + 0x14]
mov ecx, edi
call method.CBitAlloShort.noise_seek_actual__
mov ecx, edi
call method.CBitAlloShort.fnc_scale_factors__
mov ebp, edi
mov edx, dword [edi + 0x14]
test edx, edx
jle 0x4552ff
lea ecx, [edi + 0x5c]
mov dword [esp + 0x18], ecx
add ebp, 0x2160
mov dword [esp + 0x24], ebp
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
lea ebx, [edi + 0x120]
mov esi, dword [esp + 0x24]
add esi, 0xffffff80
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edi
lea ebp, [ebx + 0x2a78]
mov ecx, ebx
test eax, eax
jle 0x4551f1
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x14]
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 + 0x10], 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 + 0x10]
add ecx, ebx
add esi, 1
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
add edi, 4
cmp esi, eax
jl 0x455188
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
cmp dword [esp + 0x1c], ebp
je 0x4551f1
add ebx, 0x300
add dword [esp + 0x1c], 0x40
lea ebp, [ebx + 0x2a78]
mov ecx, ebx
test eax, eax
jg 0x45517e
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
add ecx, 1
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 0x14]
add dword [esp + 0x18], 4
add dword [esp + 0x24], 0xc0
add edi, 0x900
cmp ecx, ebx
jl 0x455153
test ebx, ebx
jle 0x4552ff
mov dword [esp + 0xc], 0
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp + 0x5c]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x3c]
mov dword [esp], edi
mov ecx, ebp
call method.CBitAlloShort.subdivide2_int_____16___int_____192___int__int_
sub esp, 0x10
mov ebx, eax
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x14], 1
jle 0x45528e
mov dword [esp + 0xc], 1
mov esi, dword [ebp + 0x60]
mov dword [esp + 8], esi
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 ebx, eax
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0x2c]
cmp ecx, ebx
jge 0x45530c
mov edx, ebx
sub edx, ecx
mov edi, dword [esp + 0x34]
imul edx, edi
sar edx, 0xa
mov esi, 0x28
cmp edx, esi
cmovl edx, esi
sub dword [esp + 0x30], 1
je 0x45530c
mov eax, dword [ebp + 0x48]
jmp 0x454eff
add dword [eax + 0x40], edx
mov edi, dword [eax + 0x44]
add edi, edx
mov dword [eax + 0x44], edi
add dword [eax + 0x48], edx
cmp ecx, 3
jne 0x454fe2
add dword [eax + 0x80], edx
mov edi, dword [eax + 0x84]
add edi, edx
mov dword [eax + 0x84], edi
add dword [eax + 0x88], edx
cmp ecx, 3
jne 0x455087
jmp 0x455111
xor ebx, ebx
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0x2c]
cmp ecx, ebx
jl 0x455299
mov eax, ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 4
add dword [eax + 0x40], edx
add dword [eax + 0x80], edx
jmp 0x455111
add dword [eax + 0x40], edx
add dword [eax + 0x44], edx
add dword [eax + 0x80], edx
add dword [eax + 0x84], edx
jmp 0x455111