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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572050
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x5c4008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, 0x70a6a4
call fcn.0056b0a5
mov esi, dword [ebx + 8]
xor edi, edi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
movsx eax, word [esi + 0x50]
cmp dword [ecx + 0x30], 5
movd xmm1, eax
movsx eax, word [esi + 0x58]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, word [esi + 0x52]
divss xmm1, xmm0
movss dword [ebp - 0x4c], xmm1
movd xmm1, eax
movsx eax, word [esi + 0x5a]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x44], xmm1
jne 0x517eff
cmp dword [ecx + 0x24], edi
jle 0x51799d
mov eax, dword [ecx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x51799d
mov eax, dword [0x6d07bc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [eax]
add ecx, 0x14
call fcn.004f7c10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x20]
mov ecx, dword [0x6d07e4]
mov edx, dword [eax]
add edx, 0x14
lea ecx, [ecx + 0xc]
call fcn.004f7b70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x51799d
mov edi, 0x36
jmp 0x5188ed
mov dword [ecx + 0x28], 1
mov dword [ecx + 0x2c], 1
mov eax, dword [esi + 0x9c]
imul eax, dword [0x5ce51c]
movss xmm2, dword [0x5b45b8]
cdq
idiv dword [0x5cdf68]
mov ecx, eax
mov eax, dword [esi + 0xa0]
imul eax, dword [0x5ce520]
movd xmm6, ecx
cvtdq2ps xmm6, xmm6
cdq
idiv dword [0x5cdf64]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x8c]
imul eax, dword [0x5ce51c]
cdq
idiv dword [0x5cdf68]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x90]
imul eax, dword [0x5ce520]
cdq
idiv dword [0x5cdf64]
mov dword [ebp - 0x50], eax
movsx eax, word [esi + 0x50]
movd xmm1, eax
movsx eax, word [esi + 0x58]
imul eax, dword [0x5ce51c]
cvtdq2ps xmm1, xmm1
cdq
idiv dword [0x5cdf68]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, word [esi + 0x52]
divss xmm1, xmm0
movss dword [ebp - 0x38], xmm1
movd xmm1, eax
movsx eax, word [esi + 0x5a]
imul eax, dword [0x5ce520]
cvtdq2ps xmm1, xmm1
mov esi, dword [ebp - 0x18]
cdq
idiv dword [0x5cdf64]
movss xmm4, dword [esi + 0x34]
movss dword [ebp - 0x24], xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
movss dword [ebp - 0x60], xmm1
movss xmm1, dword [esi + 0x3c]
addss xmm0, xmm1
comiss xmm0, xmm6
jbe 0x517aa6
movaps xmm4, xmm6
mulss xmm4, xmm2
movss dword [ebp - 0x24], xmm4
movaps xmm1, xmm4
movss dword [esi + 0x34], xmm4
movss dword [esi + 0x3c], xmm4
movss xmm5, dword [esi + 0x38]
movd xmm7, dword [ebp - 0x58]
movaps xmm0, xmm5
movss xmm3, dword [esi + 0x40]
cvtdq2ps xmm7, xmm7
addss xmm0, xmm3
movss dword [ebp - 0x30], xmm5
comiss xmm0, xmm7
jbe 0x517ae7
movaps xmm5, xmm7
movss dword [ebp - 0x24], xmm4
mulss xmm5, xmm2
movss dword [ebp - 0x30], xmm5
movaps xmm3, xmm5
movss dword [esi + 0x38], xmm5
movss dword [esi + 0x40], xmm5
movaps xmm2, xmm6
movaps xmm0, xmm6
subss xmm2, xmm1
movaps xmm1, xmm7
subss xmm1, xmm3
subss xmm0, xmm2
movss dword [ebp - 0x58], xmm2
movss dword [ebp - 0x4c], xmm1
movss dword [ebp - 0x44], xmm0
addss xmm0, xmm4
comiss xmm0, dword [esi + 0x44]
jbe 0x517b1a
movss dword [esi + 0x44], xmm0
movaps xmm0, xmm7
subss xmm0, xmm1
movss dword [ebp - 0x5c], xmm0
addss xmm0, xmm5
comiss xmm0, dword [esi + 0x48]
jbe 0x517b35
movss dword [esi + 0x48], xmm0
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm1, dword [0x6d07c8]
push 0x438
cvtsi2ss xmm0, dword [0x5cdf68]
xorps xmm3, xmm3
xorps xmm2, xmm2
cvtsi2ss xmm3, dword [0x5ce51c]
cvtsi2ss xmm2, dword [0x5ce520]
mulss xmm3, xmm1
mulss xmm2, xmm1
xorps xmm1, xmm1
divss xmm3, xmm0
cvtsi2ss xmm1, dword [ebp - 0x54]
xorps xmm0, xmm0
addss xmm6, xmm3
cvtsi2ss xmm0, dword [0x5cdf64]
divss xmm6, xmm1
divss xmm2, xmm0
movaps xmm0, xmm3
movss dword [ebp - 0x3c], xmm6
divss xmm0, xmm1
movaps xmm4, xmm2
movaps xmm1, xmm7
movss dword [ebp - 0x2c], xmm0
addss xmm1, xmm2
xorps xmm0, xmm0
movss xmm3, dword [ebp - 0x2c]
cvtsi2ss xmm0, dword [ebp - 0x50]
xorps xmm2, xmm2
divss xmm1, xmm0
divss xmm4, xmm0
cvtsi2ss xmm2, ecx
movaps xmm0, xmm6
movss dword [ebp - 0x40], xmm1
subss xmm0, xmm3
movss dword [ebp - 0x28], xmm4
movaps xmm6, xmm4
subss xmm1, xmm6
divss xmm0, xmm2
divss xmm1, xmm7
movaps xmm2, xmm0
mulss xmm0, dword [ebp - 0x58]
mulss xmm2, dword [ebp - 0x24]
addss xmm0, xmm3
addss xmm2, xmm3
movss dword [ebp - 0x14], xmm0
movss dword [ebp - 0x18], xmm2
movaps xmm2, xmm1
mulss xmm1, dword [ebp - 0x4c]
mulss xmm2, xmm5
addss xmm1, xmm6
addss xmm2, xmm6
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm2
call fcn.00555564
movss xmm1, dword [ebp - 0x38]
add esp, 4
movss xmm0, dword [ebp - 0x44]
xor ecx, ecx
movss xmm4, dword [esi + 0x44]
movss xmm5, dword [esi + 0x48]
movss xmm6, dword [ebp - 0x24]
movss xmm7, dword [ebp - 0x30]
mulss xmm7, dword [ebp - 0x60]
mov dword [ebp - 0x48], eax
mulss xmm0, xmm1
mulss xmm6, xmm1
subss xmm4, xmm0
movss dword [ebp - 0x30], xmm7
movss xmm0, dword [ebp - 0x5c]
mulss xmm0, dword [ebp - 0x60]
movss dword [ebp - 0x24], xmm6
movss dword [ebp - 0x34], xmm4
subss xmm5, xmm0
movss dword [ebp - 0x38], xmm5
cmp ecx, 7
ja case.default.0x517c8c
jmp dword [ecx*4 + 0x518914]
movss xmm0, dword [ebp - 0x2c]
xorps xmm4, xmm4
movss xmm1, dword [ebp - 0x28]
xorps xmm5, xmm5
movss xmm2, dword [ebp - 0x18]
movss xmm3, dword [ebp - 0x1c]
jmp 0x517da5
movss xmm0, dword [ebp - 0x18]
movaps xmm4, xmm6
movss xmm1, dword [ebp - 0x28]
xorps xmm5, xmm5
movss xmm2, dword [ebp - 0x14]
movss xmm3, dword [ebp - 0x1c]
movss xmm6, dword [ebp - 0x34]
jmp 0x517da5
movss xmm1, dword [ebp - 0x28]
xorps xmm5, xmm5
movss xmm3, dword [ebp - 0x1c]
jmp 0x517d96
movss xmm0, dword [ebp - 0x2c]
movaps xmm5, xmm7
movss xmm1, dword [ebp - 0x1c]
xorps xmm4, xmm4
movss xmm2, dword [ebp - 0x18]
movss xmm3, dword [ebp - 0x20]
movss xmm7, dword [ebp - 0x38]
jmp 0x517da5
movss xmm0, dword [ebp - 0x18]
movaps xmm4, xmm6
movss xmm1, dword [ebp - 0x1c]
movaps xmm5, xmm7
movss xmm2, dword [ebp - 0x14]
movss xmm3, dword [ebp - 0x20]
movss xmm6, dword [ebp - 0x34]
movss xmm7, dword [ebp - 0x38]
jmp 0x517da5
movss xmm1, dword [ebp - 0x1c]
movaps xmm5, xmm7
movss xmm3, dword [ebp - 0x20]
movss xmm7, dword [ebp - 0x38]
jmp 0x517d96
movss xmm0, dword [ebp - 0x2c]
xorps xmm4, xmm4
movss xmm1, dword [ebp - 0x20]
movss xmm2, dword [ebp - 0x18]
movss xmm3, dword [ebp - 0x40]
movss xmm7, dword [esi + 0x48]
jmp 0x517da5
movss xmm0, dword [ebp - 0x18]
movaps xmm4, xmm6
movss xmm1, dword [ebp - 0x20]
movss xmm2, dword [ebp - 0x14]
movss xmm3, dword [ebp - 0x40]
movss xmm6, dword [ebp - 0x34]
movss xmm7, dword [esi + 0x48]
jmp 0x517da5
movss xmm1, dword [ebp - 0x20]
movss xmm3, dword [ebp - 0x40]
movss xmm7, dword [esi + 0x48]
movss xmm0, dword [ebp - 0x14]
movss xmm2, dword [ebp - 0x3c]
movss xmm6, dword [esi + 0x44]
movss dword [eax], xmm4
inc ecx
movss dword [eax + 4], xmm5
add edi, 6
mov dword [eax + 8], 0
movss dword [eax + 0xc], xmm0
movss dword [eax + 0x10], xmm1
movss dword [eax + 0x14], xmm4
movss dword [eax + 0x18], xmm7
mov dword [eax + 0x1c], 0
movss dword [eax + 0x20], xmm0
movss dword [eax + 0x24], xmm3
movss dword [eax + 0x28], xmm6
movss dword [eax + 0x2c], xmm7
mov dword [eax + 0x30], 0
movss dword [eax + 0x34], xmm2
movss dword [eax + 0x38], xmm3
movss dword [eax + 0x3c], xmm6
movss dword [eax + 0x40], xmm5
mov dword [eax + 0x44], 0
movss dword [eax + 0x48], xmm2
movss dword [eax + 0x4c], xmm1
movss dword [eax + 0x50], xmm4
movss xmm4, dword [ebp - 0x34]
movss dword [eax + 0x54], xmm5
movss xmm5, dword [ebp - 0x38]
mov dword [eax + 0x58], 0
movss dword [eax + 0x5c], xmm0
movss dword [eax + 0x60], xmm1
movss dword [eax + 0x64], xmm6
movss xmm6, dword [ebp - 0x24]
movss dword [eax + 0x68], xmm7
movss xmm7, dword [ebp - 0x30]
mov dword [eax + 0x6c], 0
movss dword [eax + 0x70], xmm2
movss dword [eax + 0x74], xmm3
add eax, 0x78
cmp ecx, 9
jl 0x517c83
push 0x38
call fcn.0055144c
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, eax
call fcn.00517640
push 0x10
mov dword [ebp - 0x14], eax
call fcn.00555564
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [eax], 3
push 0x438
mov dword [eax + 4], 0x36
mov dword [eax + 0xc], 0
call fcn.00555564
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x517ecd
push 0x438
push eax
push ecx
call fcn.00554b70
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x44]
push 0x438
push eax
mov dword [eax + 0x28], ecx
mov ecx, esi
push 0
call fcn.0050fba0
push dword [ebp - 0x48]
call fcn.005550e4
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax + 0x2c], 0
jmp 0x5188ed
cmp dword [ebx + 0x14], edi
jne 0x5182fa
cmp dword [ebx + 0x18], edi
jne 0x5182fa
cmp dword [ebx + 0x1c], edi
jne 0x5182fa
cmp dword [ebx + 0x20], edi
jne 0x5182fa
cmp dword [ebx + 0x24], edi
jne 0x5182fa
cmp dword [ebx + 0x28], edi
jne 0x5182fa
cmp dword [ebx + 0x2c], edi
jne 0x5182fa
cmp dword [ebx + 0x30], edi
jne 0x5182fa
push 0
call fcn.0050fcd0
test eax, eax
jne 0x5182f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x94]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0x98]
mov dword [ecx + 0x2c], eax
mov eax, dword [ecx + 0x30]
cmp eax, 1
je 0x517f8c
cmp eax, 3
je 0x517f8c
xorps xmm0, xmm0
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x40], xmm0
jmp 0x517faf
movss xmm0, dword [ecx + 0x34]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ecx + 0x38]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [ecx + 0x3c]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [ecx + 0x40]
mov ecx, dword [esi + 0x94]
imul ecx, dword [esi + 0x98]
movss dword [ebp - 0x1c], xmm0
mov eax, ecx
shl eax, 4
sub eax, ecx
shl eax, 3
push eax
call fcn.00555564
movd xmm7, dword [0x6d07c8]
xor ecx, ecx
movd xmm1, dword [0x6d07cc]
add esp, 4
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0x5c], xmm7
movaps xmm0, xmm7
movss dword [ebp - 0x30], xmm1
addss xmm0, xmm7
movaps xmm2, xmm1
subss xmm2, xmm0
movss dword [ebp - 0x14], xmm2
test eax, eax
jle 0x51825c
mov eax, dword [esi + 0x94]
mov esi, dword [ebp - 0x38]
xor edx, edx
mov dword [ebp - 0x38], esi
mov esi, dword [ebx + 8]
test eax, eax
jle 0x51824f
movd xmm0, ecx
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x28]
movaps xmm4, xmm2
cvtdq2ps xmm0, xmm0
lea ecx, [ecx + eax*4]
mov eax, dword [esi + 0x94]
addss xmm4, xmm7
mulss xmm0, xmm2
movss dword [ebp - 0x60], xmm0
nop
dec eax
cmp edx, eax
jne 0x51809e
movd xmm0, dword [esi + 0x8c]
movaps xmm1, xmm7
movd xmm3, dword [esi + 0x9c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm3, xmm3
divss xmm1, xmm0
movaps xmm5, xmm3
movss dword [ebp - 0x48], xmm3
addss xmm5, xmm7
movss dword [ebp - 0x38], xmm1
movss xmm1, dword [ebp - 0x30]
divss xmm5, xmm0
jmp 0x5180bd
movaps xmm0, xmm7
movss dword [ebp - 0x48], xmm2
divss xmm0, xmm1
movaps xmm4, xmm2
addss xmm4, xmm7
movss dword [ebp - 0x38], xmm0
movaps xmm5, xmm4
divss xmm5, xmm1
mov eax, dword [esi + 0x98]
dec eax
cmp dword [ebp - 0x2c], eax
jne 0x518104
movd xmm0, dword [esi + 0x90]
movaps xmm1, xmm7
movd xmm3, dword [esi + 0xa0]
movaps xmm4, xmm2
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm3, xmm3
divss xmm1, xmm0
movaps xmm6, xmm3
movss dword [ebp - 0x24], xmm3
addss xmm6, xmm7
movss dword [ebp - 0x34], xmm1
addss xmm4, xmm7
divss xmm6, xmm0
jmp 0x51811c
movaps xmm0, xmm7
movss dword [ebp - 0x24], xmm2
divss xmm0, xmm1
movaps xmm6, xmm4
movss dword [ebp - 0x34], xmm0
divss xmm6, xmm1
movss xmm0, dword [ebp - 0x60]
add edi, 6
movss xmm7, dword [ebp - 0x40]
movss dword [ecx + 8], xmm7
movss xmm7, dword [ebp - 0x38]
movss dword [ecx + 0xc], xmm7
movss xmm7, dword [ebp - 0x34]
movss dword [ecx + 0x10], xmm7
movss xmm7, dword [ebp - 0x20]
movd xmm1, edx
inc edx
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
movaps xmm2, xmm0
mulss xmm0, dword [ebp - 0x44]
addss xmm2, dword [ebp - 0x24]
movaps xmm3, xmm1
mulss xmm1, dword [ebp - 0x4c]
addss xmm3, dword [ebp - 0x48]
movss dword [ecx + 4], xmm0
mulss xmm2, dword [ebp - 0x44]
movss dword [ecx], xmm1
mulss xmm3, dword [ebp - 0x4c]
movss dword [ecx + 0x1c], xmm7
movss xmm7, dword [ebp - 0x38]
movss dword [ecx + 0x20], xmm7
movss xmm7, dword [ebp - 0x3c]
movss dword [ecx + 0x14], xmm1
movss dword [ecx + 0x18], xmm2
movss dword [ecx + 0x24], xmm6
movss dword [ecx + 0x30], xmm7
movss xmm7, dword [ebp - 0x1c]
movss dword [ecx + 0x2c], xmm2
movss dword [ecx + 0x28], xmm3
movss dword [ecx + 0x34], xmm5
movss dword [ecx + 0x38], xmm6
movss dword [ecx + 0x44], xmm7
movss xmm7, dword [ebp - 0x34]
movss dword [ecx + 0x40], xmm0
movss dword [ecx + 0x4c], xmm7
movss dword [ecx + 0x3c], xmm3
movss dword [ecx + 0x48], xmm5
movss dword [ecx + 0x54], xmm0
movss xmm0, dword [ebp - 0x40]
movss dword [ecx + 0x58], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [ecx + 0x5c], xmm0
movaps xmm0, xmm7
movss xmm7, dword [ebp - 0x5c]
movss dword [ecx + 0x60], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [ecx + 0x50], xmm1
movss xmm1, dword [ebp - 0x30]
movss dword [ecx + 0x68], xmm2
movss xmm2, dword [ebp - 0x14]
movss dword [ecx + 0x64], xmm3
movss dword [ecx + 0x6c], xmm0
movss dword [ecx + 0x70], xmm5
movss dword [ecx + 0x74], xmm6
add ecx, 0x78
mov eax, dword [esi + 0x94]
cmp edx, eax
jl 0x518060
mov ecx, dword [esi + 0x98]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp - 0x38]
jl 0x518026
push 0x38
call fcn.0055144c
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, eax
call fcn.00517640
mov edi, eax
mov eax, dword [esi + 0x94]
imul eax, dword [esi + 0x98]
push 0x10
lea esi, [eax + eax*2]
add esi, esi
call fcn.00555564
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [eax + 4], esi
lea esi, [esi + esi*4]
shl esi, 2
push esi
mov dword [eax], 3
mov dword [eax + 0xc], 0
call fcn.00555564
mov edx, dword [ebp - 0x28]
mov ecx, eax
mov eax, dword [ebp - 0x48]
add esp, 4
mov dword [eax + 8], ecx
test edx, edx
je 0x5182cd
push esi
push edx
push ecx
call fcn.00554b70
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push esi
push edi
push 0
mov dword [edi + 0x28], eax
call fcn.0050fba0
push dword [ebp - 0x28]
call fcn.005550e4
add esp, 4
mov dword [edi + 0x2c], 0
mov eax, edi
mov edi, 6
jmp 0x5188ed
mov edx, dword [ebx + 0xc]
imul edx, dword [ebx + 0x10]
cmp dword [ecx + 0x24], 1
mov dword [ebp - 0x1c], edx
jg 0x518311
mov dword [ebp - 0x14], edi
mov esi, ecx
jmp 0x51838a
mov eax, dword [ecx + 0x20]
mov esi, dword [eax + 4]
test esi, esi
jne 0x518322
mov dword [ebp - 0x14], edi
mov esi, ecx
jmp 0x51838a
mov eax, dword [0x6d07bc]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [eax + 4]
add ecx, 0x14
call fcn.004f7c10
mov esi, dword [ebp - 0x18]
mov ecx, dword [0x6d07e4]
mov eax, dword [esi + 0x20]
lea ecx, [ecx + 0xc]
mov edx, dword [eax + 4]
add edx, 0x14
call fcn.004f7b70
mov eax, dword [esi + 0x20]
mov edi, dword [eax + 4]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x518387
mov eax, dword [ebp - 0x1c]
cmp dword [edi + 0x34], eax
je 0x518896
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x579378]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1c]
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 3
push eax
call fcn.00555564
mov ecx, dword [ebx + 0xc]
add esp, 4
mov dword [ebp - 0x24], eax
inc ecx
mov eax, dword [ebx + 0x10]
inc eax
imul ecx, eax
lea eax, [ecx + ecx*4]
shl eax, 2
push eax
call fcn.00555564
add esp, 4
xorps xmm0, xmm0
movss xmm7, dword [ebp - 0x4c]
cvtsi2ss xmm0, dword [ebx + 0x14]
mov dword [ebp - 0x38], eax
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 1
movss xmm1, dword [ebp - 0x44]
xorps xmm3, xmm3
divss xmm0, xmm7
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 0x18]
mov dword [ebp - 0x60], eax
divss xmm0, xmm1
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 0x1c]
mov dword [ebp - 0x54], eax
divss xmm0, xmm7
cvttss2si edi, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 0x20]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebx + 8]
cvtsi2ss xmm3, dword [edi + 0x9c]
divss xmm0, xmm1
movaps xmm6, xmm3
cvttss2si ecx, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 0x24]
divss xmm0, xmm7
cvttss2si esi, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 0x28]
divss xmm0, xmm1
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 0x2c]
mov dword [ebp - 0x50], eax
divss xmm0, xmm7
cvttss2si edx, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebx + 0x30]
divss xmm0, xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [0x6d07c8]
cvttss2si eax, xmm0
xorps xmm0, xmm0
addss xmm6, xmm1
cvtsi2ss xmm0, dword [edi + 0x8c]
movaps xmm2, xmm1
movaps xmm5, xmm1
divss xmm2, xmm0
divss xmm6, xmm0
movss dword [ebp - 0x28], xmm2
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [edi + 0x90]
xorps xmm2, xmm2
cvtsi2ss xmm2, dword [edi + 0xa0]
mov edi, dword [ebp - 0x5c]
divss xmm5, xmm0
movaps xmm4, xmm2
addss xmm4, xmm1
movss dword [ebp - 0x64], xmm5
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x60]
divss xmm4, xmm0
xorps xmm0, xmm0
addss xmm1, xmm0
addss xmm3, xmm0
addss xmm2, xmm0
movss dword [ebp - 0x48], xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, ecx
addss xmm1, xmm0
movss dword [ebp - 0x2c], xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, edi
addss xmm1, xmm0
movss dword [ebp - 0x58], xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x54]
subss xmm6, dword [ebp - 0x28]
addss xmm1, xmm2
subss xmm4, xmm5
movss dword [ebp - 0x4c], xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, esi
mov esi, dword [ebx + 0xc]
addss xmm1, xmm3
movss dword [ebp - 0x34], xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, eax
xor eax, eax
mov dword [ebp - 0x54], eax
addss xmm1, xmm2
xorps xmm2, xmm2
cvtsi2ss xmm2, edx
mov edx, dword [ebx + 0x10]
movss dword [ebp - 0x30], xmm1
xorps xmm1, xmm1
addss xmm2, xmm3
movss xmm3, dword [ebp - 0x34]
cvtsi2ss xmm1, dword [ebp - 0x50]
subss xmm2, dword [ebp - 0x48]
addss xmm1, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, esi
movss dword [ebp - 0x40], xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, edx
divss xmm6, xmm0
movss dword [ebp - 0x68], xmm1
movss dword [ebp - 0x60], xmm6
movss xmm6, dword [ebp - 0x30]
divss xmm2, xmm0
divss xmm4, xmm1
movss dword [ebp - 0x50], xmm2
movss xmm2, dword [ebp - 0x40]
movss dword [ebp - 0x5c], xmm4
movss xmm4, dword [ebp - 0x58]
subss xmm3, xmm4
subss xmm6, dword [ebp - 0x4c]
subss xmm2, dword [ebp - 0x2c]
divss xmm3, xmm0
divss xmm6, xmm0
movss dword [ebp - 0x34], xmm3
movss dword [ebp - 0x30], xmm6
divss xmm2, xmm0
movss dword [ebp - 0x40], xmm2
test esi, esi
js 0x5186db
mov edi, dword [ebp - 0x38]
movss xmm0, dword [ebp - 0x50]
add edi, 8
mov dword [ebp - 0x3c], edi
nop
xorps xmm2, xmm2
xor ecx, ecx
cvtsi2ss xmm2, eax
movaps xmm5, xmm2
mulss xmm5, xmm3
movaps xmm3, xmm2
mulss xmm3, xmm0
addss xmm5, xmm4
movaps xmm4, xmm2
mulss xmm4, xmm6
movaps xmm6, xmm2
mulss xmm6, dword [ebp - 0x40]
addss xmm4, dword [ebp - 0x4c]
addss xmm3, dword [ebp - 0x48]
addss xmm6, dword [ebp - 0x2c]
subss xmm3, xmm5
subss xmm4, xmm6
divss xmm3, xmm1
divss xmm4, xmm1
test edx, edx
js 0x5186b8
mulss xmm2, dword [ebp - 0x60]
lea edi, [esi + 1]
mov eax, dword [ebp - 0x3c]
lea edi, [edi + edi*4]
shl edi, 2
addss xmm2, dword [ebp - 0x28]
movd xmm1, ecx
inc ecx
cvtdq2ps xmm1, xmm1
mov dword [eax], 0x3f000000
movss dword [eax + 4], xmm2
movaps xmm0, xmm1
mulss xmm0, xmm3
addss xmm0, xmm5
mulss xmm0, xmm7
movss dword [eax - 8], xmm0
movaps xmm0, xmm1
mulss xmm1, dword [ebp - 0x5c]
mulss xmm0, xmm4
addss xmm1, dword [ebp - 0x64]
addss xmm0, xmm6
movss dword [eax + 8], xmm1
mulss xmm0, dword [ebp - 0x44]
movss dword [eax - 4], xmm0
add eax, edi
cmp ecx, edx
jle 0x518657
movss xmm1, dword [ebp - 0x68]
movss xmm0, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x3c]
movss xmm3, dword [ebp - 0x34]
inc eax
movss xmm6, dword [ebp - 0x30]
add edi, 0x14
movss xmm4, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], edi
cmp eax, esi
jle 0x5185f0
test esi, esi
jle 0x5187ae
mov edi, dword [ebp - 0x38]
lea eax, [esi + 2]
lea eax, [eax + eax*4]
mov dword [ebp - 0x54], esi
mov ecx, edi
mov dword [ebp - 0x44], ecx
lea eax, [edi + eax*4]
xor edi, edi
mov dword [ebp - 0x40], eax
nop word [eax + eax]
test edx, edx
jle 0x518798
mov ecx, dword [ebp - 0x24]
lea eax, [edi + edi*4]
mov edx, dword [ebp - 0x44]
inc esi
lea ecx, [ecx + eax*4]
lea eax, [esi + esi*4]
mov esi, dword [ebp - 0x40]
shl eax, 2
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x58], eax
movups xmm0, xmmword [edx]
add edi, 6
lea ecx, [ecx + 0x78]
movups xmmword [ecx - 0x78], xmm0
mov eax, dword [edx + 0x10]
mov dword [ecx - 0x68], eax
movups xmm0, xmmword [edx + 0x14]
movups xmmword [ecx - 0x64], xmm0
mov eax, dword [edx + 0x24]
mov dword [ecx - 0x54], eax
movups xmm0, xmmword [esi]
movups xmmword [ecx - 0x50], xmm0
mov eax, dword [esi + 0x10]
mov dword [ecx - 0x40], eax
movups xmm0, xmmword [esi]
movups xmmword [ecx - 0x3c], xmm0
mov eax, dword [esi + 0x10]
mov dword [ecx - 0x2c], eax
movups xmm0, xmmword [esi - 0x14]
movups xmmword [ecx - 0x28], xmm0
mov eax, dword [esi - 4]
add esi, dword [ebp - 0x68]
mov dword [ecx - 0x18], eax
movups xmm0, xmmword [edx]
movups xmmword [ecx - 0x14], xmm0
mov eax, dword [edx + 0x10]
add edx, dword [ebp - 0x68]
sub dword [ebp - 0x58], 1
mov dword [ecx - 4], eax
jne 0x518727
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], edi
add ecx, 0x14
add eax, 0x14
sub dword [ebp - 0x54], 1
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
jne 0x518700
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5188a4
push 0x38
call fcn.0055144c
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x68], edi
mov dword [edi + 0x18], 0
mov dword [edi + 0x20], 0
lea esi, [eax + eax*2]
mov dword [edi + 0x1c], 0
add esi, esi
mov dword [edi + 0x14], edi
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x24], 0
mov dword [edi], vtable.CResourceItem2D.0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
call fcn.00555564
mov dword [ebp - 0x58], eax
add esp, 4
mov dword [eax], 3
mov dword [eax + 4], esi
mov dword [eax + 0xc], 0
lea eax, [esi + esi*4]
shl eax, 2
push eax
mov dword [ebp - 0x54], eax
call fcn.00555564
mov esi, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x58]
add esp, 4
mov dword [eax + 8], ecx
test esi, esi
je 0x518874
push dword [ebp - 0x54]
push esi
push ecx
call fcn.00554b70
mov eax, dword [ebp - 0x58]
add esp, 0xc
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x38]
push edi
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x1c]
push 1
mov dword [edi + 0x2c], esi
mov dword [edi + 0x34], eax
call fcn.0050fba0
jmp 0x5188e7
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x30]
jmp 0x5183ba
mov edx, dword [eax + 0x28]
mov eax, dword [edx]
cmp eax, 3
jne 0x5188cb
mov eax, dword [ebp - 0x1c]
shl eax, 4
sub eax, dword [ebp - 0x1c]
shl eax, 3
push eax
push dword [ebp - 0x24]
push dword [edx + 8]
call fcn.00554b70
add esp, 0xc
jmp 0x5188e7
cmp eax, 2
jne 0x5188d8
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*8]
jmp 0x5188b7
push str.Writing_to_vertex_buffer_other_than_2D_or_Shadow_not_implmented_
push 2
call fcn.004e9620
add esp, 8
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
cmp edx, 7
ja 0x5188fc
call fcn.00519250
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x2c