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

Disassembly:
push 0xffffffffffffffff
push 0x594086
mov eax, dword fs:[0]
push eax
mov eax, 0x19e4
mov dword fs:[0], esp
call fcn.0047b4d0
push ebx
push ebp
mov ebx, ecx
mov ebp, dword [ebx + 0x2c]
push edi
xor edi, edi
cmp ebp, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], edi
ja 0x518630
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x19e4]
mov dword fs:[0], ecx
add esp, 0x19f0
ret
push esi
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], edi
mov dword [esp + 0x11c], edi
mov dword [esp + 0x19fc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], edi
mov esi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x1c]
add eax, esi
mov edx, ecx
mov esi, dword [edx + 8]
dec eax
cmp esi, eax
mov byte [esp + 0x19fc], 1
ja 0x518681
sub eax, esi
mov edx, dword [edx + 4]
fld dword [ebx + 0x40]
mov eax, dword [edx + eax*4]
fcomp dword [eax]
fnstsw ax
test ah, 5
jp 0x518698
mov ecx, dword [ebx + 0x40]
jmp 0x5186b4
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
add eax, edx
mov edx, ecx
mov ecx, dword [edx + 8]
dec eax
cmp ecx, eax
ja 0x5186ac
sub eax, ecx
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
dec ebp
lea edx, [ebp + ebp*2]
mov dword [esp + 0x3c], ecx
lea eax, [esp + edx*4 + 0xbe4]
mov ecx, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0xcc], ecx
lea ebx, [ebx]
mov eax, dword [esp + 0x38]
test eax, eax
mov esi, dword [esp + 0x34]
je 0x51871f
lea edx, [esp + 0xbc]
add esi, 0x1c
mov dword [esp + 0x88], edx
jmp 0x518730
lea eax, [esp + 0x110]
add esi, 8
mov dword [esp + 0x88], eax
xor eax, eax
test ebp, ebp
jle 0x51885e
mov edi, dword [esi + 0xc]
lea ecx, [esp + 0xbe4]
mov dword [esp + 0x18], ecx
jmp 0x518750
mov ecx, esi
mov dword [esp + 0x1c8], ecx
mov ecx, dword [ecx + 8]
lea edx, [edi + eax + 1]
cmp ecx, edx
ja 0x518766
sub edx, ecx
mov ecx, edi
mov ebx, esi
mov ebp, dword [ebx + 8]
add ecx, eax
cmp ebp, ecx
ja 0x518775
sub ecx, ebp
mov ebp, dword [esp + 0x1c8]
mov ebp, dword [ebp + 4]
mov edx, dword [ebp + edx*4]
mov ebx, dword [ebx + 4]
fld dword [edx]
mov ecx, dword [ebx + ecx*4]
fsub dword [ecx]
mov ecx, edi
mov ebx, esi
mov edx, dword [ebx + 8]
add ecx, eax
fst dword [esp + eax*4 + 0x284]
cmp edx, ecx
ja 0x5187a3
sub ecx, edx
mov ebp, esi
mov dword [esp + 0x1d0], ebp
mov ebp, dword [ebp + 8]
lea edx, [edi + eax + 1]
cmp ebp, edx
ja 0x5187b9
sub edx, ebp
mov ebx, dword [ebx + 4]
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [esp + 0x1d0]
mov ebx, dword [ebx + 4]
mov edx, dword [ebx + edx*4]
fld dword [edx + 4]
add edx, 4
fsub dword [ecx + 4]
add ecx, 4
fld dword [edx + 4]
mov ebp, dword [esp + 0x20]
fsub dword [ecx + 4]
inc eax
fld dword [edx + 8]
fsub dword [ecx + 8]
mov ecx, dword [esp + 0x18]
mov edx, ecx
add ecx, 0xc
cmp eax, ebp
fstp dword [esp + 0x244]
fld dword [0x59d154]
mov dword [esp + 0x18], ecx
fdiv st(3)
fstp dword [esp + 0x10]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0xb0]
mov ebx, dword [esp + 0xb0]
mov dword [edx], ebx
fmul dword [esp + 0x10]
fstp dword [esp + 0xb4]
mov ebx, dword [esp + 0xb4]
mov dword [edx + 4], ebx
fstp st(0)
fld dword [esp + 0x244]
fmul dword [esp + 0x10]
fstp dword [esp + 0xb8]
mov ebx, dword [esp + 0xb8]
mov dword [edx + 8], ebx
jl 0x518750
mov edi, dword [esp + 0x1c]
cmp ebp, 4
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0xf0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, ebp
jl 0x518919
lea ecx, [ebp - 4]
shr ecx, 2
inc ecx
lea edx, [ecx*4]
lea eax, [ebx - 4]
mov ebx, edx
mov edx, ebp
sub edx, ebx
fld dword [eax + 4]
sub eax, 0x30
dec ecx
fadd dword [eax + 0x28]
fstp dword [eax + 0x34]
fld dword [eax + 0x2c]
fadd dword [eax + 0x38]
fstp dword [eax + 0x38]
fld dword [eax + 0x30]
fadd dword [eax + 0x3c]
fstp dword [eax + 0x3c]
fld dword [eax + 0x28]
fadd dword [eax + 0x1c]
fstp dword [eax + 0x28]
fld dword [eax + 0x20]
fadd dword [eax + 0x2c]
fstp dword [eax + 0x2c]
fld dword [eax + 0x30]
fadd dword [eax + 0x24]
fstp dword [eax + 0x30]
fld dword [eax + 0x1c]
fadd dword [eax + 0x10]
fstp dword [eax + 0x1c]
fld dword [eax + 0x14]
fadd dword [eax + 0x20]
fstp dword [eax + 0x20]
fld dword [eax + 0x18]
fadd dword [eax + 0x24]
fstp dword [eax + 0x24]
fld dword [eax + 4]
fadd dword [eax + 0x10]
fstp dword [eax + 0x10]
fld dword [eax + 8]
fadd dword [eax + 0x14]
fstp dword [eax + 0x14]
fld dword [eax + 0xc]
fadd dword [eax + 0x18]
fstp dword [eax + 0x18]
jne 0x5188a3
mov ebx, dword [esp + 0x44]
test edx, edx
jle 0x518948
lea eax, [edx + edx*2]
lea eax, [esp + eax*4 + 0xbe0]
fld dword [eax - 8]
sub eax, 0xc
dec edx
fadd dword [eax + 0x10]
fstp dword [eax + 0x10]
fld dword [eax + 8]
fadd dword [eax + 0x14]
fstp dword [eax + 0x14]
fld dword [eax + 0x18]
fadd dword [eax + 0xc]
fstp dword [eax + 0x18]
jne 0x518927
fld dword [0x5999e8]
mov dword [esp + edi*4 + 0x734], 0x3f000000
fld dword [esp + 0xbe4]
inc edi
fmul dword [0x5999e8]
lea eax, [ebp - 1]
cmp eax, 4
mov dword [esp + 0x1c], edi
fstp dword [esp + 0xbe4]
mov edx, 1
fld dword [esp + 0xbe8]
fmul dword [0x5999e8]
fstp dword [esp + 0xbe8]
fld dword [esp + 0xbec]
fmul dword [0x5999e8]
fstp dword [esp + 0xbec]
jl 0x518ae4
lea ecx, [ebp - 5]
shr ecx, 2
inc ecx
lea eax, [esp + 0xbf4]
lea edx, [ecx*4 + 1]
fld dword [eax - 4]
fsub dword [eax - 0x10]
fstp dword [eax - 4]
fld dword [eax]
fsub dword [eax - 0xc]
fstp dword [eax]
fld dword [eax + 4]
fsub dword [eax - 8]
fstp dword [eax + 4]
fsubr dword [0x59d158]
fdivr dword [0x5997ac]
fld st(0)
fmul dword [eax - 4]
fstp dword [eax - 4]
fld st(0)
fmul dword [eax]
fstp dword [eax]
fld st(0)
fmul dword [eax + 4]
fstp dword [eax + 4]
fst dword [esp + edi*4 + 0x734]
fld dword [eax + 8]
fsub dword [eax - 4]
fstp dword [eax + 8]
fld dword [eax + 0xc]
fsub dword [eax]
fstp dword [eax + 0xc]
fld dword [eax + 0x10]
fsub dword [eax + 4]
fstp dword [eax + 0x10]
fsubr dword [0x59d158]
fdivr dword [0x5997ac]
fld st(0)
fmul dword [eax + 8]
fstp dword [eax + 8]
fld st(0)
fmul dword [eax + 0xc]
fstp dword [eax + 0xc]
fld st(0)
fmul dword [eax + 0x10]
fstp dword [eax + 0x10]
fst dword [esp + edi*4 + 0x738]
fld dword [eax + 0x14]
fsub dword [eax + 8]
fstp dword [eax + 0x14]
fld dword [eax + 0x18]
fsub dword [eax + 0xc]
fstp dword [eax + 0x18]
fld dword [eax + 0x1c]
fsub dword [eax + 0x10]
fstp dword [eax + 0x1c]
fsubr dword [0x59d158]
fdivr dword [0x5997ac]
fld st(0)
fmul dword [eax + 0x14]
fstp dword [eax + 0x14]
fld st(0)
fmul dword [eax + 0x18]
fstp dword [eax + 0x18]
fld st(0)
fmul dword [eax + 0x1c]
fstp dword [eax + 0x1c]
fst dword [esp + edi*4 + 0x73c]
fld dword [eax + 0x20]
fsub dword [eax + 0x14]
fstp dword [eax + 0x20]
fld dword [eax + 0x24]
fsub dword [eax + 0x18]
fstp dword [eax + 0x24]
fld dword [eax + 0x28]
fsub dword [eax + 0x1c]
fstp dword [eax + 0x28]
fsubr dword [0x59d158]
fdivr dword [0x5997ac]
fld st(0)
fmul dword [eax + 0x20]
fstp dword [eax + 0x20]
fld st(0)
add edi, 4
fmul dword [eax + 0x24]
add eax, 0x30
dec ecx
fstp dword [eax - 0xc]
fld st(0)
fmul dword [eax - 8]
fstp dword [eax - 8]
fst dword [esp + edi*4 + 0x730]
jne 0x5189c0
mov dword [esp + 0x1c], edi
cmp edx, ebp
jge 0x518b47
lea eax, [edx + edx*2]
mov ecx, ebp
lea eax, [esp + eax*4 + 0xbe8]
sub ecx, edx
fld dword [eax - 4]
inc edi
fsub dword [eax - 0x10]
add eax, 0xc
dec ecx
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fsub dword [eax - 0x18]
fstp dword [eax - 0xc]
fld dword [eax - 8]
fsub dword [eax - 0x14]
fstp dword [eax - 8]
fsubr dword [0x59d158]
fdivr dword [0x5997ac]
fld st(0)
fmul dword [eax - 0x10]
fstp dword [eax - 0x10]
fld st(0)
fmul dword [eax - 0xc]
fstp dword [eax - 0xc]
fld st(0)
fmul dword [eax - 8]
fstp dword [eax - 8]
fst dword [esp + edi*4 + 0x730]
jne 0x518af6
mov dword [esp + 0x1c], edi
fld dword [ebx]
mov eax, dword [esp + 0xcc]
fsub dword [ebx - 0xc]
dec ebp
cmp eax, 4
mov ecx, ebp
fstp dword [ebx]
fld dword [ebx + 4]
fsub dword [ebx - 8]
fstp dword [ebx + 4]
fld dword [ebx + 8]
fsub dword [ebx - 4]
fstp dword [ebx + 8]
fsubr dword [0x59d15c]
fdivr dword [0x5997ac]
fld st(0)
fmul dword [ebx]
fstp dword [ebx]
fld st(0)
fmul dword [ebx + 4]
fstp dword [ebx + 4]
fmul dword [ebx + 8]
fstp dword [ebx + 8]
jl 0x518cb2
lea edx, [ecx + 1]
shr edx, 2
mov ebx, edx
lea eax, [ecx + ecx*2]
neg ebx
lea eax, [esp + eax*4 + 0xbe0]
lea ecx, [ecx + ebx*4]
lea ebx, [ebx]
fld dword [esp + edi*4 + 0x730]
dec edi
fld st(0)
dec edi
fmul dword [eax + 0x10]
dec edi
fld st(1)
dec edi
fmul dword [eax + 0x14]
sub eax, 0x30
fstp dword [esp + 0x28]
fxch st(1)
fmul dword [eax + 0x48]
fstp dword [esp + 0x2c]
fld dword [eax + 0x34]
fsub st(1)
fstp dword [eax + 0x34]
fstp st(0)
fld dword [eax + 0x38]
fsub dword [esp + 0x28]
fstp dword [eax + 0x38]
fld dword [eax + 0x3c]
fsub dword [esp + 0x2c]
fstp dword [eax + 0x3c]
fld dword [esp + edi*4 + 0x73c]
fld st(0)
fmul dword [eax + 0x34]
fld st(1)
fmul dword [eax + 0x38]
fstp dword [esp + 0x28]
fxch st(1)
fmul dword [eax + 0x3c]
fstp dword [esp + 0x2c]
fld dword [eax + 0x28]
fsub st(1)
fstp dword [eax + 0x28]
fstp st(0)
fld dword [eax + 0x2c]
fsub dword [esp + 0x28]
fstp dword [eax + 0x2c]
fld dword [eax + 0x30]
fsub dword [esp + 0x2c]
fstp dword [eax + 0x30]
fld dword [esp + edi*4 + 0x738]
fld st(0)
fmul dword [eax + 0x28]
fld st(1)
fmul dword [eax + 0x2c]
fstp dword [esp + 0x28]
fxch st(1)
fmul dword [eax + 0x30]
fstp dword [esp + 0x2c]
fld dword [eax + 0x1c]
fsub st(1)
fstp dword [eax + 0x1c]
fstp st(0)
fld dword [eax + 0x20]
fsub dword [esp + 0x28]
fstp dword [eax + 0x20]
fld dword [eax + 0x24]
fsub dword [esp + 0x2c]
fstp dword [eax + 0x24]
fld dword [esp + edi*4 + 0x734]
fld st(0)
fmul dword [eax + 0x1c]
fld st(1)
fmul dword [eax + 0x20]
fstp dword [esp + 0x28]
fxch st(1)
fmul dword [eax + 0x24]
fstp dword [esp + 0x2c]
fld dword [eax + 0x10]
fsub st(1)
fstp dword [eax + 0x10]
fstp st(0)
fld dword [eax + 0x14]
fsub dword [esp + 0x28]
fstp dword [eax + 0x14]
fld dword [eax + 0x18]
fsub dword [esp + 0x2c]
fstp dword [eax + 0x18]
dec edx
jne 0x518bb0
mov dword [esp + 0x1c], edi
test ecx, ecx
jl 0x518d08
lea eax, [ecx + ecx*2]
lea eax, [esp + eax*4 + 0xbe8]
inc ecx
fld dword [esp + edi*4 + 0x730]
dec edi
fld st(0)
sub eax, 0xc
dec ecx
fmul dword [eax + 0x14]
fld st(1)
fmul dword [eax + 0x18]
fstp dword [esp + 0x28]
fxch st(1)
fmul dword [eax + 0x1c]
fstp dword [esp + 0x2c]
fld dword [eax + 8]
fsub st(1)
fstp dword [eax + 8]
fstp st(0)
fld dword [eax + 0xc]
fsub dword [esp + 0x28]
fstp dword [eax + 0xc]
fld dword [eax + 0x10]
fsub dword [esp + 0x2c]
fstp dword [eax + 0x10]
jne 0x518cc1
mov dword [esp + 0x1c], edi
mov edx, dword [esi + 0xc]
mov ecx, esi
mov ecx, dword [ecx + 8]
mov eax, edx
xor ebx, ebx
cmp ecx, eax
ja 0x518d1a
sub eax, ecx
mov ebp, esi
mov ecx, edx
mov dword [esp + 0x1b0], ebp
mov ebp, dword [ebp + 8]
inc ecx
cmp ebp, ecx
ja 0x518d2f
sub ecx, ebp
mov ebp, esi
mov ebp, dword [ebp + 4]
mov eax, dword [ebp + eax*4]
mov ebp, dword [esp + 0x1b0]
mov ebp, dword [ebp + 4]
mov ecx, dword [ebp + ecx*4]
fld dword [ecx + 4]
add ecx, 4
fsub dword [eax + 4]
add eax, 4
mov dword [esp + 0x60], 0
fstp dword [esp + 0x48]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x4c]
fld dword [ecx + 8]
mov ecx, dword [esp + 0x34]
fsub dword [eax + 8]
mov eax, dword [esp + 0x284]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x44]
mov ecx, dword [esi + 8]
fstp dword [esp + 0x50]
mov dword [esp + 0x10c], eax
mov eax, edx
cmp ecx, eax
ja 0x518d96
sub eax, ecx
fld dword [esp + 0x284]
mov ecx, dword [esi + 4]
fadd st(0), st(0)
mov edx, dword [ecx + eax*4]
fld dword [esp + 0xbe4]
add edx, 4
mov eax, dword [edx]
fmul st(1)
fld dword [esp + 0xbe8]
mov ecx, dword [edx + 4]
fmul st(2)
mov edx, dword [edx + 8]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xbe4]
fstp dword [esp + 0x160]
mov dword [esp + 0x90], ecx
fld dword [esp + 0xbec]
mov ecx, dword [esp + 0xbe8]
fmul st(2)
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0xbec]
mov dword [esp + 0x7c], eax
fstp dword [esp + 0x164]
mov dword [esp + 0x80], ecx
fld dword [esp + 0xbf0]
mov dword [esp + 0x84], edx
fmul dword [esp + 0x284]
fld dword [esp + 0xbf4]
fmul dword [esp + 0x284]
fld dword [esp + 0xbf8]
fmul dword [esp + 0x284]
fstp dword [esp + 0x214]
fld dword [esp + 0x48]
fmul dword [0x59d154]
fld dword [esp + 0x4c]
fmul dword [0x59d154]
fstp dword [esp + 0x190]
fld dword [esp + 0x50]
fmul dword [0x59d154]
fstp dword [esp + 0x194]
fsub st(2)
fstp dword [esp + 0xd0]
fld dword [esp + 0x190]
fsub st(1)
fstp dword [esp + 0xd4]
fstp st(0)
fstp st(0)
fld dword [esp + 0x194]
fsub dword [esp + 0x214]
fstp dword [esp + 0xd8]
fld dword [esp + 0xd0]
fsub st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0xd4]
fsub dword [esp + 0x160]
fld dword [esp + 0xd8]
fsub dword [esp + 0x164]
fstp dword [esp + 0x22c]
fld dword [esp + 0x284]
fmul dword [esp + 0x284]
fstp dword [esp + 0x18]
fld dword [0x5997ac]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x10]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x100]
mov eax, dword [esp + 0x100]
mov dword [esp + 0x64], eax
fmul dword [esp + 0x10]
fstp dword [esp + 0x104]
mov ecx, dword [esp + 0x104]
fld dword [esp + 0x22c]
mov dword [esp + 0x68], ecx
fmul dword [esp + 0x10]
fstp dword [esp + 0x108]
mov edx, dword [esp + 0x108]
mov dword [esp + 0x6c], edx
fld dword [esp + 0xbf0]
mov ebp, dword [esp + 0x20]
fadd dword [esp + 0xbe4]
mov dword [esp + 0x14], 0
fld dword [esp + 0xbf4]
fadd dword [esp + 0xbe8]
fld dword [esp + 0xbf8]
fadd dword [esp + 0xbec]
fstp dword [esp + 0x1f0]
fld dword [esp + 0x284]
fmul st(2)
fstp dword [esp + 0x254]
fld dword [esp + 0x284]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x284]
fmul dword [esp + 0x1f0]
fld dword [esp + 0x48]
fmul dword [0x5aa308]
fld dword [esp + 0x4c]
fmul dword [0x5aa308]
fld dword [esp + 0x50]
fmul dword [0x5aa308]
fstp dword [esp + 0x208]
fxch st(1)
fadd dword [esp + 0x254]
fstp dword [esp + 0x168]
fadd st(2)
fstp dword [esp + 0x16c]
fld dword [esp + 0x208]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x284]
fmul dword [esp + 0x18]
fdivr dword [0x5997ac]
fld dword [esp + 0x168]
fmul st(1)
fstp dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
fld dword [esp + 0x16c]
mov dword [esp + 0x54], eax
fmul st(1)
fstp dword [esp + 0xa8]
mov ecx, dword [esp + 0xa8]
fxch st(1)
mov dword [esp + 0x58], ecx
fmul st(1)
fstp dword [esp + 0xac]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x5c], edx
fstp st(0)
fld dword [0x5997c8]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jp 0x519677
fld dword [esp + 0x14]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x51939c
lea edx, [ebx + ebx*2]
lea edx, [esp + edx*4 + 0xbe8]
mov eax, dword [esp + 0x30]
inc ebx
add edx, 0xc
cmp ebx, ebp
mov dword [esp + 0x60], eax
jge 0x51939e
mov edi, dword [esi + 0xc]
mov ecx, esi
mov eax, edi
mov dword [esp + 0x1c0], ecx
mov ecx, dword [ecx + 8]
add eax, ebx
cmp ecx, eax
ja 0x5190b0
sub eax, ecx
mov ebp, esi
mov dword [esp + 0x1b8], ebp
mov ebp, dword [ebp + 8]
lea ecx, [edi + ebx + 1]
cmp ebp, ecx
ja 0x5190c6
sub ecx, ebp
mov ebp, dword [esp + 0x1c0]
mov ebp, dword [ebp + 4]
mov eax, dword [ebp + eax*4]
mov ebp, dword [esp + 0x1b8]
mov ebp, dword [ebp + 4]
mov ecx, dword [ebp + ecx*4]
fld dword [ecx + 4]
add ecx, 4
fsub dword [eax + 4]
add eax, 4
fstp dword [esp + 0x70]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x74]
fld dword [ecx + 8]
mov ecx, esi
fsub dword [eax + 8]
mov eax, edi
mov edi, dword [ecx + 8]
add eax, ebx
cmp edi, eax
fstp dword [esp + 0x78]
ja 0x519115
sub eax, edi
mov ecx, dword [ecx + 4]
fld dword [esp + ebx*4 + 0x284]
fadd st(0), st(0)
mov eax, dword [ecx + eax*4]
add eax, 4
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
fld st(0)
fmul dword [edx - 4]
mov dword [esp + 0x94], eax
lea eax, [edx - 4]
fld st(1)
fmul dword [edx]
mov dword [esp + 0x90], ecx
mov ecx, eax
mov edi, dword [ecx]
fstp dword [esp + 0x13c]
mov dword [esp + 0x7c], edi
fxch st(1)
mov edi, dword [ecx + 4]
fmul dword [edx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], edi
fstp dword [esp + 0x140]
fld dword [esp + ebx*4 + 0x284]
fld st(0)
fmul dword [edx + 8]
fld st(1)
fmul dword [edx + 0xc]
fstp dword [esp + 0x154]
fxch st(1)
fmul dword [edx + 0x10]
fstp dword [esp + 0x158]
fld dword [esp + 0x70]
fmul dword [0x59d154]
fld dword [esp + 0x74]
fmul dword [0x59d154]
fstp dword [esp + 0x148]
fld dword [esp + 0x78]
fmul dword [0x59d154]
fstp dword [esp + 0x14c]
fsubrp st(1)
fld dword [esp + 0x148]
fsub dword [esp + 0x154]
fstp dword [esp + 0x130]
fld dword [esp + 0x14c]
fsub dword [esp + 0x158]
fstp dword [esp + 0x134]
fsubrp st(1)
fld dword [esp + 0x130]
fsub dword [esp + 0x13c]
fld dword [esp + 0x134]
fsub dword [esp + 0x140]
fstp dword [esp + 0x274]
fld dword [esp + ebx*4 + 0x284]
fld st(0)
fmul st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [0x5997ac]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x10]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x98]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x64], ecx
fmul dword [esp + 0x10]
fstp dword [esp + 0x9c]
mov ecx, dword [esp + 0x9c]
fld dword [esp + 0x274]
mov dword [esp + 0x68], ecx
fmul dword [esp + 0x10]
fstp dword [esp + 0xa0]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x6c], ecx
fld dword [eax]
mov eax, dword [esp + ebx*4 + 0x284]
fadd dword [edx + 8]
mov dword [esp + 0x40], eax
fld dword [edx + 0xc]
mov edi, dword [esp + 0x1c]
fadd dword [edx]
mov ebp, dword [esp + 0x20]
fld dword [edx + 0x10]
fadd dword [edx + 4]
fstp dword [esp + 0x220]
fxch st(1)
fmul dword [esp + 0x40]
fstp dword [esp + 0x260]
fmul dword [esp + 0x40]
fld dword [esp + 0x220]
fmul dword [esp + 0x40]
fld dword [esp + 0x70]
fmul dword [0x5aa308]
fld dword [esp + 0x74]
fmul dword [0x5aa308]
fld dword [esp + 0x78]
fmul dword [0x5aa308]
fstp dword [esp + 0x238]
fxch st(1)
fadd dword [esp + 0x260]
fstp dword [esp + 0x120]
fadd st(2)
fstp dword [esp + 0x124]
fld dword [esp + 0x238]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x18]
fmul dword [esp + ebx*4 + 0x284]
fdivr dword [0x5997ac]
fld dword [esp + 0x120]
fmul st(1)
fstp dword [esp + 0xdc]
mov ecx, dword [esp + 0xdc]
fld dword [esp + 0x124]
mov dword [esp + 0x54], ecx
fmul st(1)
fstp dword [esp + 0xe0]
mov eax, dword [esp + 0xe0]
fxch st(1)
mov dword [esp + 0x58], eax
fmul st(1)
fstp dword [esp + 0xe4]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x5c], ecx
fstp st(0)
fld dword [esp + 0x30]
fadd dword [esp + ebx*4 + 0x284]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
je 0x519083
cmp ebx, ebp
jg 0x519677
fld dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
fsub dword [esp + 0x60]
mov edx, dword [esi + 8]
mov eax, ecx
cmp edx, eax
fstp dword [esp + 0x10]
ja 0x5193be
sub eax, edx
mov edx, dword [esp + 0x34]
fld dword [0x5997ac]
fdiv dword [edx + 0x40]
mov edx, dword [esi + 4]
mov eax, dword [edx + eax*4]
fld dword [esp + 0x14]
fadd dword [eax]
fmul st(1)
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jne 0x51940c
mov edx, dword [esi + 8]
mov eax, ecx
cmp edx, eax
ja 0x5193f1
sub eax, edx
mov edx, dword [esi + 4]
fld dword [esp + 0x14]
mov eax, dword [edx + eax*4]
fadd dword [eax]
fmul st(1)
fcomp dword [0x5997ac]
fnstsw ax
test ah, 5
jp 0x519453
mov edx, dword [esi + 8]
mov eax, ecx
cmp edx, eax
ja 0x519417
sub eax, edx
mov edx, dword [esi + 4]
fld dword [esp + 0x14]
mov eax, dword [edx + eax*4]
fadd dword [eax]
fmul st(1)
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jne 0x51944b
mov eax, dword [esi + 8]
cmp eax, ecx
ja 0x51943b
sub ecx, eax
mov edx, dword [esi + 4]
fld dword [esp + 0x14]
mov eax, dword [edx + ecx*4]
fadd dword [eax]
fmul st(1)
jmp 0x519459
fld dword [0x5997c8]
jmp 0x519459
fld dword [0x5997ac]
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x5194ac
fsubr dword [0x5997ac]
fld st(0)
fmulp st(1)
fmul qword [0x5af1c8]
fsub qword [0x5af1c0]
fcom qword [0x599838]
fnstsw ax
test ah, 0x41
jne 0x519491
fcom qword [0x5a7e08]
fnstsw ax
test ah, 5
jp 0x5194a2
fcom qword [0x599838]
fnstsw ax
test ah, 0x41
je 0x5194b4
fstp st(0)
jmp 0x5194ae
fstp st(0)
fld qword [0x5a7e08]
jmp 0x5194b4
fstp st(0)
fld qword [0x599838]
fst dword [esp + 0x1e4]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x5194cf
mov eax, 0xff
jmp 0x5194ff
fld dword [esp + 0x1e4]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x5194e7
xor eax, eax
jmp 0x5194ff
fld dword [esp + 0x1e4]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
fld dword [esp + 0x54]
shl eax, 0x18
fmul dword [esp + 0x10]
or eax, 0x4dccff
fld dword [esp + 0x58]
mov dword [esp + 0x1a4], eax
fmul dword [esp + 0x10]
fld dword [esp + 0x5c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x280]
fxch st(1)
fadd dword [esp + 0x64]
fstp dword [esp + 0x248]
fadd dword [esp + 0x68]
fld dword [esp + 0x6c]
fadd dword [esp + 0x280]
fld dword [esp + 0x248]
fmul dword [esp + 0x10]
fstp dword [esp + 0x180]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x184]
fmul dword [esp + 0x10]
fld dword [esp + 0x180]
fadd dword [esp + 0x7c]
fld dword [esp + 0x80]
fadd dword [esp + 0x184]
fstp dword [esp + 0x178]
fld dword [esp + 0x84]
fadd st(2)
fstp dword [esp + 0x17c]
fmul dword [esp + 0x10]
fstp st(1)
fld dword [esp + 0x178]
fmul dword [esp + 0x10]
fld dword [esp + 0x17c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x1fc]
fxch st(1)
fadd dword [esp + 0x8c]
fstp dword [esp + 0xf4]
mov ecx, dword [esp + 0xf4]
fld dword [esp + 0x90]
mov dword [esp + 0x198], ecx
fadd st(1)
xor ecx, ecx
test ebp, ebp
sete cl
fstp dword [esp + 0xf8]
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x19c], edx
fstp st(0)
lea edx, [esp + 0x198]
fld dword [esp + 0x94]
push edx
fadd dword [esp + 0x200]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x8c]
fstp dword [esp + 0x100]
mov eax, dword [esp + 0x100]
fmul dword [esp + 0x18]
mov dword [esp + 0x1a4], eax
fstp dword [esp + 0x1ac]
fild dword [esp + 0x1c]
fstp dword [esp + 0x1b0]
call fcn.00518500
fld dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
fadd dword [esp + 0x10c]
fst dword [esp + 0x14]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jnp 0x519066
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 1
mov dword [esp + 0x38], eax
jle 0x518700
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x34]
add edi, 0x30
xor ebx, ebx
cmp eax, ebx
je 0x5196a2
push eax
call fcn.004796fd
add esp, 4
mov esi, dword [esp + 0xc0]
mov ebp, dword [esp + 0xc4]
cmp esi, ebp
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
je 0x5196eb
mov ebx, dword [esp + 0x114]
mov eax, esi
sub ebx, eax
push esi
mov ecx, edi
call fcn.00518500
lea eax, [ebx + esi]
push eax
mov ecx, edi
call fcn.00518500
add esi, 0x18
cmp esi, ebp
jne 0x5196c8
mov esi, dword [esp + 0xc0]
xor ebx, ebx
cmp esi, ebx
je 0x5196f8
push esi
call fcn.004796fd
add esp, 4
mov eax, dword [esp + 0x114]
cmp eax, ebx
pop esi
je 0x51970d
push eax
call fcn.004796fd
add esp, 4
mov ecx, dword [esp + 0x19f0]
pop edi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x19f0
ret