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

Disassembly:
mov eax, 0x2aec
call fcn.0051bfb0
mov eax, dword [0x1313af4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b04]
push edi
test esi, esi
je 0x4ae10d
test eax, eax
jne 0x4ae10d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret
mov ebp, dword [esp + 0x2b10]
test ebp, ebp
je 0x4ae179
mov eax, dword [0x1313b04]
push eax
call fcn.004ab8a0
mov edx, dword [0x1313af4]
mov ecx, dword [0x1313b0c]
mov ebx, eax
mov dword [esp + 0x14], ecx
mov edi, dword [edx + 0x44]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x40], 0x3f800000
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x18], 0xbf800000
jmp 0x4ae343
test esi, esi
je 0x4ae1cf
mov ecx, dword [esp + 0x2b0c]
test ecx, ecx
je 0x4ae1cf
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x2c]
mov ebx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x34]
mov edi, dword [eax + 0x44]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x4ae346
mov eax, dword [0x1313ba8]
mov ecx, dword [eax + 4]
push ecx
call fcn.004ab6c0
add esp, 4
test eax, eax
jne 0x4ae206
mov edx, dword [0x1313ba8]
mov eax, dword [edx + 4]
push eax
push str.Bad_decal_shader__s_n
push 0
call dword [0x1313c40]
mov ebx, dword [0x1313d9c]
add esp, 0xc
jmp 0x4ae211
push eax
call fcn.004ab8a0
add esp, 4
mov ebx, eax
mov ecx, dword [0x1313944]
mov eax, dword [0x1313ba4]
mov dword [esp + 0x68], ebx
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [0x1313ba0]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x1313954]
mov eax, dword [edx + 0x1c]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
fld dword [esp + 0x40]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jnp 0x4ae26c
fld dword [esp + 0x40]
fcomp dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4ae274
mov dword [esp + 0x40], 0x3f800000
mov eax, dword [0x1313950]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x3c]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jnp 0x4ae2a4
fld dword [esp + 0x3c]
fcomp dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4ae2ac
mov dword [esp + 0x3c], 0x3f800000
mov edx, dword [0x131394c]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x1c]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jnp 0x4ae2dd
fld dword [esp + 0x1c]
fcomp dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4ae2e5
mov dword [esp + 0x1c], 0x3f800000
mov ecx, dword [0x1313b9c]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x18], edx
fld dword [esp + 0x18]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jnp 0x4ae316
fld dword [esp + 0x18]
fcomp dword [0x5354e8]
fnstsw ax
and eax, 0x4100
jne 0x4ae31e
mov dword [esp + 0x18], 0x3f800000
mov ecx, dword [0x1313958]
xor eax, eax
mov edx, dword [ecx + 0x20]
test edx, edx
mov edx, dword [0x1313bc8]
setne al
mov edi, eax
mov eax, dword [edx + 0x1c]
push eax
call fcn.00463210
fstp dword [esp + 0x18]
add esp, 4
fld dword [esp + 0x10]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4ae35f
mov dword [esp + 0x10], 0x3a83126f
fld dword [esp + 0x44]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4ae378
mov dword [esp + 0x44], 0x3a83126f
fld dword [esp + 0x38]
fcomp dword [0x5354c0]
fnstsw ax
test ah, 5
jp 0x4ae391
mov dword [esp + 0x38], 0x3a83126f
mov eax, dword [esp + 0x2b00]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2b04]
lea ecx, [esp + 0x98]
mov dword [esp + 0x34], eax
push ecx
push edx
call fcn.0045b150
add esp, 8
lea eax, [esp + 0x6fc]
lea ecx, [esp + 0xfc]
push eax
push ecx
test ebp, ebp
fstp st(0)
je 0x4ae3f4
xor edx, edx
cmp ebp, 1
sete dl
push edi
push edx
push 0x1313afc
call dword [0x1313cd4]
add esp, 0x14
jmp 0x4ae459
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
push 0x3f000000
fld dword [esp + 0x44]
fmul dword [esp + 0x1c]
push 0x3f000000
push edi
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x74]
fmul dword [esp + 0x40]
fstp dword [esp + 4]
fld dword [esp + 0x44]
fadd dword [0x535954]
fstp dword [esp]
call fcn.00463210
fstp dword [esp]
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [0x1313cd0]
add esp, 0x38
test eax, eax
mov dword [esp + 0x64], eax
jne 0x4ae46e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2aec
ret
test esi, esi
je 0x4ae48c
mov esi, dword [0x1313af4]
push esi
mov dword [esp + 0x58], esi
call fcn.004addc0
add esp, 4
xor edx, edx
jmp 0x4ae544
mov eax, dword [0x1313af0]
test eax, eax
jne 0x4ae4cf
push 0x4000
call dword [0x1313c54]
add esp, 4
test eax, eax
je 0x4ae461
mov dword [0x1313af0], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4ae4b3
mov dword [eax + 0x3f80], 0
mov eax, dword [0x1313af0]
mov edx, dword [eax]
mov ecx, dword [0x1313a70]
mov dword [0x1313af0], edx
mov dword [eax], ecx
mov dword [eax + 4], 0x1313a70
mov edx, dword [0x1313a70]
mov esi, eax
mov dword [edx + 4], eax
mov ecx, dword [0x1313d9c]
mov dword [0x1313a70], eax
mov dword [eax + 8], ecx
xor edx, edx
mov ecx, 0x3f800000
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], 0xbf800000
mov dword [eax + 0x24], 0x41000000
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x2c]
cmp ebp, edx
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x10], ecx
mov eax, dword [esp + 0x34]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x98]
mov dword [esi + 0x18], ecx
mov eax, dword [esp + 0x9c]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x30], ecx
je 0x4ae720
cmp ebp, 1
jne 0x4ae62e
mov eax, dword [0x1313b28]
mov dword [esi + 0x50], eax
mov ecx, dword [0x1313b2c]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x1313b30]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x1313b1c]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x1313b20]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x1313b24]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x1313b48]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x1313b4c]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x1313b50]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x1313b54]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x1313b58]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x1313b5c]
jmp 0x4ae698
mov eax, dword [0x1313b54]
mov dword [esi + 0x50], eax
mov ecx, dword [0x1313b58]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x1313b5c]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x1313b48]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x1313b4c]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x1313b50]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x1313b74]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x1313b78]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x1313b7c]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x1313b80]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x1313b84]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x1313b88]
mov dword [esi + 0x7c], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov ecx, 4
fld dword [esp + 0x2c]
fadd dword [eax - 4]
add eax, 0xc
dec ecx
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fadd dword [eax - 0xc]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [eax - 8]
fstp dword [esp + 0x34]
jne 0x4ae6b8
fld dword [esp + 0x2c]
fmul qword [0x535ac0]
fst dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x535ac0]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul qword [0x535ac0]
fadd dword [0x535748]
fstp dword [esp + 0x34]
fstp dword [esi + 0xc]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x14], ecx
lea eax, [esp + 0xfc]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
cmp eax, edx
mov dword [esp + 0x44], ebp
jle 0x4af0e9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4af0c5
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4ae792
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
lea eax, [eax + eax*2]
lea eax, [esp + eax*8 + 0x6fc]
mov dword [esp + ecx*4 + 0x78], eax
inc ecx
add eax, 0x18
cmp ecx, ebx
jl 0x4ae777
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
fld dword [edi]
fsub dword [eax]
lea ecx, [esp + 0x58]
push ecx
fstp dword [esp + 0x24]
fld dword [edi + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x28]
fld dword [edi + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x2c]
fld dword [edx]
fsub dword [eax]
fstp dword [esp + 0x4c]
fld dword [edx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x50]
fld dword [edx + 8]
fsub dword [eax + 8]
fst dword [esp + 0x54]
fmul dword [esp + 0x28]
fld dword [esp + 0x50]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x54]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x50]
fmul dword [esp + 0x24]
fld dword [esp + 0x4c]
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x64]
call fcn.0045b080
fstp st(0)
fld dword [esp + 0x60]
fmul dword [edi + 4]
fld dword [esp + 0x64]
fmul dword [edi + 8]
mov edx, dword [esp + 0x20]
add esp, 4
faddp st(1)
fld dword [esp + 0x58]
fmul dword [edi]
mov eax, dword [edx + 8]
test eax, eax
faddp st(1)
fstp dword [esp + 0x3c]
jg 0x4aec66
mov ecx, dword [esp + 0x64]
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x4aec66
lea ecx, [eax + eax*2]
lea edi, [esp + ecx*4 + 0x100]
mov ecx, dword [esp + 0x64]
sub ecx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ecx
cmp dword [edi], 0
je 0x4aec50
mov eax, dword [edi + 4]
test eax, eax
jg 0x4aec50
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], eax
jne 0x4aec50
mov eax, dword [edi - 4]
fld dword [esp + 0x60]
lea eax, [eax + eax*2]
fmul dword [esp + eax*8 + 0x704]
fld dword [esp + 0x5c]
fmul dword [esp + eax*8 + 0x700]
lea ebp, [esp + eax*8 + 0x6fc]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [ebp]
faddp st(1)
fsub dword [esp + 0x3c]
fabs
fcomp qword [0x535988]
fnstsw ax
and eax, 0x4100
je 0x4aec50
fld dword [ebp]
fsub dword [ebp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
fstp dword [esp + 0x24]
fld dword [ebp + 4]
fsub dword [ebp + 0x1c]
fstp dword [esp + 0x28]
fld dword [ebp + 8]
fsub dword [ebp + 0x20]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x30]
fsub dword [ebp + 0x18]
fstp dword [esp + 0x4c]
fld dword [ebp + 0x34]
fsub dword [ebp + 0x1c]
fstp dword [esp + 0x50]
fld dword [ebp + 0x38]
fsub dword [ebp + 0x20]
fst dword [esp + 0x54]
fmul dword [esp + 0x28]
fld dword [esp + 0x50]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x4c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x54]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x50]
fmul dword [esp + 0x24]
fld dword [esp + 0x4c]
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x78]
call fcn.0045b080
lea edx, [esp + 0x70]
lea eax, [esp + 0x5c]
push edx
push eax
fstp st(0)
call fcn.0045ae40
add esp, 0xc
test eax, eax
je 0x4aec44
xor eax, eax
test ebx, ebx
mov dword [esp + 0x14], eax
jle 0x4aec44
mov ecx, dword [edi]
xor esi, esi
test ecx, ecx
jle 0x4ae9e7
mov edx, dword [esp + eax*4 + 0x78]
mov ebx, ebp
mov dword [esp + 0x40], edx
lea edi, [esi + 1]
mov eax, edi
cdq
idiv ecx
lea eax, [edx + edx*2]
mov edx, dword [esp + 0x40]
lea ecx, [ebp + eax*8]
push ecx
push edx
call fcn.0045ae40
add esp, 8
test eax, eax
je 0x4ae9ce
mov eax, dword [esp + 0x14]
push ebx
inc eax
cdq
idiv dword [esp + 0x14]
mov ecx, dword [esp + edx*4 + 0x7c]
push ecx
call fcn.0045ae40
add esp, 8
test eax, eax
jne 0x4ae9f5
mov edx, dword [esp + 0x18]
mov esi, edi
add ebx, 0x18
mov ecx, dword [edx]
cmp esi, ecx
jl 0x4ae991
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x4ae97f
jmp 0x4aec44
mov eax, dword [esp + 0x10]
mov ecx, 1
xor ebx, ebx
cmp eax, ecx
jle 0x4aea25
mov edi, dword [esp + 0x14]
lea eax, [ecx + edi]
cdq
idiv dword [esp + 0x10]
inc ebx
inc ecx
mov eax, dword [esp + edx*4 + 0x78]
mov dword [esp + ebx*4 + 0xb8], eax
mov eax, dword [esp + 0x10]
cmp ecx, eax
jl 0x4aea08
mov edx, dword [esp + 0x18]
mov ecx, 1
mov edi, dword [edx]
cmp edi, ecx
jle 0x4aea4e
lea eax, [esi + ecx]
cdq
idiv edi
inc ebx
inc ecx
cmp ecx, edi
lea eax, [edx + edx*2]
lea edx, [ebp + eax*8]
mov dword [esp + ebx*4 + 0xb8], edx
jl 0x4aea34
xor edi, edi
test ebx, ebx
jle 0x4aec1a
mov ebp, 1
mov eax, ebp
mov esi, dword [esp + edi*4 + 0xbc]
cdq
idiv ebx
lea eax, [esp + 0x6c]
push eax
mov edx, dword [esp + edx*4 + 0xc0]
fld dword [edx]
fsub dword [esi]
fstp dword [esp + 0x24]
fld dword [edx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x28]
fld dword [edx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x60]
fmul dword [esp + 0x2c]
fld dword [esp + 0x64]
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x64]
fmul dword [esp + 0x24]
fld dword [esp + 0x5c]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x5c]
fmul dword [esp + 0x28]
fld dword [esp + 0x60]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x78]
call fcn.0045b080
fstp st(0)
fld dword [esp + 0x74]
fmul dword [esi + 4]
fld dword [esp + 0x78]
fmul dword [esi + 8]
add esp, 4
xor ecx, ecx
faddp st(1)
fld dword [esp + 0x6c]
fmul dword [esi]
faddp st(1)
fadd dword [0x535c58]
cmp ecx, edi
je 0x4aeb2f
mov eax, dword [esp + ecx*4 + 0xbc]
fld dword [esp + 0x74]
fmul dword [eax + 8]
fld dword [esp + 0x70]
fmul dword [eax + 4]
faddp st(1)
fld dword [esp + 0x6c]
fmul dword [eax]
faddp st(1)
fcomp st(1)
fnstsw ax
and eax, 0x4100
je 0x4aec42
inc ecx
cmp ecx, ebx
jl 0x4aeafd
inc edi
inc ebp
cmp edi, ebx
fstp st(0)
jl 0x4aea5d
lea ecx, [esp + 0xbc]
mov ebp, 1
mov dword [esp + 0x14], ecx
mov eax, ebp
cdq
idiv ebx
mov eax, dword [esp + edx*4 + 0xbc]
mov edx, dword [esp + 0x14]
mov esi, dword [edx]
fld dword [eax]
fsub dword [esi]
fstp dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x24]
fld dword [eax + 8]
fsub dword [esi + 8]
lea eax, [esp + 0x20]
push eax
fstp dword [esp + 0x2c]
call fcn.0045b080
lea eax, [ebx + ebp - 2]
lea ecx, [esp + 0x4c]
cdq
fstp st(0)
idiv ebx
fld dword [esi]
push ecx
mov eax, dword [esp + edx*4 + 0xc4]
fsub dword [eax]
fstp dword [esp + 0x50]
fld dword [esi + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x54]
fld dword [esi + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x58]
call fcn.0045b080
fstp st(0)
fld dword [esp + 0x58]
fmul dword [esp + 0x30]
fld dword [esp + 0x54]
fmul dword [esp + 0x2c]
add esp, 8
faddp st(1)
fld dword [esp + 0x48]
fmul dword [esp + 0x20]
faddp st(1)
fcomp qword [0x535b28]
fnstsw ax
and eax, 0x4100
jne 0x4aec03
cmp ebp, ebx
jge 0x4aec02
mov edx, dword [esp + 0x14]
mov ecx, ebx
sub ecx, ebp
lea esi, [edx + 4]
lea edi, [esi - 4]
rep movsd dword es:[edi], dword [esi]
dec ebx
mov esi, dword [esp + 0x14]
add esi, 4
inc ebp
mov dword [esp + 0x14], esi
lea eax, [ebp - 1]
cmp eax, ebx
jl 0x4aeb50
cmp ebx, 8
jg 0x4aec44
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4aec36
mov ecx, ebx
lea esi, [esp + 0xbc]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0
jmp 0x4aec44
fstp st(0)
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
add edi, 0xc
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], eax
jne 0x4ae869
mov ebx, dword [0x1313a6c]
test ebx, ebx
jne 0x4aecb4
push 0x18000
call dword [0x1313c54]
add esp, 4
test eax, eax
je 0x4af0e9
mov dword [0x1313a6c], eax
lea ecx, [eax + 0xd8]
mov edx, 0x17f
lea esi, [ecx + 0x28]
mov dword [ecx], esi
add ecx, 0x100
dec edx
jne 0x4aec96
mov dword [eax + 0x17fd8], 0
mov ebx, dword [0x1313a6c]
mov edx, dword [ebx + 0xd8]
lea eax, [ebx + 0xd8]
mov ebp, dword [esp + 0x10]
mov dword [0x1313a6c], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
lea edx, [ebx + 0x18]
mov dword [ebx], 4
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 8], ebp
test ebp, ebp
jle 0x4aecff
mov esi, dword [esp + eax*4 + 0x78]
mov edi, edx
inc eax
mov ecx, 6
add edx, 0x18
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jl 0x4aecea
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov dword [ebx + 0xfc], 0
mov eax, edx
mov dword [ebx + 4], edx
mov ecx, dword [0x1313bb4]
test eax, eax
jle 0x4aed3d
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4af0c5
mov edx, dword [0x1313940]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x4af0c5
test eax, eax
jge 0x4aedf6
mov ecx, dword [0x1313938]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4af0c5
lea edx, [eax + eax*2]
mov eax, dword [0x1313d40]
shl edx, 4
mov esi, dword [eax + 0x90]
sub esi, edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4aed77
mov ecx, dword [esi + 0x24]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4aede1
mov edx, dword [esi + 0x24]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1313c60]
mov edi, eax
add esp, 4
test edi, edi
je 0x4af0ae
mov ecx, dword [esi + 0x24]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044f0f0
mov eax, dword [esi + 0x24]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4aedde
mov ecx, dword [esi + 0x24]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044f1a0
mov edx, dword [esi + 0x20]
push edx
call dword [0x1313c64]
add esp, 0x10
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x24]
inc eax
mov dword [esi + 0x24], eax
jmp 0x4af0ae
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4af0c5
lea edx, [esp + 0xb0]
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.0045b2d0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov eax, dword [ebx + 8]
add esp, 8
mov dword [esp + 0x14], 0
test eax, eax
jle 0x4aefaa
lea ebp, [ebx + 0x1c]
fld dword [esp + 0x58]
fadd dword [ebp - 4]
lea ecx, [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x5c]
fadd dword [ebp]
fstp dword [esp + 0x24]
fld dword [esp + 0x60]
fadd dword [ebp + 4]
fstp dword [esp + 0x28]
call fcn.004bff00
mov esi, eax
test esi, esi
je 0x4aef54
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4aef54
test al, 1
jne 0x4aef54
mov ecx, dword [ebx + 0xfc]
xor eax, eax
test ecx, ecx
jle 0x4aeeac
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4aeeac
inc eax
add edx, 4
cmp eax, ecx
jl 0x4aeea0
cmp eax, ecx
jne 0x4aef54
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aeec4
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4aef2a
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1313c60]
mov edi, eax
add esp, 4
test edi, edi
je 0x4aef3a
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044f0f0
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aef27
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044f1a0
mov edx, dword [esi + 0x58]
push edx
call dword [0x1313c64]
add esp, 0x10
mov dword [esi + 0x58], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x5c]
inc eax
mov dword [esi + 0x5c], eax
mov edx, dword [ebx + 0xfc]
mov dword [ebx + edx*4 + 0xdc], esi
mov eax, dword [ebx + 0xfc]
inc eax
mov dword [ebx + 0xfc], eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xa4]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0045b340
fld dword [esp + 0x2c]
fadd dword [esp + 0x38]
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
add ebp, 0x18
mov dword [esp + 0x14], eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
cmp eax, dword [ebx + 8]
jl 0x4aee47
fild dword [ebx + 8]
lea ecx, [esp + 0x2c]
fdivr dword [0x5354e8]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fild dword [ebx + 8]
fdivr dword [0x5354e8]
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [ebx + 8]
fdivr dword [0x5354e8]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.004bff00
mov ecx, dword [ebx + 0xfc]
mov esi, eax
xor eax, eax
test ecx, ecx
jle 0x4af006
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4af006
inc eax
add edx, 4
cmp eax, ecx
jl 0x4aeffa
cmp eax, ecx
jne 0x4af0ae
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4af01e
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4af084
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1313c60]
mov edi, eax
add esp, 4
test edi, edi
je 0x4af094
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044f0f0
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4af081
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044f1a0
mov edx, dword [esi + 0x58]
push edx
call dword [0x1313c64]
add esp, 0x10
mov dword [esi + 0x58], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x5c]
inc eax
mov dword [esi + 0x5c], eax
mov edx, dword [ebx + 0xfc]
mov dword [ebx + edx*4 + 0xdc], esi
mov eax, dword [ebx + 0xfc]
inc eax
mov dword [ebx + 0xfc], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + 0x48]
mov dword [edx], ecx
mov ecx, dword [eax + 0x4c]
inc ecx
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ecx
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
inc ebp
add ecx, 0xc
cmp ebp, eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x1c], ecx
jl 0x4ae73d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret