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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [edx + 0x2c], edi
je 0x5affd1
mov dword [edx + 8], edi
mov ecx, dword [0x9d2c30]
mov eax, ecx
imul eax, eax, 0x4d0
add eax, 0x9cdfe0
mov esi, dword [eax]
mov dword [esp + 0xb4], esi
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xb8], esi
lea esi, [edx + 0x44]
mov ebp, 0x9558cc
mov dword [esp + 0xbc], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0xa0], 5
lea edx, [ebp - 0x2fc]
test edx, edx
je 0x5affb2
test byte [ebp + 0xbc4], 1
je 0x5affb2
mov eax, dword [ebp - 0x2f8]
cmp eax, edi
je 0x5affb2
cmp dword [eax + 0x730], edi
je 0x5affb2
mov edx, dword [eax + 0x84]
imul ecx, ecx, 0x4d0
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 0x88]
fld dword [esp + 0xa4]
mov eax, dword [eax + 0x8c]
fsub dword [esp + 0xb4]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
add ecx, 0x9cdf70
fstp dword [esp + 0x2c]
movss xmm0, dword [esp + 0x2c]
fld dword [esp + 0x2c]
movss dword [esp + 0xc0], xmm0
fstp dword [esp + 0xd0]
mov edx, dword [esp + 0xc0]
fld dword [esp + 0xa8]
push ecx
fsub dword [esp + 0xbc]
mov dword [esp + 0x100], edx
lea ecx, [esp + 0x130]
mov dword [esp + 0xb4], edi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
fstp dword [esp + 0xd8]
movss dword [esp + 0xc8], xmm0
fld dword [esp + 0xb0]
mov eax, dword [esp + 0xc8]
fsub dword [esp + 0xc0]
mov dword [esp + 0x104], eax
lea eax, [esp + 0x100]
push eax
fstp dword [esp + 0x20]
push ecx
fld dword [esp + 0x24]
fst dword [esp + 0xe4]
fld dword [esp + 0xdc]
fld dword [esp + 0xe0]
fld dword [esp + 0xe4]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x24]
fstp dword [esp + 0xd4]
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x110], edx
call fcn.00404dc0
fld dword [esp + 0x24]
fld qword [0x6f9b48]
add esp, 0xc
fcompi st(1)
fstp st(0)
jbe 0x5affa0
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x6cc5fc]
jbe 0x5affa0
movss xmm0, dword [esp + 0x134]
comiss xmm0, dword [0x6e5b14]
jbe 0x5affa0
cmp dword [0x9540b0], edi
mov dword [esp + 0xb0], 1
mov dword [esp + 0x2c], edi
je 0x5af9f5
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
cmp eax, 3
je 0x5af9d2
cmp eax, 5
jne 0x5af9f5
mov ecx, dword [ebp + 0x638]
mov eax, dword [ebp + 0x634]
push ecx
push eax
call fcn.0053cad0
call fcn.0053c0e0
cmp eax, edi
je 0x5af9f5
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x18]
push ecx
fstp dword [esp]
call fcn.005add70
fld dword [esp + 0x18]
push ecx
fstp dword [esp]
call fcn.005ad120
fstp dword [esp + 0x14]
push ecx
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.005ad0b0
cmp dword [esp + 0x2c], edi
fstp dword [esp + 0x18]
movzx edi, al
je 0x5afa3a
shl edi, 0x18
mov ebx, edi
or ebx, 0xffff00
jmp 0x5afa45
shl edi, 0x18
mov ebx, edi
or ebx, 0xf0f0f0
mov ecx, dword [0x9d2c30]
fld dword [esp + 0xa4]
movss xmm0, dword [esp + 0xac]
imul ecx, ecx, 0x4d0
fstp dword [esp + 0x20]
fld dword [esp + 0xa8]
fadd dword [esp + 0x14]
fstp dword [esp + 0x24]
lea edx, [esp + 0x20]
add ecx, 0x9ce070
push edx
movss dword [esp + 0x2c], xmm0
call fcn.00404e50
fld dword [esp + 0x24]
movzx eax, word [0x9cdcd4]
fld qword [0x6f99e0]
movzx ecx, word [0x9cdcd6]
fmul st(1), st(0)
mov dword [esp + 0x18], eax
fadd st(1), st(0)
add esp, 4
cmp dword [esi - 8], 0
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
fld dword [esp + 0x24]
fmul st(2)
faddp st(2)
fmul st(1), st(0)
fsubrp st(1)
fstp dword [esp + 0x24]
je 0x5afb36
fld dword [esi - 4]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fld dword [esp + 0x14]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x3c]
fld dword [esi]
fstp dword [esp + 0x14]
fld dword [esp + 0x24]
fld dword [esp + 0x14]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fld qword [0x6f9e08]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fadd dword [esp + 0x40]
fstp dword [esp + 0x24]
movss xmm0, dword [esp + 0x20]
movss dword [esi - 4], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esi], xmm0
mov eax, dword [0x9cdbec]
cmp dword [eax + 0x18], 0
je 0x5afb5b
mov esi, dword [eax + 0x18]
jmp 0x5afb5e
mov esi, dword [eax + 8]
fld1
push ecx
add ebp, 0x4b4
fstp dword [esp]
mov ecx, ebp
call fcn.00584d50
add esp, 4
movss dword [esp + 0xe0], xmm0
call fcn.005443b0
mov ecx, 0x6cc60c
call fcn.00548f80
fld dword [esp + 0xe0]
fmul dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x44]
fstp dword [esp + 0x30]
call fcn.006147a0
fld dword [esp + 0x14]
mov esi, eax
mov eax, dword [0x9cdbec]
fst dword [esp + 0x14]
cmp dword [eax + 0x18], 0
fstp dword [esp + 0x4c]
je 0x5afbce
mov eax, dword [eax + 0x18]
jmp 0x5afbd1
mov eax, dword [eax + 8]
fld dword [esp + 0x14]
push ecx
fmul qword [0x6f9f50]
fstp qword [esp + 0xf4]
fld dword [esp + 0x1c]
fstp dword [esp]
push ebp
push eax
call fcn.005852a0
fadd qword [esp + 0xfc]
add esp, 0xc
fstp dword [esp + 0x34]
cvttss2si eax, dword [esp + 0x34]
fld dword [esp + 0x20]
mov ecx, edi
or ecx, 0xffffff
test eax, eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
jge 0x5afc23
fadd dword [0x6f9a18]
fmul qword [0x6f99e0]
movss xmm0, dword [esp + 0x24]
xorps xmm1, xmm1
push esi
fsubp st(1)
mov esi, dword [esp + 0x140]
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x60], xmm0
fstp dword [esp + 0x10c]
movss xmm0, dword [0x6cc5ec]
fld dword [esp + 0x10c]
push esi
fst dword [esp + 0x58]
lea eax, [esp + 0x58]
fld st(0)
mov dword [esp + 0x78], ecx
fadd dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
fstp dword [esp + 0x3c]
movss dword [esp + 0x88], xmm1
fld dword [esp + 0x3c]
movss dword [esp + 0x98], xmm1
fst dword [esp + 0x60]
movss dword [esp + 0x8c], xmm0
fxch st(1)
movss dword [esp + 0x9c], xmm1
fstp dword [esp + 0x68]
movss dword [esp + 0x90], xmm1
fld dword [esp + 0x54]
movss dword [esp + 0xa0], xmm0
fadd dword [esp + 0x2c]
movss dword [esp + 0x94], xmm0
movss dword [esp + 0xa4], xmm0
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fst dword [esp + 0x6c]
fstp dword [esp + 0x74]
fstp dword [esp + 0x70]
call fcn.00402f70
fld dword [esp + 0x108]
mov eax, dword [0x9cdbec]
cmp dword [eax + 0x18], 0
fadd qword [esp + 0xf0]
fstp dword [esp + 0x114]
je 0x5afd23
mov eax, dword [eax + 0x18]
jmp 0x5afd26
mov eax, dword [eax + 8]
fldz
movss xmm1, dword [esp + 0x24]
movss xmm0, dword [esp + 0x114]
push 1
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push 5
fld dword [esp + 0x28]
push ecx
fstp dword [esp]
push ebx
push esi
push ebp
mov esi, eax
call fcn.00585b60
add esp, 0x20
cmp dword [esp + 0x2c], 0
je 0x5afe54
fld dword [esp + 0x108]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x44]
movss xmm0, dword [esp + 0x24]
fld qword [0x6f9f50]
xorps xmm1, xmm1
fmul st(1)
mov eax, edi
or eax, 0xffff00
mov dword [esp + 0x70], eax
fsubp st(2)
mov dword [esp + 0x74], eax
fxch st(1)
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
fstp dword [esp + 0x120]
mov eax, dword [esp + 0x13c]
fld dword [esp + 0x120]
push edx
fst dword [esp + 0x54]
movss dword [esp + 0x58], xmm0
fld st(0)
movss dword [esp + 0x60], xmm0
movss xmm0, dword [0x6cc5ec]
faddp st(2)
fxch st(1)
push eax
lea eax, [esp + 0x58]
fstp dword [esp + 0x4c]
movss dword [esp + 0x88], xmm1
fld dword [esp + 0x4c]
movss dword [esp + 0x98], xmm1
fst dword [esp + 0x60]
movss dword [esp + 0x8c], xmm0
fxch st(1)
movss dword [esp + 0x9c], xmm1
fstp dword [esp + 0x68]
movss dword [esp + 0x90], xmm1
fld dword [esp + 0x38]
movss dword [esp + 0xa0], xmm0
fadd dword [esp + 0x2c]
movss dword [esp + 0x94], xmm0
movss dword [esp + 0xa4], xmm0
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fst dword [esp + 0x6c]
fstp dword [esp + 0x74]
fstp dword [esp + 0x70]
call fcn.00402f70
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0xbc0], 0
je 0x5aff98
call fcn.005443b0
mov ecx, 0x6cc618
call fcn.00548f80
fld dword [esp + 0x18]
fmul qword [0x6fa5e0]
xorps xmm1, xmm1
mov edx, dword [esp + 0x13c]
or edi, 0xffff
fstp dword [esp + 0x1c]
push eax
fld dword [esp + 0x20]
push edx
fst dword [esp + 0x24]
lea eax, [esp + 0x58]
fstp dword [esp + 0x38]
mov dword [esp + 0x78], edi
fld dword [esp + 0x28]
mov dword [esp + 0x7c], edi
fld dword [esp + 0x24]
mov dword [esp + 0x80], edi
fld qword [0x6f99e0]
mov dword [esp + 0x84], edi
fmul st(1)
movss dword [esp + 0x88], xmm1
movss dword [esp + 0x98], xmm1
movss dword [esp + 0x9c], xmm1
fsubp st(2)
movss dword [esp + 0x90], xmm1
fxch st(1)
fstp dword [esp + 0xec]
fld dword [esp + 0x2c]
movss xmm0, dword [esp + 0xec]
fld dword [esp + 0x38]
movss dword [esp + 0x68], xmm0
fld qword [0x6f9f50]
movss xmm0, dword [0x6cc5ec]
fmul st(1)
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0x94], xmm0
fsubp st(2)
movss dword [esp + 0xa4], xmm0
fxch st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0xec]
fst dword [esp + 0x58]
fld dword [esp + 0xf0]
fst dword [esp + 0x5c]
fxch st(1)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [esp + 0x60]
fxch st(2)
fst dword [esp + 0x64]
faddp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [esp + 0x6c]
fstp dword [esp + 0x74]
fstp dword [esp + 0x70]
call fcn.00402f70
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0xb0]
mov dword [esi - 8], eax
mov ecx, dword [0x9d2c30]
xor edi, edi
add ebp, 0xec8
add esi, 0xc
sub dword [esp + 0xa0], 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], esi
jne 0x5af817
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 4