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

Disassembly:
mov eax, 0x14f0
call fcn.004a54a0
fld dword [0xbcada0]
fdiv dword [0xbcadc8]
mov eax, dword [0xbcabd0]
mov ecx, dword [0xbcabd4]
mov edx, dword [0xbcabd8]
mov dword [esp + 0xac], eax
mov eax, dword [0xbcabdc]
mov dword [esp + 0xb0], ecx
mov ecx, dword [0xbcade8]
mov dword [esp + 0xbc], eax
or eax, 0xffffffff
mov dword [esp + 0xb8], edx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
fsubr dword [0x5333e0]
fdivr dword [0x5333e0]
fld dword [0xbcad8c]
fsub dword [0xbcadb4]
fld st(0)
fmul dword [0xbcad70]
fmul dword [0xbcada0]
fmul st(2)
fchs
fstp dword [0xa7f894]
fmul st(1)
fadd dword [0xbcadb4]
fstp dword [0xa7e074]
mov dword [ecx + 4], eax
mov edx, dword [0xbcad7c]
fstp st(0)
mov dword [edx + 4], eax
mov ecx, dword [0xbcadac]
mov dword [ecx + 4], eax
mov edx, dword [0xbcadc4]
mov dword [edx + 4], eax
mov dword [0xa7f860], ebx
mov dword [0xa7f864], ebx
call fcn.00491cf0
mov eax, dword [eax + 4]
mov dword [0xa7f868], eax
call fcn.00491cf0
fld dword [0xa7da30]
fmul dword [0x5342d8]
mov ecx, dword [eax + 8]
mov edx, dword [0xbcadb4]
mov dword [0xa7f86c], ecx
mov eax, dword [0xbcad8c]
fistp qword [esp + 0x80]
mov ecx, dword [esp + 0x80]
mov dword [0xa7f870], edx
shl ecx, 8
mov dword [0xa7f874], eax
lea edi, [esp + 0x1a8]
fld dword [0xa7da34]
fmul dword [0x5342d8]
fistp qword [esp + 0x80]
mov edx, dword [esp + 0x80]
add ecx, edx
lea edx, [esp + 0x1a8]
shl ecx, 8
fld dword [0xa7da38]
fmul dword [0x5336d4]
fistp qword [esp + 0x80]
mov eax, dword [esp + 0x80]
sub eax, ecx
mov ecx, 0x10
mov dword [0xa7e068], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x5ca114]
mov dword [esp + 0x1a8], 0x3f800000
mov dword [esp + 0x1bc], 0x3f800000
mov dword [esp + 0x1d0], 0x3f800000
mov dword [esp + 0x1e4], 0x3f800000
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x5ca114]
push 0xa7f860
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x5ca114]
push 1
push 0x88
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
mov edx, dword [0xa7da18]
push edx
push 0x26
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
push ebx
push 0x23
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
push 3
push 0x8c
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
push 1
push 0x30
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
mov dword [esp + 0x60], 0x461c4000
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x20], 0x46ea6000
mov edx, dword [eax]
push ecx
push 0x24
push eax
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
mov ecx, dword [esp + 0x20]
push ecx
push 0x25
mov edx, dword [eax]
push eax
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
push ebx
push 0x2f
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
push ebx
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
push 1
push 0x16
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
push ebx
push 0x89
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
mov edx, dword [eax]
push 1
push 0x8d
push eax
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
push 1
push 0x1a
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
push ebx
push 0xf
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
mov edx, dword [0xbcad78]
push edx
push 7
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
push 1
push 0xe
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [0x5ca114]
push ebx
push 0x1d
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [0x5ca114]
push 2
push 0x11
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x5ca114]
push 2
push 0x10
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [0x5ca114]
push 3
push 0xc
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x5ca114]
push 2
push 0x12
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [0x5ca114]
push ebx
push 0xb
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x5ca114]
push 1
push 4
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [0x5ca114]
push 4
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x94]
mov eax, dword [0x5ca114]
push 2
push 2
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [0x5ca114]
push ebx
push 3
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x5ca114]
push 1
push 1
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [0xa7f890]
push ebx
mov dword [0xa7e078], ebx
push 0xa7f89c
mov ecx, dword [eax]
push 0x2020
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x5144d2
mov eax, dword [0xb16c9c]
mov edx, dword [0xc28fbc]
fild dword [0xc31088]
mov ecx, 6
mov esi, 0xbcab08
lea edi, [esp + 0x190]
add edx, eax
fstp dword [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov dword [0xc28fbc], edx
mov edx, dword [0xc28fc0]
mov ecx, 0xa
mov esi, 0xbcaae0
lea edi, [esp + 0xdc]
cmp eax, ebx
mov dword [0xc28fb8], ebx
mov dword [esp + 0x94], 0xb12c60
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x110], eax
mov dword [esp + 0x128], edx
mov dword [esp + 0x60], ebx
jle 0x5143b5
fld qword [esp + 0x190]
fstp dword [esp + 0x10c]
fld qword [esp + 0x198]
fstp dword [esp + 0x114]
fld qword [esp + 0x1a0]
fstp dword [esp + 0x12c]
jmp 0x51308b
xor ebx, ebx
mov eax, dword [esp + 0x94]
mov ecx, 6
fld dword [esp + 0x10c]
mov eax, dword [eax]
lea edi, [esp + 0x1e8]
mov esi, eax
mov edx, dword [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
fchs
fstp dword [esp + 0x74]
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], ecx
cmp eax, ebx
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fchs
fstp dword [esp + 0x7c]
lea ebp, [eax + 0x18]
je 0x51438a
lea eax, [esp + 0x1a8]
lea ecx, [esp + 0x200]
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
mov dword [esp + 0x18], ecx
mov ecx, eax
add ebp, 4
and eax, 0xffff
sar ecx, 0x10
mov dword [esp + 0x70], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
mov ecx, 0x19
sub ecx, eax
mov edx, 1
shl edx, cl
mov ecx, eax
add ebp, 4
lea esi, [esp + 0x500]
mov dword [esp + 0x20], edx
mov edx, 0x40000000
fild dword [esp + 0x20]
sar edx, cl
fdivr dword [0x533558]
mov dword [esp + 0x20], edx
fstp dword [esp + 0x48]
fld qword [esp + 0x1e8]
fsub qword [esp + 0x190]
fld qword [esp + 0x1f0]
fsub qword [esp + 0x198]
fld qword [esp + 0x1f8]
fsub qword [esp + 0x1a0]
fld dword [esp + 0xfc]
fmul st(1)
fld dword [esp + 0xf8]
fmul st(3)
faddp st(1)
fld dword [esp + 0xf4]
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fild dword [esp + 0x20]
fmul dword [0x534c30]
fadd st(1)
fcomp dword [0xbcadcc]
fnstsw ax
test ah, 1
fstp st(0)
je 0x51438a
xor eax, eax
lea ebx, [esp + 0x500]
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x400]
neg ebx
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0xd08]
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ebx
jmp 0x5131f3
mov ebx, dword [esp + 0x40]
fld dword [ebp]
fadd dword [esp + 0x74]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], edx
mov edx, dword [ebp + 0xc]
add ebp, 0x10
fld st(0)
fcom dword [0x5333ec]
mov dword [esp + 0x118], edx
fnstsw ax
test ah, 1
je 0x51322c
fchs
fld dword [esp + 0xd4]
fadd dword [esp + 0x78]
fcom dword [0x5333ec]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x513252
fchs
fst dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x513261
fstp st(0)
fld dword [esp + 0x1c]
fld dword [esp + 0xd8]
fadd dword [esp + 0x7c]
fcom dword [0x5333ec]
fst dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x513283
fchs
fst dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x513292
fstp st(0)
fld dword [esp + 0x1c]
fmul dword [esp + 0x48]
fsub dword [esp + 0x11c]
fmul dword [esp + 0x128]
fcom dword [0x5333ec]
fnstsw ax
test ah, 1
je 0x5132bb
fstp st(0)
fld dword [0x5333ec]
jmp 0x5132d0
fcom dword [0x5333e0]
fnstsw ax
test ah, 0x41
jne 0x5132d0
fstp st(0)
fld dword [0x5333e0]
mov eax, dword [esp + 0x24]
fld st(0)
fstp dword [eax]
fcom qword [0x533720]
fnstsw ax
test ah, 0x41
jne 0x5132ef
mov eax, dword [esp + 0x58]
or al, 2
mov dword [esp + 0x58], eax
fcom qword [0x534c28]
fnstsw ax
test ah, 1
je 0x513306
mov eax, dword [esp + 0x58]
or al, 1
mov dword [esp + 0x58], eax
fsubr dword [0x5333e0]
fld st(0)
fmul dword [esp + 0x118]
fadd dword [esp + 0xd8]
fstp dword [esp + 0xd8]
fld st(0)
fmul dword [0x5336d4]
fld st(0)
fistp qword [esp + 0x4c]
mov edi, dword [esp + 0x4c]
mov edx, edi
shl edx, 8
or edx, edi
shl edx, 8
fmul st(1)
or edi, edx
fistp qword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
fstp st(0)
fld dword [esp + 0x20]
fld dword [esp + 0xd8]
fadd dword [esp + 0x7c]
or eax, edx
mov edx, 0xffffff
mov dword [esp + 0x44], eax
sub edx, edi
fld st(0)
fmul dword [esp + 0xe4]
fld st(2)
fmul dword [esp + 0xe0]
faddp st(1)
fld st(3)
fmul dword [esp + 0xdc]
faddp st(1)
fstp dword [esp + 0x98]
fld st(0)
fmul dword [esp + 0xf0]
fld st(2)
fmul dword [esp + 0xec]
faddp st(1)
fld st(3)
fmul dword [esp + 0xe8]
faddp st(1)
fstp dword [esp + 0x9c]
fmul dword [esp + 0xfc]
fxch st(1)
fmul dword [esp + 0xf8]
faddp st(1)
fxch st(1)
fmul dword [esp + 0xf4]
faddp st(1)
fst dword [esp + 0xa0]
fcomp dword [0xbcadc0]
fnstsw ax
test ah, 1
jne 0x513546
fld dword [0x5333e0]
fdiv dword [esp + 0xa0]
add ebx, esi
lea ebx, [esp + ebx + 0x50c]
fst dword [esp + 0x1c]
fmul dword [esp + 0x98]
fmul dword [0xc311a4]
fadd dword [0xc311b0]
fld dword [esp + 0x1c]
fmul dword [esp + 0x9c]
fmul dword [0xc311a0]
fadd dword [0xc311b4]
fst dword [esp + 0x20]
fld st(1)
fstp dword [esi]
fst dword [esi + 4]
fld dword [esp + 0x1c]
fmul dword [0xbcad70]
fstp dword [ebx]
fld dword [esp + 0x1c]
fmul dword [0xa7f894]
fadd dword [0xa7e074]
fstp dword [ebx - 4]
fld dword [esp + 0xa0]
fmul dword [0xbcabec]
fmul dword [0xa7da18]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fdivr dword [0x5333e0]
fcom dword [0x5333ec]
fnstsw ax
test ah, 1
je 0x5134a6
fstp st(0)
fld dword [0x5333ec]
fmul dword [0x5336d4]
mov dword [esp + 0x34], 1
fistp qword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
shl eax, 0x18
mov dword [ebx + 8], eax
fld st(1)
fcomp dword [esp + 0xbc]
fnstsw ax
test ah, 1
jne 0x5134da
mov dword [esp + 0x34], 0
fcomp dword [esp + 0xc0]
mov dword [esp + 0x1c], 1
fnstsw ax
test ah, 1
jne 0x5134f8
mov dword [esp + 0x1c], 0
fcomp dword [esp + 0xc8]
fnstsw ax
test ah, 0x41
jne 0x51350d
mov ebx, 1
jmp 0x51350f
xor ebx, ebx
fld dword [esp + 0x20]
fcomp dword [esp + 0xcc]
fnstsw ax
test ah, 0x41
jne 0x513528
mov eax, 1
jmp 0x51352a
xor eax, eax
shl al, 1
or al, bl
mov bl, byte [esp + 0x1c]
shl al, 1
or al, bl
mov bl, byte [esp + 0x34]
shl al, 1
or al, bl
mov ebx, dword [esp + 0x18]
mov byte [ebx], al
jmp 0x51358e
mov ebx, dword [esp + 0x98]
mov eax, esi
mov dword [esp + 0x28], 1
mov dword [eax], ebx
mov ebx, dword [esp + 0x9c]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0xa0]
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x40]
add eax, esi
lea eax, [esp + eax + 0x50c]
mov dword [eax], 0
mov dword [eax + 8], 0xff000000
mov eax, dword [esp + 0x18]
mov byte [eax], 0x10
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edx
add ecx, 0x20
lea ebx, [eax + esi]
xor eax, eax
mov dword [ecx - 0x24], eax
add esi, 0x20
mov dword [esp + ebx + 0xd00], eax
mov ebx, dword [esp + 0x44]
mov eax, edi
sub eax, ebx
mov ebx, edx
sub ebx, edi
mov edi, dword [esp + 0x24]
add ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
add edi, 4
mov dword [ecx - 0x20], eax
mov dword [ecx - 0x1c], ebx
mov ebx, dword [esp + 0x44]
mov dword [ecx - 0x18], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x10]
mov dword [ecx - 0x14], eax
mov eax, dword [esp + 0x70]
inc ebx
inc edx
mov byte [edi], 1
inc edi
cmp edx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
jl 0x5131ef
cmp edx, dword [esp + 0x3c]
je 0x5138b4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
fld dword [ebp]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x38]
fld dword [esp + eax*4 + 0x400]
shl eax, 4
fstp dword [esp + 0x24]
fld dword [eax + ecx]
add eax, ecx
add ebp, 0x10
fsub st(1)
add eax, 4
fmul dword [esp + 0x24]
faddp st(1)
fld dword [eax]
fsub dword [esp + 0xb4]
fmul dword [esp + 0x24]
fadd dword [esp + 0xb4]
fstp dword [esp + 0xb4]
fld dword [eax + 4]
fsub dword [esp + 0xb8]
fmul dword [esp + 0x24]
fadd dword [esp + 0xb8]
fstp dword [esp + 0xb8]
fadd dword [esp + 0x74]
fld dword [esp + 0xb4]
fadd dword [esp + 0x78]
fld dword [esp + 0xb8]
fadd dword [esp + 0x7c]
fld st(0)
fmul dword [esp + 0xe4]
fld st(2)
fmul dword [esp + 0xe0]
faddp st(1)
fld st(3)
fmul dword [esp + 0xdc]
faddp st(1)
fstp dword [esp + 0xa4]
fld st(0)
fmul dword [esp + 0xf0]
fld st(2)
fmul dword [esp + 0xec]
faddp st(1)
fld st(3)
fmul dword [esp + 0xe8]
faddp st(1)
fstp dword [esp + 0xa8]
fmul dword [esp + 0xfc]
fxch st(1)
fmul dword [esp + 0xf8]
faddp st(1)
fxch st(1)
fmul dword [esp + 0xf4]
faddp st(1)
fst dword [esp + 0xac]
fcomp dword [0xbcadc0]
fnstsw ax
test ah, 1
jne 0x513863
fld dword [0x5333e0]
fdiv dword [esp + 0xac]
fst dword [esp + 0x18]
fmul dword [esp + 0xa4]
fmul dword [0xc311a4]
fadd dword [0xc311b0]
fld dword [esp + 0x18]
fmul dword [esp + 0xa8]
fmul dword [0xc311a0]
fadd dword [0xc311b4]
fst dword [esp + 0x20]
fld st(1)
fstp dword [esi]
fst dword [esi + 4]
fld dword [esp + 0x18]
fmul dword [0xbcad70]
fstp dword [esi + 0xc]
fld dword [esp + 0x18]
fmul dword [0xa7f894]
fadd dword [0xa7e074]
fstp dword [esi + 8]
fld dword [esp + 0xac]
fmul dword [0xbcabec]
fmul dword [0xa7da18]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fdivr dword [0x5333e0]
fcom dword [0x5333ec]
fnstsw ax
test ah, 1
je 0x5137c7
fstp st(0)
fld dword [0x5333ec]
fmul dword [0x5336d4]
mov dword [esp + 0x24], 1
fistp qword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
shl ecx, 0x18
mov dword [esi + 0x14], ecx
fld st(1)
fcomp dword [esp + 0xbc]
fnstsw ax
test ah, 1
jne 0x5137fb
mov dword [esp + 0x24], 0
fcomp dword [esp + 0xc0]
mov dword [esp + 0x34], 1
fnstsw ax
test ah, 1
jne 0x513819
mov dword [esp + 0x34], 0
fcomp dword [esp + 0xc8]
fnstsw ax
test ah, 0x41
jne 0x51382e
mov ecx, 1
jmp 0x513830
xor ecx, ecx
fld dword [esp + 0x20]
fcomp dword [esp + 0xcc]
fnstsw ax
test ah, 0x41
jne 0x513849
mov eax, 1
jmp 0x51384b
xor eax, eax
shl al, 1
or al, cl
mov cl, byte [esp + 0x34]
shl al, 1
or al, cl
mov cl, byte [esp + 0x24]
shl al, 1
or al, cl
mov byte [ebx], al
jmp 0x51389b
mov ecx, dword [esp + 0xa4]
mov eax, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0xff000000
mov dword [eax], ecx
mov ecx, dword [esp + 0xa8]
mov byte [ebx], 0x10
mov dword [esp + 0x28], 1
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x3c]
add esi, 0x20
inc ebx
inc edx
mov byte [edi], 1
inc edi
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x51360c
mov eax, dword [ebp]
add ebp, 0x10
shr eax, 2
and eax, 1
mov dword [0xa7e06c], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp - 4]
test edx, edx
mov dword [esp + 0x40], ecx
jne 0x513b0a
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x240]
fld dword [0x5333ec]
xor esi, esi
mov dword [esp + 0x10], ecx
xor edi, edi
xor cl, cl
xor bl, bl
cmp eax, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x90], 0x3f800000
je 0x51393d
mov dword [esp + 0x90], 0xbf800000
mov edx, dword [esp + 0x90]
mov dword [esp + 0x5c], edx
jmp 0x51394e
mov cl, byte [esp + 0x2f]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
fstp dword [esp + 0x24]
mov eax, dword [edx]
add edx, 4
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x6c]
fld dword [esp + 0x68]
mov dword [esp + 0x64], edx
mov dl, bl
mov bl, cl
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x30], eax
mov edi, esi
jne 0x5139ed
xor edx, edx
mov dl, byte [esp + 0x32]
fstp st(0)
lea ecx, [esp + edx + 0x1a8]
mov dword [esp + 0x1c], ecx
mov ecx, edx
shl ecx, 5
mov dl, byte [esp + edx + 0x200]
fld dword [esp + ecx + 0x500]
fstp dword [esp + 0x24]
fld dword [esp + ecx + 0x504]
xor ecx, ecx
fstp dword [esp + 0xc4]
mov cl, ah
mov esi, ecx
shl ecx, 5
mov bl, byte [esp + esi + 0x200]
lea edi, [esp + esi + 0x1a8]
fld dword [esp + ecx + 0x500]
fld dword [esp + ecx + 0x504]
fstp dword [esp + 0x64]
and eax, 0xff
mov dword [esp + 0x54], 1
mov ecx, eax
mov dword [esp + 0x14], eax
shl ecx, 5
lea esi, [esp + eax + 0x1a8]
mov al, byte [esp + eax + 0x200]
fld dword [esp + ecx + 0x500]
mov byte [esp + 0x2f], al
fstp dword [esp + 0x68]
fld dword [esp + ecx + 0x504]
movsx ecx, dl
fstp dword [esp + 0x6c]
movsx eax, bl
or ecx, eax
and dl, bl
movsx eax, byte [esp + 0x2f]
or ecx, eax
mov al, byte [esp + 0x2f]
or ecx, 0x20
test al, dl
jne 0x513a97
fld st(0)
fsub dword [esp + 0x68]
fld dword [esp + 0xc4]
fsub dword [esp + 0x6c]
fmulp st(1)
fld dword [esp + 0x24]
fsub dword [esp + 0x68]
fld dword [esp + 0x64]
fsub dword [esp + 0x6c]
fmulp st(1)
fsubp st(1)
fmul dword [esp + 0x5c]
fcomp dword [0x533824]
fnstsw ax
test ah, 1
je 0x513a97
mov edx, dword [esp + 0x1c]
mov byte [esi], 0
mov byte [edi], 0
xor ecx, 0x20
mov byte [edx], 0
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x5c]
fmul dword [0x533674]
mov byte [eax], cl
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
fstp dword [esp + 0x5c]
and edx, eax
mov eax, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x28], edx
test eax, 0x10000000
mov dword [esp + 0x18], ecx
je 0x513ae5
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x18], 0
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x51394a
mov eax, dword [esp + 0x28]
test eax, eax
fstp st(0)
jne 0x51438a
jmp 0x513b57
test ecx, ecx
jle 0x513b28
mov edx, ecx
mov eax, 0x10101010
lea edi, [esp + 0x240]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x513b57
mov edx, eax
xor eax, eax
mov ecx, edx
lea edi, [esp + 0x1a8]
mov esi, ecx
mov dword [esp + 0x14], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov ecx, 1
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x58]
test eax, ecx
je 0x513f86
mov ecx, dword [ebp]
mov edx, dword [0xa7f89c]
mov dword [esp + 0x30], ecx
mov ecx, dword [0xa7e078]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x1a8]
add ebp, 4
mov dword [esp + 0x10], ecx
xor ecx, ecx
lea eax, [esp + 0x500]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x10]
mov edi, esi
mov bl, byte [esi]
inc edi
test bl, bl
mov dword [esp + 0x10], edi
jne 0x513be7
mov ecx, dword [ebp]
mov esi, eax
and ecx, 0xffff
mov edi, edx
mov ecx, dword [esp + ecx + 0xd00]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 4]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
add ebp, 0xc
add edx, 0x20
add eax, 0x20
inc ecx
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x513ba8
cmp ecx, dword [esp + 0x3c]
je 0x513c70
mov esi, dword [esp + 0x10]
mov edi, esi
mov bl, byte [esi]
inc edi
test bl, bl
mov dword [esp + 0x10], edi
jne 0x513c5a
mov ecx, dword [ebp]
mov edi, edx
mov esi, ecx
sar esi, 0x10
and ecx, 0xffff
fld dword [esp + esi*4 + 0x400]
fld dword [ebp + 0xc]
fmul st(1)
mov ecx, dword [esp + ecx + 0xd00]
mov esi, eax
mov dword [eax + 0x10], ecx
mov ecx, 8
fadd dword [ebp + 4]
fstp dword [eax + 0x18]
fld dword [ebp + 0x10]
fmul st(1)
fadd dword [ebp + 8]
fstp dword [eax + 0x1c]
rep movsd dword es:[edi], dword [esi]
fstp st(0)
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
add ebp, 0x14
add edx, 0x20
add eax, 0x20
inc ecx
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x513c03
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x513c97
mov edx, dword [esp + 0x30]
push 0
push edx
call fcn.00514680
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], 1
jmp 0x513cac
mov eax, dword [esp + 0x30]
push 1
push eax
call fcn.00514680
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [0xa7f89c]
mov esi, eax
lea edx, [esp + 0x240]
shl esi, 0x10
add esi, eax
mov eax, dword [edi + 0x2ee8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x44]
lea eax, [eax + eax*2]
mov dword [esp + 0x28], edx
lea ecx, [edx + ecx*4]
mov dword [esp + 0x88], esi
lea eax, [edi + eax*2 + 8]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x30]
mov cl, byte [ebx]
inc ebx
test cl, cl
mov dword [esp + 0x30], ebx
jne 0x513d29
mov ecx, dword [edx]
mov ebx, ecx
and ebx, 0xff00ff
add ebx, esi
mov dword [eax], ebx
xor ebx, ebx
mov bl, ch
add ebx, esi
mov word [eax + 4], bx
add eax, 6
jmp 0x513f21
test cl, 0x20
jne 0x513f21
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
sub eax, ebx
lea ebx, [esp + 0x104]
mov ecx, dword [edx]
mov edx, eax
mov eax, 0x2aaaaaab
mov dword [esp + 0x54], 3
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, ecx
and edx, 0xff00ff
xor eax, eax
mov al, ch
mov dword [esp + 0x104], edx
mov word [esp + 0x108], ax
lea eax, [esp + 0x360]
xor edx, edx
lea edi, [eax - 0x20]
mov dx, word [ebx]
mov ecx, edx
mov dl, byte [esp + edx + 0x200]
shl ecx, 5
test dl, 0x10
lea esi, [esp + ecx + 0x500]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov byte [eax], dl
jne 0x513e64
fld dword [0xbcabec]
fmul dword [eax - 0x14]
xor ecx, ecx
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x164], ecx
mov dword [esp + 0x154], ecx
fst dword [eax - 0x18]
mov edx, dword [eax - 0x10]
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x138], edx
fild qword [esp + 0x138]
fmul st(1)
fstp dword [eax + 8]
mov edx, dword [eax - 0x10]
shr edx, 8
and edx, 0xff
fstp st(0)
mov dword [esp + 0x148], edx
fild qword [esp + 0x148]
fmul dword [eax - 0x18]
fstp dword [eax + 0xc]
mov edx, dword [eax - 0x10]
and edx, 0xff
mov dword [esp + 0x160], edx
fild qword [esp + 0x160]
fmul dword [eax - 0x18]
fstp dword [eax + 0x10]
fld dword [eax - 8]
fmul dword [eax - 0x18]
fstp dword [eax + 0x14]
fld dword [eax - 4]
fmul dword [eax - 0x18]
fstp dword [eax + 0x18]
mov edx, dword [eax - 0xc]
shr edx, 0x18
mov dword [esp + 0x150], edx
fild qword [esp + 0x150]
fmul dword [eax - 0x18]
fstp dword [eax + 0x1c]
mov ecx, dword [esp + 0x54]
add ebx, 2
add eax, 0x40
dec ecx
mov dword [esp + 0x54], ecx
jne 0x513d83
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x16c], ecx
lea ecx, [esp + 0x168]
push ecx
mov ecx, 0x10
sub esp, 0x40
lea esi, [esp + 0x404]
mov edi, esp
mov ebx, dword [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
sub esp, 0x40
mov ecx, 0x10
lea esi, [esp + 0x404]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
sub esp, 0x40
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0xf8]
mov ecx, 0x10
lea esi, [esp + 0x404]
mov edi, esp
lea edx, [esp + 0xe0]
mov dword [esp + 0x234], ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x238], edx
mov dword [esp + 0x23c], eax
call fcn.00514760
mov eax, dword [esp + 0xe0]
mov esi, dword [esp + 0x14c]
mov edi, dword [esp + 0xdc]
add esp, 0xc4
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x8c]
add edx, 4
cmp edx, ecx
mov dword [esp + 0x28], edx
jb 0x513cfa
mov ebx, dword [esp + 0x24]
sub eax, ebx
mov ebx, dword [edi + 0x2ee8]
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
add ebx, edx
mov dword [edi + 0x2ee8], ebx
mov eax, dword [esp + 0x14]
mov edx, dword [0xa7f89c]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, dword [0xa7e078]
add ecx, eax
mov dword [0xa7f89c], edx
mov dword [0xa7e078], ecx
mov ecx, dword [esp + 0x48]
jmp 0x513fa3
mov edx, dword [esp + 0x70]
lea eax, [edx*8]
mov edx, eax
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*4]
shl eax, 2
sub eax, edx
lea ebp, [eax + ebp + 4]
inc ecx
cmp ecx, 3
mov dword [esp + 0x48], ecx
jl 0x513b6a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x513b61
mov eax, dword [ebp]
add ebp, 4
test eax, eax
mov dword [esp + 0x4c], eax
je 0x51438a
mov ecx, dword [0xa7e078]
mov edx, dword [0xa7f89c]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x10], ecx
xor ecx, ecx
lea eax, [esp + 0x500]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x10]
mov edi, esi
mov bl, byte [esi]
inc edi
test bl, bl
mov dword [esp + 0x10], edi
jne 0x514033
mov ecx, dword [ebp + 4]
mov esi, eax
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov ecx, 8
mov edi, edx
mov dword [eax + 0x10], 0xffffff
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
add ebp, 0xc
add edx, 0x20
add eax, 0x20
inc ecx
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x514000
cmp ecx, dword [esp + 0x3c]
je 0x5140b1
mov esi, dword [esp + 0x10]
mov edi, esi
mov bl, byte [esi]
inc edi
test bl, bl
mov dword [esp + 0x10], edi
jne 0x51409b
mov ecx, dword [ebp]
mov esi, eax
sar ecx, 0x10
mov edi, edx
mov dword [eax + 0x10], 0xffffff
fld dword [esp + ecx*4 + 0x400]
fld dword [ebp + 0xc]
fmul st(1)
mov ecx, 8
fadd dword [ebp + 4]
fstp dword [eax + 0x18]
fld dword [ebp + 0x10]
fmul st(1)
fadd dword [ebp + 8]
fstp dword [eax + 0x1c]
rep movsd dword es:[edi], dword [esi]
fstp st(0)
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
add ebp, 0x14
add edx, 0x20
add eax, 0x20
inc ecx
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x51404f
mov edx, dword [esp + 0x4c]
push 2
push edx
call fcn.00514680
mov ebx, eax
mov eax, dword [0xa7f89c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x50]
mov esi, eax
add esp, 8
shl esi, 0x10
mov edi, dword [esp + 0x44]
add esi, eax
mov eax, dword [ebx + 0x2ee8]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x240]
mov dword [esp + 0x28], edi
lea ecx, [eax + eax*2]
mov dword [esp + 0x30], esi
lea ebx, [ebx + ecx*2 + 8]
mov ecx, dword [esp + 0x40]
mov eax, ebx
lea ecx, [edi + ecx*4]
mov dword [esp + 0x88], ecx
jmp 0x514113
mov edx, dword [esp + 0x4c]
mov cl, byte [edx]
inc edx
test cl, cl
mov dword [esp + 0x4c], edx
jne 0x514142
mov ecx, dword [edi]
mov edx, ecx
and edx, 0xff00ff
add edx, esi
mov esi, dword [esp + 0x30]
mov dword [eax], edx
xor edx, edx
mov dl, ch
add edx, esi
mov word [eax + 4], dx
add eax, 6
jmp 0x514327
test cl, 0x20
jne 0x51432b
sub eax, ebx
mov ecx, dword [edi]
mov edx, eax
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
lea ebp, [esp + 0x120]
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x38], edx
mov edx, ecx
and edx, 0xff00ff
xor eax, eax
mov al, ch
mov dword [esp + 0x120], edx
mov word [esp + 0x124], ax
lea eax, [esp + 0x2a0]
xor edx, edx
lea edi, [eax - 0x20]
mov dx, word [ebp]
mov ecx, edx
mov dl, byte [esp + edx + 0x200]
shl ecx, 5
test dl, 0x10
lea esi, [esp + ecx + 0x500]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov byte [eax], dl
jne 0x514276
fld dword [0xbcabec]
fmul dword [eax - 0x14]
xor ecx, ecx
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x144], ecx
mov dword [esp + 0x134], ecx
mov dword [esp + 0x84], ecx
fst dword [eax - 0x18]
mov edx, dword [eax - 0x10]
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x158], edx
fild qword [esp + 0x158]
fmul st(1)
fstp dword [eax + 8]
mov edx, dword [eax - 0x10]
shr edx, 8
and edx, 0xff
fstp st(0)
mov dword [esp + 0x140], edx
fild qword [esp + 0x140]
fmul dword [eax - 0x18]
fstp dword [eax + 0xc]
mov edx, dword [eax - 0x10]
and edx, 0xff
mov dword [esp + 0x130], edx
fild qword [esp + 0x130]
fmul dword [eax - 0x18]
fstp dword [eax + 0x10]
fld dword [eax - 8]
fmul dword [eax - 0x18]
fstp dword [eax + 0x14]
fld dword [eax - 4]
fmul dword [eax - 0x18]
fstp dword [eax + 0x18]
mov edx, dword [eax - 0xc]
shr edx, 0x18
mov dword [esp + 0x80], edx
fild qword [esp + 0x80]
fmul dword [eax - 0x18]
fstp dword [eax + 0x1c]
mov ecx, dword [esp + 0x20]
add ebp, 2
add eax, 0x40
dec ecx
mov dword [esp + 0x20], ecx
jne 0x514194
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x180], ecx
lea ecx, [esp + 0x17c]
push ecx
mov ecx, 0x10
sub esp, 0x40
lea esi, [esp + 0x344]
mov edi, esp
sub esp, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
lea esi, [esp + 0x344]
mov edi, esp
sub esp, 0x40
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x10c]
mov ecx, 0x10
lea esi, [esp + 0x344]
mov edi, esp
lea edx, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x248], ebx
mov dword [esp + 0x24c], edx
mov dword [esp + 0x250], eax
call fcn.00514760
mov eax, dword [esp + 0xfc]
mov esi, dword [esp + 0xf4]
add esp, 0xc4
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x88]
add edi, 4
cmp edi, ecx
mov dword [esp + 0x28], edi
jb 0x51410f
sub eax, ebx
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x2ee8]
add edi, edx
mov dword [eax + 0x2ee8], edi
mov eax, dword [esp + 0x14]
mov edx, dword [0xa7f89c]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, dword [0xa7e078]
add ecx, eax
mov dword [0xa7f89c], edx
mov dword [0xa7e078], ecx
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x110]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x94], edx
jl 0x513089
xor ebx, ebx
mov eax, dword [0xa7f890]
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
xor ebp, ebp
mov edi, dword [0xa7f880]
push ebp
call fcn.005144e0
mov ecx, dword [0xa7f87c]
add esp, 4
cmp edi, ebx
je 0x514453
mov esi, dword [ecx + edi*4 - 4]
dec edi
imul esi, dword [0xa7f888]
add esi, dword [0xa7f878]
cmp dword [esi + 0x2ee8], ebx
je 0x51444f
cmp dword [esi + 0x2ef0], ebp
jne 0x51444f
mov edx, dword [esi + 0x2eec]
mov eax, dword [0x5ca114]
mov edx, dword [edx + 0x20]
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0x8c]
mov eax, dword [esi + 0x2ee8]
mov ecx, dword [0x5ca114]
push ebx
lea eax, [eax + eax*2]
mov edx, dword [ecx]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [0xa7e078]
push eax
mov eax, dword [0xa7f890]
push ebx
push eax
push 4
push ecx
call dword [edx + 0x80]
mov dword [esi + 0x2ee8], ebx
mov ecx, dword [0xa7f87c]
cmp edi, ebx
jne 0x5143db
inc ebp
cmp ebp, 3
jl 0x5143c2
mov eax, dword [0xa7f880]
cmp eax, ebx
je 0x5144d2
mov ebx, dword [0xa7f888]
jmp 0x51447a
mov ebx, dword [0xa7f888]
mov ecx, dword [0xa7f87c]
mov esi, ebx
mov ebp, dword [0xa7f878]
imul esi, dword [ecx]
mov edi, dword [0xa7f88c]
add esi, ebp
dec eax
mov edx, dword [edi + esi]
mov dword [0xa7f880], eax
cmp edx, eax
je 0x5144c0
mov eax, dword [ecx + eax*4]
imul eax, ebx
mov ebx, dword [ecx + edx*4]
add eax, ebp
mov edi, dword [edi + eax]
mov ebp, dword [ecx + edi*4]
mov dword [ecx + edx*4], ebp
mov ecx, dword [0xa7f87c]
mov dword [ecx + edi*4], ebx
mov ecx, dword [0xa7f88c]
mov dword [ecx + eax], edx
push esi
call fcn.004af960
mov eax, dword [0xa7f880]
add esp, 4
test eax, eax
jne 0x51446e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14f0
ret