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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [edi + 0x18]
sub esp, 0xc8
push ebx
push esi
mov esi, dword [ebp + 0x14]
push 6
pop ebx
test al, 1
jne 0x478ad1
test esi, esi
je 0x4789f9
mov eax, dword [edi + 0x18]
test eax, 0x400
jne 0x478a94
mov eax, dword [edi + 0x18]
test al, 0x10
jne 0x478a5d
mov eax, dword [edi + 0x20]
fld dword [0x5c39c0]
fstp dword [esp + 0x5c]
cmp eax, 2
jne 0x478a1a
fld dword [0x5c3c68]
jmp 0x478a25
cmp eax, 1
jne 0x478a29
fld dword [0x5c3c64]
fstp dword [esp + 0x5c]
mov eax, edi
call fcn.00451e4a
test eax, eax
jne 0x478a40
mov eax, dword [edi + 0x1c]
push 2
pop ebx
cmp eax, ebx
jle 0x478a40
mov ebx, eax
xor edx, edx
lea ecx, [edi + 0xb0]
fld dword [esp + 0x5c]
fcomp dword [ecx]
fnstsw ax
test ah, 5
jnp 0x478a64
inc edx
add ecx, 4
cmp edx, ebx
jb 0x478a48
xor eax, eax
jmp 0x479003
mov eax, dword [ebp + 8]
call fcn.00452c82
fmul dword [0x5c3c60]
call fcn.0047d04c
cmp dword [ebp + 0x10], eax
jle 0x478a7f
mov dword [ebp + 0x10], eax
test esi, esi
je 0x478a90
cmp dword [esi + 0x298], 0
jne 0x478a90
and dword [ebp + 0x14], 0
or dword [edi + 0x18], 4
mov eax, dword [edi + 0x18]
test al, 0x40
je 0x478aa4
push dword [ebp + 8]
push edi
call fcn.004781fc
mov eax, dword [edi + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
call fcn.00452c82
fdivr dword [edi + 0x40]
mov eax, edi
fstp qword [esp + 0x50]
call fcn.00451e4a
test eax, eax
je 0x478b27
fld dword [edi + 0xa0]
fmul qword [esp + 0x50]
jmp 0x478b2b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x134]
dec eax
cmp dword [edi + 0x5c], eax
je 0x478a94
mov eax, edi
call fcn.00451e4a
test eax, eax
je 0x478aef
mov eax, ebx
jmp 0x478afa
mov eax, dword [edi + 0x1c]
cmp eax, 2
jg 0x478afa
push 2
pop eax
shl eax, 2
push eax
lea eax, [edi + 0xb0]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x18]
add esp, 0xc
test al, 0x10
je 0x478a90
and dword [edi + 0x18], 0xfffffffb
or dword [edi + 0x18], 8
jmp 0x478a94
fld qword [esp + 0x50]
fld qword [0x5c3c58]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x478b3e
fstp st(1)
jmp 0x478b40
fstp st(0)
fld qword [0x5c3c50]
fmul st(1)
call fcn.0047d04c
cmp dword [edi + 0x3c], 0
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x38]
jl 0x478b64
jg 0x478b60
test eax, eax
je 0x478b64
inc dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
fild dword [esp + 0x2c]
mov ebx, dword [edi + 0x20]
mov dword [esp + 0x34], ebx
imul ebx, eax
fmul qword [0x5c3970]
fsubp st(1)
fstp qword [esp + 0x88]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], eax
test eax, eax
je 0x478bab
mov ecx, dword [edi + 0x44]
xor eax, eax
add ecx, 2
inc eax
shl eax, cl
inc ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
cmp dword [edi + 0x28], 0
jl 0x478c84
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x2c]
jns 0x478bc0
add eax, dword [edi + 0x24]
xor edx, edx
div ebx
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], eax
je 0x478c43
mov esi, dword [ebp + 0x10]
mov eax, edi
call fcn.00451e4a
test eax, eax
jne 0x478be6
cmp dword [esp + 0x2c], 0x1000000
je 0x478c21
mov eax, dword [esp + 0x2c]
imul dword [ebp + 0x10]
mov esi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], edx
cdq
add esi, eax
mov eax, dword [esp + 0xc]
adc eax, edx
add esi, 0x1ffffff
adc eax, 0
shrd esi, eax, 0x18
sar eax, 0x18
cmp dword [esp + 0x58], 0
je 0x478c21
mov eax, dword [esp + 0x6c]
shr eax, 1
lea esi, [esi + eax - 1]
cmp dword [esp + 0x18], esi
jge 0x478c43
mov ecx, dword [ebp + 0x14]
mov edx, esi
sub edx, dword [esp + 0x18]
push 3
imul edx, ebx
call fcn.0047030c
and dword [ebp + 0x14], 0
jmp 0x478bb5
cmp dword [esp + 0x2c], 0x1000000
je 0x478c78
mov eax, dword [esp + 0x18]
cdq
shld edx, eax, 0x18
shl eax, 0x18
mov ecx, eax
mov eax, dword [esp + 8]
mov esi, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x2c]
sbb esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.0047d20c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp dword [ebp + 0x10], eax
jle 0x478c84
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jle 0x478a5d
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], ebx
call fcn.00452c41
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x54]
lea eax, [ecx + eax*4]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x18]
test eax, 0x100
jne 0x478f98
mov esi, dword [edi + 0x54]
cmp dword [esp + 0x40], esi
jbe 0x478f98
mov eax, dword [ebp + 8]
cmp dword [eax + 0x48], ebx
jne 0x478d19
cmp dword [eax + 0x60], ebx
jne 0x478d19
mov eax, dword [eax + 0x138]
cmp eax, ebx
je 0x478ced
cmp dword [eax + 0x270], ebx
jne 0x478d19
mov eax, edi
call fcn.00451e4a
test eax, eax
je 0x478f98
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x13c]
cmp eax, ebx
je 0x478f98
cmp dword [eax + 0x270], ebx
je 0x478f98
mov eax, edi
call fcn.00451e4a
test eax, eax
je 0x478d38
xor ecx, ecx
cmp dword [edi + 0x84], ebx
sete cl
lea ecx, [ecx*4 + 2]
jmp 0x478d3c
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
sub eax, esi
cmp ecx, eax
jae 0x478d69
mov eax, edi
call fcn.00451e4a
test eax, eax
je 0x478d65
xor eax, eax
cmp dword [edi + 0x84], ebx
sete al
lea eax, [eax*4 + 2]
jmp 0x478d69
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, edi
call fcn.00451e4a
test eax, eax
je 0x478d7c
push 6
jmp 0x478d87
mov eax, dword [esp + 0x38]
cmp eax, 2
ja 0x478d88
push 2
pop eax
lea eax, [edi + eax*4 + 0xb0]
mov dword [esp + 0x1c], eax
xor eax, eax
inc eax
cmp dword [esp + 0x40], eax
jle 0x478da5
mov dword [esp + 0x48], eax
cmp dword [edi + 0x58], ebx
jne 0x478da9
mov dword [esp + 0x48], ebx
mov eax, dword [edi + 0x18]
test al, 0xc
je 0x47900b
mov eax, dword [edi + 0x18]
test al, 1
je 0x478dc0
fld dword [edi + 0x4c]
jmp 0x478dc2
fldz
mov eax, dword [edi + 0x18]
fstp dword [esp + 0x10]
mov eax, dword [edi + 0x20]
cmp eax, 2
jne 0x478ddd
fld dword [esp + 0x10]
fmul dword [0x5c3758]
jmp 0x478dec
cmp eax, 1
jne 0x478df0
fld dword [esp + 0x10]
fmul dword [0x5c375c]
fstp dword [esp + 0x10]
mov eax, dword [edi + 0x18]
and al, 4
movzx esi, al
neg esi
sbb esi, esi
and esi, dword [ebp + 0x10]
and dword [edi + 0x18], 0xfffffff3
mov dword [esp + 0x20], esi
cmp esi, ebx
je 0x478e92
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x134]
dec eax
cmp dword [edi + 0x5c], eax
je 0x478e92
mov eax, dword [ebp + 8]
call fcn.00452c82
fmul dword [0x5c3c60]
call fcn.0047d04c
cmp esi, eax
jle 0x478e3b
mov esi, eax
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x2c]
add ecx, dword [edi + 0x14]
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x34], 4
jne 0x478e5f
fld dword [ecx]
fabs
fcomp dword [0x5c375c]
fnstsw ax
test ah, 1
je 0x478e92
jmp 0x478e85
cmp dword [esp + 0x34], 2
jne 0x478e75
movsx eax, word [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x100
jmp 0x478e83
movzx eax, byte [ecx]
add eax, 0xffffff80
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jge 0x478e92
add ecx, dword [esp + 0x34]
dec ebx
jne 0x478e45
xor esi, esi
mov dword [esp + 0x20], esi
and dword [esp + 0x14], 0
mov eax, edi
call fcn.00451e4a
test eax, eax
je 0x478ef9
and dword [esp + 0xc], 0
fld dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0xb0]
lea ebx, [eax + 0x30]
mov edx, eax
sub ebx, eax
mov eax, dword [esp + 0xc]
sub edx, ecx
mov dword [esp + 0x30], edx
jmp 0x478ecc
mov edx, dword [esp + 0x30]
add edx, ecx
fld dword [edx + ebx]
fmul st(1)
test esi, esi
je 0x478ee7
fsub dword [edx]
fidiv dword [esp + 0x20]
fstp dword [ecx]
mov edx, dword [ecx]
or dword [esp + 0x14], edx
jmp 0x478eed
fstp dword [edx]
fldz
fstp dword [ecx]
inc eax
add ecx, 4
cmp eax, dword [esp + 0x3c]
jb 0x478ec8
jmp 0x478f78
fld dword [edi + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
fstp dword [esp + 0x24]
and dword [esp + 0x18], 0
fld dword [esp + 0x10]
add edx, dword [esp + 0x38]
fld1
lea ecx, [edi + 0xb0]
sub ecx, eax
cmp edx, 2
jne 0x478f41
cmp dword [esp + 0x24], 0
jg 0x478f3a
test byte [esp + 0x18], 1
je 0x478f41
fld dword [esp + 0x24]
fadd st(1)
jmp 0x478f4b
test byte [esp + 0x18], 1
je 0x478f45
fld st(1)
jmp 0x478f4d
fld dword [esp + 0x24]
fsubr st(1)
fmul st(2)
test esi, esi
je 0x478f62
fsub dword [eax + ecx]
fidiv dword [esp + 0x20]
fstp dword [eax]
mov ebx, dword [eax]
or dword [esp + 0x14], ebx
jmp 0x478f69
fstp dword [eax + ecx]
fldz
fstp dword [eax]
inc dword [esp + 0x18]
add eax, 4
cmp dword [esp + 0x18], edx
jb 0x478f1f
fstp st(0)
cmp dword [esp + 0x14], 0
je 0x478f8d
or dword [edi + 0x18], 8
fstp st(0)
mov dword [ebp + 0x10], esi
jmp 0x479010
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x479010
mov eax, dword [edi + 0x18]
test al, 1
je 0x478a5d
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
or dword [edi + 0x18], 2
imul ebx
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, edx
cdq
add esi, eax
adc ecx, edx
mov eax, esi
and eax, 0xffffff
add ebx, dword [esp + 0x5c]
mov dword [edi + 0x30], eax
mov dword [esp + 0x50], ebx
fild dword [esp + 0x50]
jns 0x478fdb
fadd qword [0x5c3998]
mov eax, esi
shrd eax, ecx, 0x18
imul eax, dword [esp + 0x44]
add eax, dword [edi + 0x2c]
xor edx, edx
sar ecx, 0x18
div dword [edi + 0x24]
mov eax, ebx
mov dword [edi + 0x2c], edx
fmul qword [esp + 0x88]
fadd qword [edi + 0x38]
fstp qword [edi + 0x38]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x4c], ebx
je 0x478f98
and dword [edi + 0x18], 0xfffffffd
cmp dword [esp + 0x58], 0
je 0x479058
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x134]
dec eax
cmp dword [edi + 0x5c], eax
je 0x479058
mov eax, dword [edi + 0x28]
cmp eax, dword [edi + 0x24]
jae 0x479058
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x20]
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffffff80
sub ecx, 0xffffff80
push ecx
mov ecx, dword [edi + 0x2c]
add ecx, eax
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, dword [edi + 0x14]
mov esi, dword [edi + 0x2c]
mov eax, edi
mov dword [esp + 0x14], ebx
call fcn.00451e4a
test eax, eax
jne 0x479291
cmp dword [esp + 0x2c], 0x1000000
jne 0x479291
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [edi + 0xb0]
sub ecx, eax
cmp dword [esp + 0x34], 4
mov dword [esp + 0x20], ecx
jne 0x47914b
and dword [esp + 0x28], 0
lea ecx, [esi + ebx]
sub ecx, dword [esp + 0x1c]
lea edx, [edi + 0xb0]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, edx
lea eax, [edi + 0xb0]
mov dword [esp + 0x10], ecx
jmp 0x4790ca
fstp st(0)
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
add ecx, eax
fld dword [ecx + edx]
fld dword [ecx]
mov ecx, dword [esp + 0x10]
fadd dword [eax]
fst dword [eax]
fmul st(1)
fadd dword [ecx + eax]
fstp dword [ecx + eax]
mov ecx, dword [esp + 0x28]
inc ecx
add eax, 4
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x3c]
jb 0x4790c8
cmp dword [esp + 0x48], 0
je 0x479123
mov edx, dword [esp + 0x1c]
mov eax, ecx
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmulp st(1)
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
jmp 0x479125
fstp st(0)
mov eax, dword [esp + 0x40]
add esi, dword [esp + 0x44]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x47913c
sub esi, eax
dec dword [esp + 0x14]
jne 0x4790a1
jmp 0x479dde
cmp dword [esp + 0x34], 2
jne 0x4791f2
and dword [esp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
lea eax, [edi + 0xb0]
sub ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x479172
fstp st(0)
lea ecx, [esi + ebx]
movsx ecx, word [ecx + edx*2]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x20]
inc edx
fild dword [esp + 0xc]
fld dword [eax + ecx]
mov ecx, dword [esp + 0x10]
fadd dword [eax]
fst dword [eax]
fmul st(1)
fadd dword [ecx + eax]
fstp dword [ecx + eax]
add eax, 4
cmp edx, dword [esp + 0x3c]
jb 0x479170
cmp dword [esp + 0x48], 0
je 0x4791ca
mov eax, edx
mov edx, dword [esp + 0x1c]
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmulp st(1)
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
jmp 0x4791cc
fstp st(0)
mov eax, dword [esp + 0x40]
add esi, dword [esp + 0x44]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x4791e3
sub esi, eax
dec dword [esp + 0x14]
jne 0x479156
jmp 0x479dde
and dword [esp + 0xc], 0
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0xb0]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
jmp 0x47920e
fstp st(0)
lea edx, [esi + ebx]
movzx edx, byte [ecx + edx]
add edx, 0xffffff80
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x20]
inc ecx
fild dword [esp + 0xc]
fld dword [eax + edx]
mov edx, dword [esp + 0x10]
fadd dword [eax]
fst dword [eax]
fmul st(1)
fadd dword [edx + eax]
fstp dword [edx + eax]
add eax, 4
cmp ecx, dword [esp + 0x3c]
jb 0x47920c
cmp dword [esp + 0x48], 0
je 0x479269
mov edx, dword [esp + 0x1c]
mov eax, ecx
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmulp st(1)
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
jmp 0x47926b
fstp st(0)
mov eax, dword [esp + 0x40]
add esi, dword [esp + 0x44]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x479282
sub esi, eax
dec dword [esp + 0x14]
jne 0x4791f2
jmp 0x479dde
cmp dword [esp + 0x58], 0
je 0x4792aa
mov eax, dword [esp + 0x6c]
shr eax, 1
dec eax
imul eax, dword [esp + 0x44]
sub ebx, eax
mov dword [esp + 0x14], ebx
mov eax, edi
call fcn.00451e4a
test eax, eax
mov eax, dword [ebp + 0x10]
je 0x479524
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [edi + 0xb0]
sub ecx, eax
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x58], 0
lea edx, [esi + ebx]
je 0x479441
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
and eax, 0x1ffff
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
fild dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
fmul dword [0x5c3c4c]
sar eax, 0x11
shl eax, cl
cmp dword [esp + 0x34], 4
mov ecx, dword [esp + 0x58]
fstp dword [esp + 0xc]
movss xmm2, dword [esp + 0xc]
lea eax, [ecx + eax*4]
shufps xmm2, xmm2, 0
xorps xmm1, xmm1
jne 0x47934e
movaps xmm3, xmmword [eax + 0x10]
movups xmm0, xmmword [edx]
mulps xmm3, xmm2
addps xmm3, xmmword [eax]
add edx, 0x10
add eax, 0x20
sub dword [esp + 0x14], 4
mulps xmm3, xmm0
addps xmm1, xmm3
jne 0x479329
jmp 0x479409
cmp dword [esp + 0x34], 2
jne 0x4793ab
lea ecx, [edx + 4]
movsx edx, word [ecx - 4]
xorps xmm0, xmm0
cvtsi2ss xmm0, edx
movsx edx, word [ecx - 2]
xorps xmm3, xmm3
cvtsi2ss xmm3, edx
movsx edx, word [ecx]
xorps xmm4, xmm4
cvtsi2ss xmm4, edx
movsx edx, word [ecx + 2]
xorps xmm5, xmm5
cvtsi2ss xmm5, edx
add ecx, 8
unpcklps xmm0, xmm4
unpcklps xmm3, xmm5
unpcklps xmm0, xmm3
movaps xmm3, xmmword [eax + 0x10]
mulps xmm3, xmm2
addps xmm3, xmmword [eax]
add eax, 0x20
sub dword [esp + 0x14], 4
mulps xmm3, xmm0
addps xmm1, xmm3
jne 0x479358
jmp 0x479409
movaps xmm3, xmmword [0x5c29a0]
lea ecx, [edx + 2]
movzx edx, byte [ecx - 2]
xorps xmm0, xmm0
cvtsi2ss xmm0, edx
movzx edx, byte [ecx - 1]
xorps xmm4, xmm4
cvtsi2ss xmm4, edx
movzx edx, byte [ecx]
xorps xmm5, xmm5
cvtsi2ss xmm5, edx
movzx edx, byte [ecx + 1]
xorps xmm6, xmm6
cvtsi2ss xmm6, edx
add ecx, 4
unpcklps xmm0, xmm5
unpcklps xmm4, xmm6
unpcklps xmm0, xmm4
movaps xmm4, xmmword [eax + 0x10]
mulps xmm4, xmm2
addps xmm4, xmmword [eax]
subps xmm0, xmm3
add eax, 0x20
sub dword [esp + 0x14], 4
mulps xmm4, xmm0
addps xmm1, xmm4
jne 0x4793b5
movaps xmm0, xmmword [esp + 0xb0]
movhlps xmm0, xmm1
addps xmm0, xmm1
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
movaps xmmword [esp + 0xb0], xmm1
addss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x84], xmm0
fld dword [esp + 0x84]
jmp 0x47949e
cmp dword [esp + 0x34], 4
fild dword [esp + 8]
fmul dword [0x5c3978]
jne 0x47945d
fld dword [edx + 4]
fsub dword [edx]
fmulp st(1)
fadd dword [edx]
jmp 0x47949e
cmp dword [esp + 0x34], 2
jne 0x47947f
movsx eax, word [edx]
movsx ecx, word [edx + 2]
sub ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], eax
fimul dword [esp + 0xc]
fiadd dword [esp + 0x30]
jmp 0x47949e
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
sub ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], eax
fimul dword [esp + 0xc]
fiadd dword [esp + 0x30]
fsub dword [0x5c3764]
mov ecx, dword [ebp + 0xc]
and dword [esp + 0x24], 0
lea eax, [edi + 0xb0]
sub ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x4794b8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
fld dword [eax + edx]
inc dword [esp + 0x24]
fadd dword [eax]
fst dword [eax]
fld st(1)
fmulp st(1)
fadd dword [ecx + eax]
fstp dword [ecx + eax]
mov ecx, dword [esp + 0x24]
add eax, 4
cmp ecx, dword [esp + 0x3c]
jb 0x4794b4
mov eax, dword [esp + 0x40]
fstp st(0)
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x18
test eax, eax
je 0x479515
imul eax, dword [esp + 0x34]
and dword [esp + 8], 0xffffff
add esi, eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x479515
sub esi, eax
dec dword [esp + 0x28]
jne 0x4792d0
jmp 0x479dde
cmp dword [esp + 0x58], 0
mov dword [esp + 0x18], eax
je 0x479ae8
cmp dword [esp + 0x34], 4
jne 0x47970d
mov ecx, dword [esp + 0x38]
mov eax, ecx
imul eax, eax, 0xc
mov edx, ecx
mov dword [esp + 0x10], ecx
shl dword [esp + 0x10], 4
shl edx, 3
sub edx, eax
shl ecx, 2
sub ecx, eax
xorps xmm4, xmm4
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
jmp 0x479571
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
sar eax, 0x11
shl eax, cl
mov ecx, dword [esp + 0x58]
and dword [esp + 0x20], 0
lea edx, [esi + ebx]
mov ebx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 8]
and eax, 0x1ffff
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
mov eax, edx
neg eax
add ebx, eax
fmul dword [0x5c3c4c]
lea eax, [eax + edi + 0xb0]
mov ecx, edx
mov dword [esp + 0x4c], ebx
fstp dword [esp + 0xc]
movss xmm3, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
sub eax, edx
shufps xmm3, xmm3, 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov ebx, ecx
movaps xmm2, xmm4
add edx, ecx
mov eax, dword [esp + 0x60]
movss xmm1, dword [eax + edx]
movss xmm0, dword [edx]
mov eax, dword [esp + 0x64]
movss xmm5, dword [eax + edx]
mov eax, dword [esp + 0x28]
add edx, dword [esp + 0x10]
unpcklps xmm1, xmm0
movss xmm0, dword [ebx]
add ebx, dword [esp + 0x10]
unpcklps xmm0, xmm5
movaps xmm5, xmmword [eax + 0x10]
mulps xmm5, xmm3
addps xmm5, xmmword [eax]
add eax, 0x20
sub dword [esp + 0x24], 4
movlhps xmm0, xmm1
mulps xmm5, xmm0
addps xmm2, xmm5
mov dword [esp + 0x28], eax
jne 0x4795f5
movaps xmm0, xmmword [esp + 0x90]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x4c]
fld dword [edx + ecx]
movhlps xmm0, xmm2
fadd dword [eax + ecx]
addps xmm0, xmm2
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
fst dword [eax + ecx]
mov eax, dword [esp + 0x50]
movaps xmmword [esp + 0x90], xmm1
addss xmm0, dword [esp + 0x90]
movss dword [esp + 0x78], xmm0
fmul dword [esp + 0x78]
fadd dword [eax + ecx]
fstp dword [eax + ecx]
mov eax, dword [esp + 0x20]
inc eax
add ecx, 4
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x3c]
jb 0x4795da
cmp dword [esp + 0x48], 0
je 0x4796c9
mov edx, dword [esp + 0x1c]
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmul dword [esp + 0x78]
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
mov eax, dword [esp + 0x40]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x18
test eax, eax
je 0x4796fe
imul eax, dword [esp + 0x44]
and dword [esp + 8], 0xffffff
add esi, eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x4796fe
sub esi, eax
dec dword [esp + 0x18]
jne 0x47956d
jmp 0x479dde
cmp dword [esp + 0x34], 2
mov eax, dword [esp + 0x38]
mov edx, eax
jne 0x479906
shl edx, 3
mov ecx, eax
mov dword [esp + 0x28], edx
lea edx, [eax + eax]
imul eax, eax, 6
shl ecx, 2
sub eax, ecx
sub edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [edi + 0xb0]
sub ecx, eax
xorps xmm3, xmm3
mov dword [esp + 0x64], edx
mov dword [esp + 0x20], ecx
jmp 0x479755
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
and dword [esp + 0x30], 0
sar eax, 0x11
shl eax, cl
mov ecx, dword [esp + 0x58]
add ebx, esi
mov dword [esp + 0x24], ebx
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 8]
and eax, 0x1ffff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
lea eax, [edi + 0xb0]
sub ecx, eax
mov dword [esp + 0x10], ecx
fmul dword [0x5c3c4c]
fstp dword [esp + 0x50]
movss xmm2, dword [esp + 0x50]
shufps xmm2, xmm2, 0
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x38]
shl ecx, 2
movaps xmm1, xmm3
add ecx, ebx
movsx edx, word [ebx]
xorps xmm0, xmm0
cvtsi2ss xmm0, edx
mov edx, dword [esp + 0x64]
movsx edx, word [edx + ecx]
add ebx, dword [esp + 0x28]
xorps xmm4, xmm4
cvtsi2ss xmm4, edx
movsx edx, word [ecx]
xorps xmm5, xmm5
cvtsi2ss xmm5, edx
mov edx, dword [esp + 0xc]
movsx edx, word [edx + ecx]
add ecx, dword [esp + 0x28]
xorps xmm6, xmm6
cvtsi2ss xmm6, edx
mov edx, dword [esp + 0x60]
unpcklps xmm0, xmm5
unpcklps xmm4, xmm6
unpcklps xmm0, xmm4
movaps xmm4, xmmword [edx + 0x10]
mulps xmm4, xmm2
addps xmm4, xmmword [edx]
add edx, 0x20
sub dword [esp + 0x68], 4
mulps xmm4, xmm0
addps xmm1, xmm4
mov dword [esp + 0x60], edx
jne 0x4797cc
movaps xmm0, xmmword [esp + 0xa0]
mov ecx, dword [esp + 0x20]
fld dword [ecx + eax]
mov ecx, dword [esp + 0x10]
fadd dword [eax]
add dword [esp + 0x24], 2
movhlps xmm0, xmm1
addps xmm0, xmm1
movaps xmm1, xmm0
fst dword [eax]
shufps xmm1, xmm0, 1
movaps xmmword [esp + 0xa0], xmm1
addss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x80], xmm0
fmul dword [esp + 0x80]
fadd dword [ecx + eax]
fstp dword [ecx + eax]
mov ecx, dword [esp + 0x30]
inc ecx
add eax, 4
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x3c]
jb 0x4797ac
cmp dword [esp + 0x48], 0
je 0x4798c2
mov edx, dword [esp + 0x1c]
mov eax, ecx
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmul dword [esp + 0x80]
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
mov eax, dword [esp + 0x40]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x18
test eax, eax
je 0x4798f7
imul eax, dword [esp + 0x44]
and dword [esp + 8], 0xffffff
add esi, eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x4798f7
sub esi, eax
dec dword [esp + 0x18]
jne 0x479751
jmp 0x479dde
movaps xmm3, xmmword [0x5c29a0]
lea ecx, [eax + eax]
mov dword [esp + 0x24], eax
imul eax, eax, 3
sub dword [esp + 0x24], ecx
sub eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
shl edx, 2
lea eax, [edi + 0xb0]
sub ecx, eax
xorps xmm4, xmm4
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ecx
jmp 0x479941
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
and dword [esp + 0xc], 0
sar eax, 0x11
shl eax, cl
mov ecx, dword [esp + 0x58]
add ebx, esi
mov dword [esp + 0x28], ebx
lea eax, [ecx + eax*4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 8]
and eax, 0x1ffff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0xb0]
sub eax, ecx
fmul dword [0x5c3c4c]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x50]
movss xmm2, dword [esp + 0x50]
shufps xmm2, xmm2, 0
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
add eax, eax
movaps xmm1, xmm4
add eax, ebx
movzx edx, byte [ebx]
xorps xmm0, xmm0
cvtsi2ss xmm0, edx
mov edx, dword [esp + 0x24]
movzx edx, byte [edx + eax]
add ebx, dword [esp + 0x30]
xorps xmm5, xmm5
cvtsi2ss xmm5, edx
movzx edx, byte [eax]
xorps xmm6, xmm6
cvtsi2ss xmm6, edx
mov edx, dword [esp + 0x64]
movzx edx, byte [edx + eax]
add eax, dword [esp + 0x30]
xorps xmm7, xmm7
cvtsi2ss xmm7, edx
mov edx, dword [esp + 0x68]
unpcklps xmm0, xmm6
unpcklps xmm5, xmm7
unpcklps xmm0, xmm5
movaps xmm5, xmmword [edx + 0x10]
mulps xmm5, xmm2
addps xmm5, xmmword [edx]
add edx, 0x20
sub dword [esp + 0x60], 4
subps xmm0, xmm3
mulps xmm5, xmm0
addps xmm1, xmm5
mov dword [esp + 0x68], edx
jne 0x4799b7
movaps xmm0, xmmword [esp + 0xc0]
mov eax, dword [esp + 0x20]
fld dword [eax + ecx]
mov eax, dword [esp + 0x10]
fadd dword [ecx]
movhlps xmm0, xmm1
addps xmm0, xmm1
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
fst dword [ecx]
movaps xmmword [esp + 0xc0], xmm1
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x7c], xmm0
fmul dword [esp + 0x7c]
fadd dword [eax + ecx]
fstp dword [eax + ecx]
mov eax, dword [esp + 0xc]
inc eax
inc dword [esp + 0x28]
add ecx, 4
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x3c]
jb 0x479998
cmp dword [esp + 0x48], 0
je 0x479aa4
mov edx, dword [esp + 0x1c]
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmul dword [esp + 0x7c]
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
mov eax, dword [esp + 0x40]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x18
test eax, eax
je 0x479ad9
imul eax, dword [esp + 0x44]
and dword [esp + 8], 0xffffff
add esi, eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x479ad9
sub esi, eax
dec dword [esp + 0x18]
jne 0x47993d
jmp 0x479dde
cmp dword [esp + 0x34], 4
je 0x479b13
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0xb0]
sub ecx, eax
cmp dword [esp + 0x34], 2
mov dword [esp + 0x20], ecx
jne 0x479cff
jmp 0x479c0a
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
fild dword [esp + 8]
and dword [esp + 0xc], 0
lea eax, [esi + ebx]
mov ebx, dword [esp + 0x1c]
fmul dword [0x5c3978]
lea edx, [eax + ecx*4]
mov ecx, eax
neg ecx
add ebx, ecx
lea ecx, [ecx + edi + 0xb0]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x50], ecx
jmp 0x479b56
mov ecx, dword [esp + 0x50]
fstp st(0)
fld dword [edx]
mov ebx, dword [esp + 0x4c]
fsub dword [eax]
add ebx, eax
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x64]
fmul st(1)
add edx, 4
fadd dword [eax]
fld dword [ebx + eax]
mov ebx, dword [esp + 0x30]
fadd dword [ebx]
fst dword [ebx]
fld st(1)
fmulp st(1)
fadd dword [ecx + eax]
fstp dword [ecx + eax]
mov ecx, dword [esp + 0xc]
inc ecx
add eax, 4
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x3c]
jb 0x479b50
cmp dword [esp + 0x48], 0
fstp st(1)
je 0x479bc0
mov edx, dword [esp + 0x1c]
mov eax, ecx
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmulp st(1)
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
jmp 0x479bc2
fstp st(0)
mov eax, dword [esp + 0x40]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x18
test eax, eax
je 0x479bf7
imul eax, dword [esp + 0x44]
and dword [esp + 8], 0xffffff
add esi, eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x479bf7
sub esi, eax
dec dword [esp + 0x18]
jne 0x479b0f
jmp 0x479dde
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
fild dword [esp + 8]
and dword [esp + 0x28], 0
lea ecx, [esi + ebx]
fmul dword [0x5c3978]
lea edx, [ecx + edx*2]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0xb0]
sub edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
jmp 0x479c3e
fstp st(0)
movsx edx, word [ecx + edx*2]
mov ebx, dword [esp + 0x24]
movsx ebx, word [ebx]
sub ebx, edx
add dword [esp + 0x24], 2
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x20]
fild dword [esp + 0x50]
fmul st(1)
fiadd dword [esp + 0x4c]
fld dword [eax + edx]
fadd dword [eax]
mov edx, dword [esp + 0x10]
fst dword [eax]
fmul st(1)
fadd dword [edx + eax]
fstp dword [edx + eax]
mov edx, dword [esp + 0x28]
inc edx
add eax, 4
mov dword [esp + 0x28], edx
cmp edx, dword [esp + 0x3c]
jb 0x479c3c
cmp dword [esp + 0x48], 0
fstp st(1)
je 0x479cb5
mov eax, edx
mov edx, dword [esp + 0x1c]
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmulp st(1)
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
jmp 0x479cb7
fstp st(0)
mov eax, dword [esp + 0x40]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x18
test eax, eax
je 0x479cec
imul eax, dword [esp + 0x44]
and dword [esp + 8], 0xffffff
add esi, eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x479cec
sub esi, eax
dec dword [esp + 0x18]
jne 0x479c06
jmp 0x479dde
mov ebx, dword [esp + 0x14]
fild dword [esp + 8]
mov edx, dword [ebp + 0xc]
and dword [esp + 0xc], 0
lea eax, [edi + 0xb0]
fmul dword [0x5c3978]
sub edx, eax
lea ecx, [esi + ebx]
mov dword [esp + 0x10], edx
jmp 0x479d24
fstp st(0)
movzx edx, byte [ecx]
mov ebx, dword [esp + 0x38]
movzx ebx, byte [ecx + ebx]
sub ebx, edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x20]
fild dword [esp + 0x50]
fmul st(1)
fiadd dword [esp + 0x4c]
fsub dword [0x5c3764]
fld dword [eax + edx]
mov edx, dword [esp + 0x10]
fadd dword [eax]
fst dword [eax]
fmul st(1)
fadd dword [edx + eax]
fstp dword [edx + eax]
mov edx, dword [esp + 0xc]
inc edx
inc ecx
add eax, 4
mov dword [esp + 0xc], edx
cmp edx, dword [esp + 0x3c]
jb 0x479d22
cmp dword [esp + 0x48], 0
fstp st(1)
je 0x479d9d
mov eax, edx
mov edx, dword [esp + 0x1c]
fld dword [edx + eax*4]
lea ecx, [edi + eax*4 + 0xb0]
fadd dword [ecx]
fst dword [ecx]
mov ecx, dword [ebp + 0xc]
fmulp st(1)
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
jmp 0x479d9f
fstp st(0)
mov eax, dword [esp + 0x40]
shl eax, 2
add dword [ebp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
sar eax, 0x18
test eax, eax
je 0x479dd4
imul eax, dword [esp + 0x44]
and dword [esp + 8], 0xffffff
add esi, eax
mov eax, dword [edi + 0x24]
cmp esi, eax
jb 0x479dd4
sub esi, eax
dec dword [esp + 0x18]
jne 0x479cfb
mov eax, dword [ebp + 0x10]
add dword [esp + 0x5c], eax
sub dword [esp + 0x74], eax
mov dword [edi + 0x2c], esi
je 0x479dfc
mov eax, dword [esp + 0x74]
mov dword [ebp + 0x10], eax
xor ebx, ebx
jmp 0x478da9
mov eax, dword [esp + 8]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x5c]
mov ecx, eax
mov dword [esp + 0x50], ecx
fild dword [esp + 0x50]
test ecx, ecx
jns 0x478ff6
fadd qword [0x5c3998]
jmp 0x478ff6