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

Disassembly:
mov eax, 0x2aec
call fcn.0051d590
mov eax, dword [0x1324eb4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b04]
push edi
test esi, esi
je 0x4af17d
test eax, eax
jne 0x4af17d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret
mov ebp, dword [esp + 0x2b10]
test ebp, ebp
je 0x4af1e9
mov eax, dword [0x1324ec4]
push eax
call fcn.004ab8f0
mov edx, dword [0x1324eb4]
mov ecx, dword [0x1324ecc]
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 0x4af3b3
test esi, esi
je 0x4af23f
mov ecx, dword [esp + 0x2b0c]
test ecx, ecx
je 0x4af23f
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 0x4af3b6
mov eax, dword [0x1324f68]
mov ecx, dword [eax + 4]
push ecx
call fcn.004ab710
add esp, 4
test eax, eax
jne 0x4af276
mov edx, dword [0x1324f68]
mov eax, dword [edx + 4]
push eax
push str.Bad_decal_shader__s_n
push 0
call dword [0x1325000]
mov ebx, dword [0x132515c]
add esp, 0xc
jmp 0x4af281
push eax
call fcn.004ab8f0
add esp, 4
mov ebx, eax
mov ecx, dword [0x1324d04]
mov eax, dword [0x1324f64]
mov dword [esp + 0x68], ebx
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [0x1324f60]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x1324d14]
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 [0x5374c0]
fnstsw ax
test ah, 5
jnp 0x4af2dc
fld dword [esp + 0x40]
fcomp dword [0x5374e8]
fnstsw ax
and eax, 0x4100
jne 0x4af2e4
mov dword [esp + 0x40], 0x3f800000
mov eax, dword [0x1324d10]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x3c]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 5
jnp 0x4af314
fld dword [esp + 0x3c]
fcomp dword [0x5374e8]
fnstsw ax
and eax, 0x4100
jne 0x4af31c
mov dword [esp + 0x3c], 0x3f800000
mov edx, dword [0x1324d0c]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x1c]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 5
jnp 0x4af34d
fld dword [esp + 0x1c]
fcomp dword [0x5374e8]
fnstsw ax
and eax, 0x4100
jne 0x4af355
mov dword [esp + 0x1c], 0x3f800000
mov ecx, dword [0x1324f5c]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x18], edx
fld dword [esp + 0x18]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 5
jnp 0x4af386
fld dword [esp + 0x18]
fcomp dword [0x5374e8]
fnstsw ax
and eax, 0x4100
jne 0x4af38e
mov dword [esp + 0x18], 0x3f800000
mov ecx, dword [0x1324d18]
xor eax, eax
mov edx, dword [ecx + 0x20]
test edx, edx
mov edx, dword [0x1324f88]
setne al
mov edi, eax
mov eax, dword [edx + 0x1c]
push eax
call fcn.00462f80
fstp dword [esp + 0x18]
add esp, 4
fld dword [esp + 0x10]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 5
jp 0x4af3cf
mov dword [esp + 0x10], 0x3a83126f
fld dword [esp + 0x44]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 5
jp 0x4af3e8
mov dword [esp + 0x44], 0x3a83126f
fld dword [esp + 0x38]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 5
jp 0x4af401
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.0045aec0
add esp, 8
lea eax, [esp + 0x6fc]
lea ecx, [esp + 0xfc]
push eax
push ecx
test ebp, ebp
fstp st(0)
je 0x4af464
xor edx, edx
cmp ebp, 1
sete dl
push edi
push edx
push 0x1324ebc
call dword [0x1325094]
add esp, 0x14
jmp 0x4af4c9
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 [0x537954]
fstp dword [esp]
call fcn.00462f80
fstp dword [esp]
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [0x1325090]
add esp, 0x38
test eax, eax
mov dword [esp + 0x64], eax
jne 0x4af4de
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2aec
ret
test esi, esi
je 0x4af4fc
mov esi, dword [0x1324eb4]
push esi
mov dword [esp + 0x58], esi
call fcn.004aee30
add esp, 4
xor edx, edx
jmp 0x4af5b4
mov eax, dword [0x1324eb0]
test eax, eax
jne 0x4af53f
push 0x4000
call dword [0x1325014]
add esp, 4
test eax, eax
je 0x4af4d1
mov dword [0x1324eb0], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4af523
mov dword [eax + 0x3f80], 0
mov eax, dword [0x1324eb0]
mov edx, dword [eax]
mov ecx, dword [0x1324e30]
mov dword [0x1324eb0], edx
mov dword [eax], ecx
mov dword [eax + 4], 0x1324e30
mov edx, dword [0x1324e30]
mov esi, eax
mov dword [edx + 4], eax
mov ecx, dword [0x132515c]
mov dword [0x1324e30], 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 0x4af790
cmp ebp, 1
jne 0x4af69e
mov eax, dword [0x1324ee8]
mov dword [esi + 0x50], eax
mov ecx, dword [0x1324eec]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x1324ef0]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x1324edc]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x1324ee0]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x1324ee4]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x1324f08]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x1324f0c]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x1324f10]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x1324f14]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x1324f18]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x1324f1c]
jmp 0x4af708
mov eax, dword [0x1324f14]
mov dword [esi + 0x50], eax
mov ecx, dword [0x1324f18]
lea eax, [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x1324f1c]
mov dword [esi + 0x58], ecx
mov ecx, dword [0x1324f08]
mov dword [esi + 0x5c], ecx
mov ecx, dword [0x1324f0c]
mov dword [esi + 0x60], ecx
mov ecx, dword [0x1324f10]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x1324f34]
mov dword [esi + 0x68], ecx
mov ecx, dword [0x1324f38]
mov dword [esi + 0x6c], ecx
mov ecx, dword [0x1324f3c]
mov dword [esi + 0x70], ecx
mov ecx, dword [0x1324f40]
mov dword [esi + 0x74], ecx
mov ecx, dword [0x1324f44]
mov dword [esi + 0x78], ecx
mov ecx, dword [0x1324f48]
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 0x4af728
fld dword [esp + 0x2c]
fmul qword [0x537ac0]
fst dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x537ac0]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul qword [0x537ac0]
fadd dword [0x537748]
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 0x4b0159
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 0x4b0135
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4af802
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 0x4af7e7
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.0045adf0
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 0x4afcd6
mov ecx, dword [esp + 0x64]
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x4afcd6
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 0x4afcc0
mov eax, dword [edi + 4]
test eax, eax
jg 0x4afcc0
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], eax
jne 0x4afcc0
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 [0x537988]
fnstsw ax
and eax, 0x4100
je 0x4afcc0
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.0045adf0
lea edx, [esp + 0x70]
lea eax, [esp + 0x5c]
push edx
push eax
fstp st(0)
call fcn.0045abb0
add esp, 0xc
test eax, eax
je 0x4afcb4
xor eax, eax
test ebx, ebx
mov dword [esp + 0x14], eax
jle 0x4afcb4
mov ecx, dword [edi]
xor esi, esi
test ecx, ecx
jle 0x4afa57
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.0045abb0
add esp, 8
test eax, eax
je 0x4afa3e
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.0045abb0
add esp, 8
test eax, eax
jne 0x4afa65
mov edx, dword [esp + 0x18]
mov esi, edi
add ebx, 0x18
mov ecx, dword [edx]
cmp esi, ecx
jl 0x4afa01
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x4af9ef
jmp 0x4afcb4
mov eax, dword [esp + 0x10]
mov ecx, 1
xor ebx, ebx
cmp eax, ecx
jle 0x4afa95
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 0x4afa78
mov edx, dword [esp + 0x18]
mov ecx, 1
mov edi, dword [edx]
cmp edi, ecx
jle 0x4afabe
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 0x4afaa4
xor edi, edi
test ebx, ebx
jle 0x4afc8a
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.0045adf0
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 [0x537c58]
cmp ecx, edi
je 0x4afb9f
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 0x4afcb2
inc ecx
cmp ecx, ebx
jl 0x4afb6d
inc edi
inc ebp
cmp edi, ebx
fstp st(0)
jl 0x4afacd
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.0045adf0
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.0045adf0
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 [0x537b28]
fnstsw ax
and eax, 0x4100
jne 0x4afc73
cmp ebp, ebx
jge 0x4afc72
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 0x4afbc0
cmp ebx, 8
jg 0x4afcb4
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4afca6
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 0x4afcb4
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 0x4af8d9
mov ebx, dword [0x1324e2c]
test ebx, ebx
jne 0x4afd24
push 0x18000
call dword [0x1325014]
add esp, 4
test eax, eax
je 0x4b0159
mov dword [0x1324e2c], eax
lea ecx, [eax + 0xd8]
mov edx, 0x17f
lea esi, [ecx + 0x28]
mov dword [ecx], esi
add ecx, 0x100
dec edx
jne 0x4afd06
mov dword [eax + 0x17fd8], 0
mov ebx, dword [0x1324e2c]
mov edx, dword [ebx + 0xd8]
lea eax, [ebx + 0xd8]
mov ebp, dword [esp + 0x10]
mov dword [0x1324e2c], 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 0x4afd6f
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 0x4afd5a
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 [0x1324f74]
test eax, eax
jle 0x4afdad
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4b0135
mov edx, dword [0x1324d00]
mov esi, dword [edx + 0x20]
test esi, esi
je 0x4b0135
test eax, eax
jge 0x4afe66
mov ecx, dword [0x1324cf8]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4b0135
lea edx, [eax + eax*2]
mov eax, dword [0x1325100]
shl edx, 4
mov esi, dword [eax + 0x90]
sub esi, edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4afde7
mov ecx, dword [esi + 0x24]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4afe51
mov edx, dword [esi + 0x24]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1325020]
mov edi, eax
add esp, 4
test edi, edi
je 0x4b011e
mov ecx, dword [esi + 0x24]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044ee30
mov eax, dword [esi + 0x24]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4afe4e
mov ecx, dword [esi + 0x24]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044eee0
mov edx, dword [esi + 0x20]
push edx
call dword [0x1325024]
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 0x4b011e
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4b0135
lea edx, [esp + 0xb0]
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.0045b040
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 0x4b001a
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.004c0f70
mov esi, eax
test esi, esi
je 0x4affc4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4affc4
test al, 1
jne 0x4affc4
mov ecx, dword [ebx + 0xfc]
xor eax, eax
test ecx, ecx
jle 0x4aff1c
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4aff1c
inc eax
add edx, 4
cmp eax, ecx
jl 0x4aff10
cmp eax, ecx
jne 0x4affc4
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aff34
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4aff9a
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1325020]
mov edi, eax
add esp, 4
test edi, edi
je 0x4affaa
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044ee30
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4aff97
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044eee0
mov edx, dword [esi + 0x58]
push edx
call dword [0x1325024]
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.0045b0b0
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 0x4afeb7
fild dword [ebx + 8]
lea ecx, [esp + 0x2c]
fdivr dword [0x5374e8]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fild dword [ebx + 8]
fdivr dword [0x5374e8]
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [ebx + 8]
fdivr dword [0x5374e8]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.004c0f70
mov ecx, dword [ebx + 0xfc]
mov esi, eax
xor eax, eax
test ecx, ecx
jle 0x4b0076
lea edx, [ebx + 0xdc]
cmp dword [edx], esi
je 0x4b0076
inc eax
add edx, 4
cmp eax, ecx
jl 0x4b006a
cmp eax, ecx
jne 0x4b011e
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4b008e
mov ecx, dword [esi + 0x5c]
cmp dword [eax + ecx*4], 0xffffffff
jne 0x4b00f4
mov edx, dword [esi + 0x5c]
lea eax, [edx*4 + 0x200]
push eax
call dword [0x1325020]
mov edi, eax
add esp, 4
test edi, edi
je 0x4b0104
mov ecx, dword [esi + 0x5c]
lea edx, [ecx*4 + 0x200]
shr edx, 2
push edx
push 0
push edi
call fcn.0044ee30
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov dword [edi + eax*4 + 0x1fc], 0xffffffff
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4b00f1
mov ecx, dword [esi + 0x5c]
shl ecx, 2
push ecx
push eax
push edi
call fcn.0044eee0
mov edx, dword [esi + 0x58]
push edx
call dword [0x1325024]
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 0x4af7ad
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2aec
ret