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

Disassembly:
mov eax, 0x2aec
call fcn.0051bf10
mov eax, dword [0x1313b34]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b04]
push edi
test esi, esi
je 0x4ae07d
test eax, eax
jne 0x4ae07d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret
mov ebp, dword [esp + 0x2b10]
test ebp, ebp
je 0x4ae0e9
mov eax, dword [0x1313b44]
push eax
call fcn.004ab810
mov edx, dword [0x1313b34]
mov ecx, dword [0x1313b4c]
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 0x4ae2b3
test esi, esi
je 0x4ae13f
mov ecx, dword [esp + 0x2b0c]
test ecx, ecx
je 0x4ae13f
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 0x4ae2b6
mov eax, dword [0x1313be8]
mov ecx, dword [eax + 4]
push ecx
call fcn.004ab630
add esp, 4
test eax, eax
jne 0x4ae176
mov edx, dword [0x1313be8]
mov eax, dword [edx + 4]
push eax
push str.Bad_decal_shader__s_n
push 0
call dword [0x1313c80]
mov ebx, dword [0x1313ddc]
add esp, 0xc
jmp 0x4ae181
push eax
call fcn.004ab810
add esp, 4
mov ebx, eax
mov ecx, dword [0x1313984]
mov eax, dword [0x1313be4]
mov dword [esp + 0x68], ebx
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [0x1313be0]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x1313994]
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 [0x5354b0]
fnstsw ax
test ah, 5
jnp 0x4ae1dc
fld dword [esp + 0x40]
fcomp dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4ae1e4
mov dword [esp + 0x40], 0x3f800000
mov eax, dword [0x1313990]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x3c]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 5
jnp 0x4ae214
fld dword [esp + 0x3c]
fcomp dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4ae21c
mov dword [esp + 0x3c], 0x3f800000
mov edx, dword [0x131398c]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x1c]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 5
jnp 0x4ae24d
fld dword [esp + 0x1c]
fcomp dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4ae255
mov dword [esp + 0x1c], 0x3f800000
mov ecx, dword [0x1313bdc]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x18], edx
fld dword [esp + 0x18]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 5
jnp 0x4ae286
fld dword [esp + 0x18]
fcomp dword [0x5354d8]
fnstsw ax
and eax, 0x4100
jne 0x4ae28e
mov dword [esp + 0x18], 0x3f800000
mov ecx, dword [0x1313998]
xor eax, eax
mov edx, dword [ecx + 0x20]
test edx, edx
mov edx, dword [0x1313c08]
setne al
mov edi, eax
mov eax, dword [edx + 0x1c]
push eax
call fcn.00463070
fstp dword [esp + 0x18]
add esp, 4
fld dword [esp + 0x10]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4ae2cf
mov dword [esp + 0x10], 0x3a83126f
fld dword [esp + 0x44]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4ae2e8
mov dword [esp + 0x44], 0x3a83126f
fld dword [esp + 0x38]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 5
jp 0x4ae301
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.0045afb0
add esp, 8
lea eax, [esp + 0x6fc]
lea ecx, [esp + 0xfc]
push eax
push ecx
test ebp, ebp
fstp st(0)
je 0x4ae364
xor edx, edx
cmp ebp, 1
sete dl
push edi
push edx
push 0x1313b3c
call dword [0x1313d14]
add esp, 0x14
jmp 0x4ae3c9
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 [0x535944]
fstp dword [esp]
call fcn.00463070
fstp dword [esp]
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [0x1313d10]
add esp, 0x38
test eax, eax
mov dword [esp + 0x64], eax
jne 0x4ae3de
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2aec
ret
test esi, esi
je 0x4ae3fc
mov esi, dword [0x1313b34]
push esi
mov dword [esp + 0x58], esi
call fcn.004add30
add esp, 4
xor edx, edx
jmp 0x4ae4b4
mov eax, dword [0x1313b30]
test eax, eax
jne 0x4ae43f
push 0x4000
call dword [0x1313c94]
add esp, 4
test eax, eax
je 0x4ae3d1
mov dword [0x1313b30], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4ae423
mov dword [eax + 0x3f80], 0
mov eax, dword [0x1313b30]
mov edx, dword [eax]
mov ecx, dword [0x1313ab0]
mov dword [0x1313b30], edx
mov dword [eax], ecx
mov dword [eax + 4], 0x1313ab0
mov edx, dword [0x1313ab0]
mov esi, eax
mov dword [edx + 4], eax
mov ecx, dword [0x1313ddc]
mov dword [0x1313ab0], 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 0x4ae690
cmp ebp, 1
jne 0x4ae59e
mov eax, dword [0x1313b68]
mov dword [esi + 0x50], eax
mov ecx, dword [0x1313b6c]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x1313b70]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x1313b5c]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x1313b60]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x1313b64]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x1313b88]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x1313b8c]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x1313b90]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x1313b94]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x1313b98]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x1313b9c]
jmp 0x4ae608
mov eax, dword [0x1313b94]
mov dword [esi + 0x50], eax
mov ecx, dword [0x1313b98]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x1313b9c]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x1313b88]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x1313b8c]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x1313b90]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x1313bb4]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x1313bb8]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x1313bbc]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x1313bc0]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x1313bc4]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x1313bc8]
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 0x4ae628
fld dword [esp + 0x2c]
fmul qword [0x535ab0]
fst dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x535ab0]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul qword [0x535ab0]
fadd dword [0x535738]
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 0x4af059
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 0x4af035
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4ae702
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 0x4ae6e7
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.0045aee0
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 0x4aebd6
mov ecx, dword [esp + 0x64]
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x4aebd6
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 0x4aebc0
mov eax, dword [edi + 4]
test eax, eax
jg 0x4aebc0
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], eax
jne 0x4aebc0
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 [0x535978]
fnstsw ax
and eax, 0x4100
je 0x4aebc0
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.0045aee0
lea edx, [esp + 0x70]
lea eax, [esp + 0x5c]
push edx
push eax
fstp st(0)
call fcn.0045aca0
add esp, 0xc
test eax, eax
je 0x4aebb4
xor eax, eax
test ebx, ebx
mov dword [esp + 0x14], eax
jle 0x4aebb4
mov ecx, dword [edi]
xor esi, esi
test ecx, ecx
jle 0x4ae957
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.0045aca0
add esp, 8
test eax, eax
je 0x4ae93e
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.0045aca0
add esp, 8
test eax, eax
jne 0x4ae965
mov edx, dword [esp + 0x18]
mov esi, edi
add ebx, 0x18
mov ecx, dword [edx]
cmp esi, ecx
jl 0x4ae901
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x4ae8ef
jmp 0x4aebb4
mov eax, dword [esp + 0x10]
mov ecx, 1
xor ebx, ebx
cmp eax, ecx
jle 0x4ae995
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 0x4ae978
mov edx, dword [esp + 0x18]
mov ecx, 1
mov edi, dword [edx]
cmp edi, ecx
jle 0x4ae9be
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 0x4ae9a4
xor edi, edi
test ebx, ebx
jle 0x4aeb8a
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.0045aee0
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 [0x535c48]
cmp ecx, edi
je 0x4aea9f
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 0x4aebb2
inc ecx
cmp ecx, ebx
jl 0x4aea6d
inc edi
inc ebp
cmp edi, ebx
fstp st(0)
jl 0x4ae9cd
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.0045aee0
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.0045aee0
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 [0x535b18]
fnstsw ax
and eax, 0x4100
jne 0x4aeb73
cmp ebp, ebx
jge 0x4aeb72
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 0x4aeac0
cmp ebx, 8
jg 0x4aebb4
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4aeba6
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 0x4aebb4
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 0x4ae7d9
mov ebx, dword [0x1313aac]
test ebx, ebx
jne 0x4aec24
push 0x18000
call dword [0x1313c94]
add esp, 4
test eax, eax
je 0x4af059
mov dword [0x1313aac], eax
lea ecx, [eax + 0xd8]
mov edx, 0x17f
lea esi, [ecx + 0x28]
mov dword [ecx], esi
add ecx, 0x100
dec edx
jne 0x4aec06
mov dword [eax + 0x17fd8], 0
mov ebx, dword [0x1313aac]
mov edx, dword [ebx + 0xd8]
lea eax, [ebx + 0xd8]
mov ebp, dword [esp + 0x10]
mov dword [0x1313aac], 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 0x4aec6f
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 0x4aec5a
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 [0x1313bf4]
test eax, eax
jle 0x4aecad
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4af035
mov edx, dword [0x1313980]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x4af035
test eax, eax
jge 0x4aed66
mov ecx, dword [0x1313978]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4af035
lea edx, [eax + eax*2]
mov eax, dword [0x1313d80]
shl edx, 4
mov esi, dword [eax + 0x90]
sub esi, edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4aece7
mov ecx, dword [esi + 0x24]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4aed51
mov edx, dword [esi + 0x24]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1313ca0]
mov edi, eax
add esp, 4
test edi, edi
je 0x4af01e
mov ecx, dword [esi + 0x24]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044ef50
mov eax, dword [esi + 0x24]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4aed4e
mov ecx, dword [esi + 0x24]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044f000
mov edx, dword [esi + 0x20]
push edx
call dword [0x1313ca4]
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 0x4af01e
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4af035
lea edx, [esp + 0xb0]
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.0045b130
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 0x4aef1a
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.004bfe70
mov esi, eax
test esi, esi
je 0x4aeec4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4aeec4
test al, 1
jne 0x4aeec4
mov ecx, dword [ebx + 0xfc]
xor eax, eax
test ecx, ecx
jle 0x4aee1c
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4aee1c
inc eax
add edx, 4
cmp eax, ecx
jl 0x4aee10
cmp eax, ecx
jne 0x4aeec4
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aee34
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4aee9a
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1313ca0]
mov edi, eax
add esp, 4
test edi, edi
je 0x4aeeaa
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044ef50
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aee97
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044f000
mov edx, dword [esi + 0x58]
push edx
call dword [0x1313ca4]
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.0045b1a0
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 0x4aedb7
fild dword [ebx + 8]
lea ecx, [esp + 0x2c]
fdivr dword [0x5354d8]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fild dword [ebx + 8]
fdivr dword [0x5354d8]
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [ebx + 8]
fdivr dword [0x5354d8]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.004bfe70
mov ecx, dword [ebx + 0xfc]
mov esi, eax
xor eax, eax
test ecx, ecx
jle 0x4aef76
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4aef76
inc eax
add edx, 4
cmp eax, ecx
jl 0x4aef6a
cmp eax, ecx
jne 0x4af01e
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aef8e
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4aeff4
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1313ca0]
mov edi, eax
add esp, 4
test edi, edi
je 0x4af004
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044ef50
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aeff1
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044f000
mov edx, dword [esi + 0x58]
push edx
call dword [0x1313ca4]
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 0x4ae6ad
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret