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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x83de00
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x47c]
push edi
lea ecx, [eax + 4]
call fcn.006819d0
test eax, eax
je 0x5f03c9
mov eax, dword [esi + 0x47c]
lea ecx, [eax + 4]
call fcn.006819d0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
cmp eax, 0xcf
je 0x5f12d1
cmp eax, 0xd4
je 0x5f12d1
cmp eax, 0xda
je 0x5f12ee
mov eax, dword [esi + 0x584]
test eax, eax
mov edi, dword [esp + 0xe8]
je 0x5f0403
mov cl, byte [eax + 0x36]
and cl, 7
cmp cl, 2
jne 0x5f0403
cmp dword [eax + 0x590], 5
je 0x5f12ee
mov ecx, esi
call fcn.005df8f0
test al, al
jne 0x5f12ee
jmp 0x5f042b
mov eax, dword [esi + 0x58c]
test eax, eax
je 0x5f042b
cmp eax, edi
jne 0x5f042b
cmp dword [edi + 0x590], 5
je 0x5f12ee
cmp dword [edi + 0x594], 4
je 0x5f12ee
mov eax, dword [esi + 0x47c]
push 0x3ec
lea ecx, [eax + 4]
call fcn.00681740
test eax, eax
je 0x5f0478
cmp dword [eax + 0x10], edi
jne 0x5f0478
lea edx, [edi + 0x44]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edx
call fcn.00406da0
fcomp dword [0x866fc0]
fnstsw ax
test ah, 5
jnp 0x5f12ee
mov eax, dword [edi + 0x14]
test eax, eax
lea ecx, [eax + 0x30]
jne 0x5f0485
lea ecx, [edi + 4]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5f0491
add eax, 0x30
jmp 0x5f0494
lea eax, [esi + 4]
fld dword [eax + 8]
mov dword [esp + 0x60], 0xbf
fsub dword [ecx + 8]
mov dword [esp + 0x70], 0x3f800000
fld dword [eax + 4]
fsub dword [ecx + 4]
fld dword [eax]
fsub dword [ecx]
fstp dword [esp + 0x1c]
fstp dword [esp + 0x20]
fstp dword [esp + 0x24]
fld dword [esp + 0xec]
fcomp dword [0x858ccc]
fnstsw ax
test ah, 0x41
jne 0x5f0e0d
mov ecx, esi
call fcn.005df8f0
test al, al
jne 0x5f0e0d
mov byte [esp + 0x13], al
call fcn.00821b1e
and al, 3
push 0
push 0xffffffffffffffff
mov byte [esp + 0x4b], al
mov dword [esp + 0x58], 0x31
call fcn.0056e0d0
add esp, 8
cmp edi, eax
jne 0x5f0595
fld dword [0x858624]
lea ebp, [edi + 0x44]
fdiv dword [edi + 0x8c]
mov ecx, ebp
fstp dword [esp + 0x28]
call fcn.004082c0
fmul dword [esp + 0x28]
fmul dword [0x86c688]
fadd dword [0x858a14]
fcomp dword [0x859f80]
fnstsw ax
test ah, 0x41
jne 0x5f0551
fld dword [0x859f80]
jmp 0x5f0568
mov ecx, ebp
call fcn.004082c0
fmul dword [esp + 0x28]
fmul dword [0x86c688]
fadd dword [0x858a14]
call fcn.00821b40
mov byte [esp + 0x14], al
movzx ecx, al
mov eax, 0x9c40
cdq
idiv ecx
mov edx, dword [esp + 0x14]
push 0
push edx
push eax
push 0
call fcn.0053fb70
add esp, 4
mov ecx, eax
call fcn.0053f920
mov ebx, dword [esi + 0x46c]
and ebx, 0xfffffffe
mov dword [esi + 0x46c], ebx
fld dword [edi + 0x48]
fchs
lea ebx, [edi + 0x44]
fld dword [ebx]
lea eax, [esp + 0x64]
fchs
push eax
fstp dword [esp + 0x68]
mov ecx, esi
fstp dword [esp + 0x6c]
call fcn.005def60
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.00535300
fld dword [esp + 0x24]
mov ebp, dword [edi + 0x14]
fmul dword [ebp + 8]
mov ecx, dword [eax + 0xc]
fld dword [esp + 0x20]
mov eax, dword [edi + 0x594]
cmp eax, 6
fmul dword [ebp + 4]
mov dword [esp + 0x14], ecx
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [ebp]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fmul dword [ebp + 0x28]
fld dword [esp + 0x20]
fmul dword [ebp + 0x24]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [ebp + 0x20]
faddp st(1)
fstp dword [esp + 0x28]
jne 0x5f062e
push 0x3f666666
push ebx
lea edx, [esp + 0x4c]
push edx
jmp 0x5f0b6a
lea ecx, [ebp + 0x10]
push ecx
push ebx
call fcn.0040fdb0
fcomp dword [0x858b50]
add esp, 8
fnstsw ax
test ah, 5
jnp 0x5f0baf
fld dword [esp + 0x18]
fcomp dword [0x858b50]
fld dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x5f0663
fchs
fld dword [esp + 0x14]
fmul dword [0x862cd0]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x5f06e3
fld dword [esp + 0x18]
mov byte [esp + 0x13], 4
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x41
je 0x5f0693
mov byte [esp + 0x13], 3
fld dword [esp + 0x24]
mov ecx, edi
fmul dword [ebp + 0x18]
fld dword [esp + 0x20]
fmul dword [ebp + 0x14]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [ebp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
call fcn.00535300
fld dword [esp + 0x14]
fabs
fld dword [eax + 0x10]
fmul dword [0x862e1c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x5f0baf
push 0x3f666666
push ebx
lea edx, [esp + 0x4c]
push edx
jmp 0x5f0b6f
mov cl, byte [esp + 0x43]
test cl, cl
je 0x5f0709
fld dword [esp + 0x28]
fcomp dword [0x858b1c]
fnstsw ax
test ah, 0x41
jne 0x5f0b5f
cmp cl, 1
jbe 0x5f0b5f
mov ecx, dword [edi + 0x384]
test byte [ecx + 0xcc], 8
jne 0x5f0b5f
mov ecx, edi
mov byte [esp + 0x13], 1
call fcn.00535300
mov edx, dword [eax + 0x10]
mov ecx, edi
mov dword [esp + 0x28], edx
call fcn.00535300
mov eax, dword [eax + 4]
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00535300
mov ebp, dword [edi + 0x14]
fld dword [ebp + 0x18]
mov ecx, dword [eax + 0x14]
fcomp dword [0x858fdc]
mov dword [esp + 0x2c], ecx
fnstsw ax
test ah, 5
jp 0x5f07d8
test ebp, ebp
je 0x5f076b
lea edx, [ebp + 0x30]
mov dword [esp + 0x14], edx
jmp 0x5f0772
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
lea ecx, [ebp + 0x10]
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040fe90
mov ecx, dword [esp + 0x38]
add esp, 0xc
push eax
add ebp, 0x20
push ebp
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0040fe90
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.0040fe30
add esp, 0x18
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.0040fe30
fld dword [esp + 0x34]
fsub dword [esp + 0x24]
mov eax, dword [eax + 8]
add esp, 0xc
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x18]
jmp 0x5f0917
fld dword [ebp + 0x18]
fcomp dword [0x858b1c]
fnstsw ax
test ah, 0x41
jne 0x5f08c5
test ebp, ebp
je 0x5f07f9
lea ecx, [ebp + 0x30]
mov dword [esp + 0x14], ecx
jmp 0x5f0800
lea edx, [edi + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x28]
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.0040fe90
add esp, 0xc
push eax
mov eax, dword [esp + 0x30]
add ebp, 0x20
push ebp
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0040fe90
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0040fe30
add esp, 0x18
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040fe30
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x14]
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
lea eax, [ecx + 0x30]
jne 0x5f086a
lea eax, [esi + 4]
fld dword [esp + 0x2c]
fsub dword [eax + 8]
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x41
jne 0x5f0917
test ecx, ecx
lea eax, [ecx + 0x30]
jne 0x5f088c
lea eax, [esi + 4]
fld dword [esp + 0x2c]
fsub dword [eax + 8]
fmul dword [0x858b8c]
fadd dword [ecx + 0x38]
fstp dword [ecx + 0x38]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5f08ab
add eax, 0x30
jmp 0x5f08ae
lea eax, [esi + 4]
fld dword [esp + 0x2c]
fsub dword [eax + 8]
fmul dword [0x858c84]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
jmp 0x5f0917
test ebp, ebp
je 0x5f08d2
lea ecx, [ebp + 0x30]
mov dword [esp + 0x14], ecx
jmp 0x5f08d9
lea edx, [edi + 4]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x2c]
add ebp, 0x20
push ebp
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040fe90
mov edx, dword [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x88]
push eax
call fcn.0040fe30
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
add esp, 0x18
mov ecx, edi
call fcn.00535300
mov edx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov ecx, ebx
call fcn.004082c0
fdivr dword [esp + 0x18]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5f092e
add eax, 0x30
jmp 0x5f0931
lea eax, [esi + 4]
fld dword [esp + 0x2c]
fsub dword [eax + 8]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
call fcn.00821b1e
and eax, 0xff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
fmul qword [0x8631f8]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
fadd qword [0x86c680]
mov dword [esp + 0x24], edx
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
call fcn.0059c910
fld dword [esp + 0x18]
lea eax, [esp + 0x1c]
fmul dword [0x858cc4]
push eax
push ecx
lea ecx, [esp + 0x5c]
fstp dword [esp]
push ecx
call fcn.0040fe90
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
fadd dword [esp + 0x24]
lea ebp, [esi + 0x44]
mov eax, ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x3c]
add eax, 2
add esp, 0xc
cmp eax, 3
mov dword [esp + 0x30], eax
jle 0x5f09eb
sub eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x590]
test eax, eax
jne 0x5f0b11
mov ecx, edi
call fcn.006aa200
mov ebx, eax
test ebx, ebx
je 0x5f0b11
call fcn.00821b1e
test al, 1
mov eax, dword [edi + 0x14]
je 0x5f0a6f
add eax, 0x20
push eax
lea edx, [esp + 0x58]
push 0x3f000000
push edx
call fcn.0040fe90
add esp, 0xc
push eax
mov eax, dword [edi + 0x14]
push eax
lea eax, [esp + 0x7c]
push 0x3dcccccd
push eax
call fcn.0040fe90
push eax
lea ecx, [esp + 0x58]
push ebp
push ecx
call fcn.0040fe30
add esp, 0x18
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.0040fe30
mov edx, dword [eax]
lea ecx, [ebx + 0x44]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
jmp 0x5f0ac6
add eax, 0x20
push eax
lea ecx, [esp + 0x58]
push 0x3f000000
push ecx
call fcn.0040fe90
add esp, 0xc
push eax
mov eax, dword [edi + 0x14]
push eax
lea edx, [esp + 0x7c]
push 0x3dcccccd
push edx
call fcn.0040fe90
push eax
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.0040fe60
add esp, 0x18
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040fe30
mov ecx, dword [eax]
lea edx, [ebx + 0x44]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov ebp, dword [edi + 0x14]
add esp, 0xc
lea ecx, [ebp + 0x20]
push ecx
lea edx, [esp + 0x58]
push 0x41200000
push edx
call fcn.0040fe90
add ebp, 0x10
mov edx, dword [ebp]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, ebx
call fcn.00542a50
mov eax, dword [edi + 0x14]
test eax, eax
lea ecx, [eax + 0x30]
jne 0x5f0b1e
lea ecx, [edi + 4]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5f0b2a
add eax, 0x30
jmp 0x5f0b2d
lea eax, [esi + 4]
push ecx
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040fe60
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
add esp, 0xc
mov dword [esp + 0x24], edx
call fcn.0056d290
test al, al
je 0x5f0bc7
push 0
push 0x7a
jmp 0x5f0bbc
push 0x3f666666
push ebx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x1f], 2
mov dword [esp + 0x5c], 0x32
call fcn.0040fec0
mov edx, dword [eax]
lea ecx, [esi + 0x44]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, 1
mov dword [esi + 0x4c], 0
je 0x5f0ba7
cmp eax, 3
jne 0x5f0baf
mov dword [esp + 0x30], 2
call fcn.0056d290
test al, al
je 0x5f0bc7
push 0
push 0x77
lea ecx, [edi + 0x138]
call fcn.004f6420
mov eax, dword [edi + 0x460]
test eax, eax
je 0x5f0bea
cmp dword [esi + 0x598], 6
push eax
push esi
jne 0x5f0be0
push 0xb
jmp 0x5f0be2
push 0xa
call fcn.00532010
add esp, 0xc
mov ebp, dword [esp + 0x50]
push 0
push 3
push ebp
push 0x447a0000
push edi
lea ecx, [esp + 0xd8]
call fcn.004ad3f0
mov ecx, dword [esi + 0x46c]
mov ebx, dword [esp + 0x30]
mov edx, dword [0xb7cb84]
shr ecx, 8
and ecx, 0xffffff01
push ecx
push 0
push ebx
push 3
push ebp
push edx
push edi
lea ecx, [esp + 0x9c]
mov dword [esp + 0xfc], 0
call fcn.004ad830
mov byte [esp + 0xe0], 1
call fcn.00821b1e
and al, 3
cmp ebx, 3
ja case.default.0x5f0c52
jmp dword [ebx*4 + 0x5f130c]
mov cl, byte [esp + 0x13]
cmp cl, 3
jne 0x5f0c6d
cmp al, 1
jbe 0x5f0c7d
mov ebx, 0x19
jmp 0x5f0cb3
cmp cl, 4
jne 0x5f0c7d
cmp al, 1
jbe 0x5f0c7d
mov ebx, 0x1b
jmp 0x5f0cb3
mov ebx, 0x18
jmp 0x5f0cb3
mov cl, byte [esp + 0x13]
cmp cl, 3
jne 0x5f0c98
cmp al, 1
jbe 0x5f0ca8
mov ebx, 0x16
jmp 0x5f0cb3
cmp cl, 4
jne 0x5f0ca8
cmp al, 1
jbe 0x5f0ca8
mov ebx, 0x17
jmp 0x5f0cb3
mov ebx, 0x1a
jmp 0x5f0cb3
mov ebx, dword [esp + 0x60]
push esi
lea ecx, [esp + 0x84]
call fcn.004b35a0
test al, al
je 0x5f0de0
cmp ebp, 0x31
jne 0x5f0ce7
lea ecx, [edi + 0x44]
call fcn.004082c0
fmul dword [0x859000]
fadd dword [0x858b90]
fstp dword [esp + 0x28]
jmp 0x5f0d18
lea ebp, [edi + 0x44]
mov ecx, ebp
call fcn.004082c0
fmul dword [0x858ccc]
mov ecx, ebp
fadd dword [0x858b90]
fstp dword [esp + 0x28]
call fcn.004082c0
fmul dword [0x8599d0]
fadd qword [0x85a310]
fstp dword [esp + 0x70]
push 1
lea eax, [esp + 0xbc]
push eax
push esi
lea ecx, [esp + 0xd0]
call fcn.004b5ac0
mov al, byte [esp + 0xf0]
test al, al
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
je 0x5f0d8e
mov eax, ecx
mov ecx, dword [esi + 0x18]
push eax
push ebx
push 0
push ecx
call fcn.004d4610
mov edx, dword [esp + 0x80]
mov dword [eax + 0x24], edx
mov al, byte [esp + 0xb5]
add esp, 0x10
or al, 4
mov byte [esp + 0xa5], al
mov eax, dword [esi + 0x47c]
push 0
lea ecx, [esp + 0x84]
push ecx
lea ecx, [eax + 0x68]
call fcn.004ab420
mov eax, dword [esi + 0x128]
test eax, eax
jne 0x5f0db6
mov dword [esi + 0x128], edi
cmp byte [esp + 0x13], 1
mov eax, dword [esi + 0x470]
jne 0x5f0dc8
or eax, 0x10
jmp 0x5f0dcb
and eax, 0xffffffef
mov dword [esi + 0x470], eax
mov eax, dword [esi + 0x47c]
mov byte [eax + 0x260], 1
jmp 0x5f0de7
and dword [esi + 0x470], 0xffffffef
push 0
push 0
push 0
push 0x3f800000
push 0
push 0x156
mov ecx, esi
call fcn.005effe0
mov byte [esp + 0xe0], 0
jmp 0x5f1132
fld dword [esi + 0xe8]
fcomp dword [0x858c9c]
fnstsw ax
test ah, 5
jp 0x5f0e34
fld dword [esp + 0xec]
fcomp dword [0x858b3c]
fnstsw ax
test ah, 0x41
je 0x5f0e6f
fld dword [esp + 0xec]
fcomp dword [0x858b44]
fnstsw ax
test ah, 0x41
jne 0x5f12ee
mov ecx, esi
call fcn.005df8f0
test al, al
je 0x5f0e6f
fld dword [esp + 0xec]
fcomp dword [0x85862c]
fnstsw ax
test ah, 0x41
jne 0x5f12ee
mov eax, dword [esi + 0x46c]
and eax, 0xfffffffe
mov dword [esi + 0x46c], eax
fld dword [edi + 0x48]
fchs
lea ebx, [edi + 0x44]
fld dword [ebx]
lea edx, [esp + 0x64]
fchs
push edx
fstp dword [esp + 0x68]
mov ecx, esi
fstp dword [esp + 0x6c]
call fcn.005def60
mov ecx, esi
mov ebp, eax
mov dword [esp + 0x14], 0x41f00000
call fcn.005df8f0
test al, al
je 0x5f0ec4
cmp dword [edi + 0x594], 6
jne 0x5f0ec4
mov dword [esp + 0x14], 0x43160000
mov eax, dword [esp + 0x14]
push 0
push 3
push 0x31
push eax
push edi
lea ecx, [esp + 0xd8]
call fcn.004ad3f0
mov ecx, dword [esi + 0x46c]
mov edx, dword [0xb7cb84]
shr ecx, 8
and ecx, 0xffffff01
push ecx
push 0
push ebp
push 3
push 0x31
push edx
push edi
lea ecx, [esp + 0x9c]
mov dword [esp + 0xfc], 2
call fcn.004ad830
push esi
lea ecx, [esp + 0x84]
mov byte [esp + 0xe4], 3
add ebp, 0x18
call fcn.004b35a0
test al, al
je 0x5f1001
push 1
lea eax, [esp + 0xbc]
push eax
push esi
lea ecx, [esp + 0xd0]
call fcn.004b5ac0
mov al, byte [esp + 0xf0]
test al, al
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], 0x41000000
mov dword [esp + 0xb4], 0x3f800000
je 0x5f0fa7
mov ecx, dword [esi + 0x18]
push 0x41000000
push ebp
push 0
push ecx
call fcn.004d4610
mov dword [eax + 0x24], 0x3f800000
mov al, byte [esp + 0xb5]
add esp, 0x10
or al, 4
mov byte [esp + 0xa5], al
mov eax, dword [esi + 0x47c]
push 0
lea edx, [esp + 0x84]
push edx
lea ecx, [eax + 0x68]
call fcn.004ab420
mov ecx, esi
call fcn.005df8f0
test al, al
je 0x5f0fee
mov eax, dword [esi + 0x1c]
test ah, 0x10
jne 0x5f0fee
cmp dword [edi + 0x594], 6
je 0x5f0fee
fld dword [esi + 0xe8]
fcomp dword [0x858c9c]
fnstsw ax
test ah, 5
jp 0x5f0ff4
mov dword [esi + 0x128], edi
mov eax, dword [esi + 0x47c]
mov byte [eax + 0x260], 1
and dword [esi + 0x470], 0xffffffef
cmp dword [edi + 0x594], 6
mov eax, dword [esi + 0x1c]
jne 0x5f10c7
test ah, 0x10
je 0x5f1051
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x44]
mov dword [eax], ecx
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x5f10f2
mov edx, ebx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
call fcn.0059c910
fld dword [esp + 0x38]
fmul dword [esi + 0x48]
lea ebp, [esi + 0x44]
fld dword [esp + 0x3c]
push ecx
fmul dword [ebp + 8]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x58]
faddp st(1)
fld dword [esp + 0x38]
fmul dword [ebp]
faddp st(1)
fstp dword [esp]
push eax
push ecx
call fcn.0040fec0
add esp, 0xc
push eax
mov ecx, ebp
call fcn.00406d70
push 0x3e99999a
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.0040fec0
add esp, 0xc
push eax
mov ecx, ebp
call fcn.00411a00
jmp 0x5f10f2
test ah, 0x10
jne 0x5f10f2
push 0x3f400000
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.0040fec0
mov edx, dword [eax]
lea ecx, [esi + 0x44]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
add esp, 0xc
mov dword [ecx + 8], eax
mov dword [esi + 0x4c], 0
call fcn.0056d290
test al, al
je 0x5f1111
push 0
push 0x79
lea ecx, [edi + 0x138]
call fcn.004f6420
push 0
push 0
push 0
push 0x3f800000
push 0
push 0x159
mov ecx, esi
call fcn.005effe0
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x80]
call fcn.004ad960
lea ecx, [esp + 0xc4]
mov dword [esp + 0xe0], 0xffffffff
call fcn.004ad420
fld dword [esp + 0x20]
mov eax, dword [edi + 0x14]
fmul dword [eax + 0x24]
add eax, 0x20
fld dword [esp + 0x24]
push eax
fmul dword [eax + 8]
push ecx
lea ecx, [esp + 0x5c]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [eax]
faddp st(1)
fstp dword [esp]
push ecx
call fcn.0040fe90
fld dword [esp + 0x28]
fsub dword [eax]
add esp, 0xc
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x20]
fsub dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fsub dword [eax + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
call fcn.0059c910
fld dword [esp + 0x38]
fmul dword [edi + 0x48]
mov al, byte [esi + 0x470]
test al, 0x10
fld dword [esp + 0x3c]
fmul dword [edi + 0x4c]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [edi + 0x44]
faddp st(1)
jne 0x5f11f7
fld dword [esp + 0x3c]
fsub dword [0x858cc4]
fstp dword [esp + 0x3c]
cmp dword [edi + 0x590], 9
jne 0x5f1208
fmul dword [0x8d22ac]
jmp 0x5f120e
fmul dword [0x8d22a8]
fstp dword [esp + 0x14]
push ecx
fld dword [esp + 0x20]
fmul dword [0x8d22a4]
fstp dword [esp + 0x68]
fld dword [esp + 0x24]
fmul dword [0x8d22a4]
fstp dword [esp + 0x6c]
fld dword [esp + 0x28]
fmul dword [0x8d22a4]
fstp dword [esp + 0x70]
fld dword [edi + 0x8c]
fdiv dword [0x8d22a0]
fstp dword [esp]
push 0x3f800000
call fcn.00404330
fstp dword [esp + 0x68]
mov edx, dword [0x8d22a0]
mov eax, dword [edi + 0x8c]
push edx
push eax
call fcn.00404330
fmul dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
fmul dword [esp + 0x24]
add esp, 0x10
fld dword [esp + 0x34]
push 1
sub esp, 0xc
fmul st(1)
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x7c]
fstp dword [esp + 0x54]
mov dword [ecx + 4], eax
fld dword [esp + 0x48]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x54]
fmul st(1)
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x64]
mov edx, dword [esp + 0x64]
fmul dword [esp + 0x58]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ecx
mov ecx, edi
call fcn.00542b50
jmp 0x5f12ee
mov eax, dword [esi + 0x128]
test eax, eax
mov eax, dword [esp + 0xe8]
je 0x5f12e8
test byte [eax + 0x36], 0xf8
jne 0x5f12ee
mov dword [esi + 0x128], eax
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd4
ret 0xc