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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x528
mov eax, dword [0x10163034]
xor eax, esp
mov dword [esp + 0x524], eax
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0xc]
movss xmm2, dword [0x10127230]
push esi
mov esi, dword [ebp + 8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 0x80], ecx
mov cl, byte [ecx + 0x70]
push edi
mov edi, dword [edx + 0x8c]
mov dword [esp + 0x48], esi
addsd xmm0, qword [eax*8 + 0x10091da0]
mov eax, dword [esi + 0x250]
mov dword [esp + 0x78], eax
mov al, byte [esi + 0x248]
mov byte [esp + 0x8b], al
cvtpd2ps xmm3, xmm0
movzx eax, al
mov dword [esp + 0x74], edx
mov dword [esp + 0x4d0], 0
mov dword [esp + 0x4d4], 0xbf060a92
mov dword [esp + 0x4d8], 0
movss xmm0, dword [0x1008f410]
mov dword [esp + 0x4dc], 1
mov dword [esp + 0x4e0], 0x3f060a92
mov dword [esp + 0x4e4], 0
movss dword [esp + 0x8c], xmm3
mov dword [esp + 0x44], edi
mov byte [esp + 0x73], cl
mov dword [esp + 0x28], 0
movss dword [esp + 0x20], xmm0
cmp eax, 8
ja case.default.0x100359e6
jmp dword [eax*4 + 0x10037694]
mov dword [esp + 0x28], 0x101270fc
mov byte [esp + 0x73], 0
imul eax, dword [esp + 0x78], 0x16d0
lea ecx, [esi + 0x350]
mov dword [esp + 0x10], ecx
add eax, ecx
mov dword [esp + 0x60], eax
cmp ecx, eax
je 0x10035bf1
imul eax, edi, 0xb8
lea edx, [ecx + 0xb50]
lea esi, [ecx + 0xb50]
mov dword [esp + 0x24], edx
mov edi, 0xfffffa70
mov ecx, 0xffffffc0
add esi, eax
sub edi, eax
sub ecx, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], ecx
nop dword [eax]
push 0x410
lea eax, [esp + 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x24]
add edi, esi
mov ecx, 0x104
lea esi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x5c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x30]
add esp, 0xc
movups xmmword [eax + esi], xmm0
movups xmmword [eax + esi + 0x10], xmm0
movups xmmword [eax + esi + 0x20], xmm0
movups xmmword [eax + esi + 0x30], xmm0
mov eax, ecx
cmp ecx, esi
je 0x10035ac2
nop
movups xmmword [eax + 0x78], xmm0
movups xmmword [eax + 0x88], xmm0
movups xmmword [eax + 0x98], xmm0
movups xmmword [eax + 0xa8], xmm0
add eax, 0xb8
cmp eax, esi
jne 0x10035aa0
mov eax, dword [esp + 0x10]
add ecx, 0x16d0
mov edi, dword [esp + 0x4c]
add eax, 0x16d0
add esi, 0x16d0
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], esi
cmp eax, dword [esp + 0x60]
jne 0x10035a50
mov esi, dword [esp + 0x48]
movss xmm2, dword [0x10127230]
movss xmm3, dword [esp + 0x8c]
mov edi, dword [esp + 0x44]
mov cl, byte [esi + 0x248]
mov edx, dword [esp + 0x74]
jmp 0x10035bf8
test cl, cl
jne 0x10035b4c
mov eax, dword [esp + 0x84]
movss xmm0, dword [eax + 0x8c]
xorps xmm0, xmm2
movss dword [esp + 0x4d4], xmm0
movss xmm0, dword [eax + 0x90]
xorps xmm0, xmm2
movss dword [esp + 0x4e0], xmm0
movss xmm0, dword [0x100980a8]
lea eax, [esp + 0x4d0]
mov dword [esp + 0x28], eax
movss dword [esp + 0x20], xmm0
jmp case.default.0x100359e6
movss xmm0, dword [0x100980a8]
mov dword [esp + 0x28], 0x10162cb8
movss dword [esp + 0x20], xmm0
jmp case.default.0x100359e6
movss xmm0, dword [0x10127138]
mov dword [esp + 0x28], 0x10162cd4
movss dword [esp + 0x20], xmm0
jmp case.default.0x100359e6
movss xmm0, dword [0x10127134]
mov dword [esp + 0x28], 0x10162d10
movss dword [esp + 0x20], xmm0
jmp case.default.0x100359e6
movss xmm0, dword [0x10127130]
mov dword [esp + 0x28], 0x10162d68
movss dword [esp + 0x20], xmm0
jmp case.default.0x100359e6
movss xmm0, dword [0x1012712c]
mov dword [esp + 0x28], 0x10162dd0
movss dword [esp + 0x20], xmm0
jmp case.default.0x100359e6
mov cl, byte [esp + 0x8b]
mov eax, dword [esi + 0x27c]
and eax, 0xffffffe7
mov dword [esi + 0x27c], eax
cmp cl, 7
je 0x100368f2
cmp cl, 8
je 0x100368f2
cmp byte [esp + 0x73], 0
je 0x10035e88
cmp dword [edx + 0x18], 0x1508
je 0x10035e88
mov eax, dword [edx + 0x6850]
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x284], eax
mov eax, dword [edx + 0x6854]
mov dword [esi + 0x288], eax
test ecx, ecx
je 0x1003722c
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [edx + eax*4 + 0x67cc]
cmp eax, 0xffffffff
je 0x10035c8d
lea ecx, [edi + eax]
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0xe60], eax
jmp 0x10035d06
cmp byte [esp + 0x73], 2
jne 0x10035d0a
mov eax, dword [edx + 0x67c4]
mov ecx, dword [edx + 0x67c8]
cmp eax, ecx
je 0x10035d06
mov esi, dword [esp + 0x18]
cmp esi, dword [eax]
je 0x10035cb3
add eax, 0x14
cmp eax, ecx
jne 0x10035ca8
mov esi, dword [esp + 0x48]
cmp eax, ecx
je 0x10035d06
lea ecx, [eax + 4]
add eax, 0x14
mov dword [esp + 0x18], eax
cmp ecx, eax
je 0x10035d06
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [edx + eax*4 + 0x67cc]
cmp eax, 0xffffffff
je 0x10035cfd
mov esi, dword [esp + 0x80]
add eax, edi
movss xmm0, dword [ecx + 4]
mulss xmm0, dword [esi]
mov esi, dword [esp + 0x48]
movss dword [esi + eax*4 + 0xe60], xmm0
add ecx, 8
cmp ecx, dword [esp + 0x18]
jne 0x10035cd0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add edi, 0x5b4
add eax, 0xc
sub ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
jne 0x10035c63
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
add esi, 8
mov edi, dword [esp + 0x44]
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
nop word [eax + eax]
movss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
lea eax, [esp + 0x4e8]
push eax
push ecx
mov dword [esp], 0
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esi - 4]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
movss xmm0, dword [esi]
mulss xmm1, dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
movss dword [esp], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
movss xmm0, dword [esi - 4]
cvtps2pd xmm0, xmm0
movss dword [esp], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
push ecx
mulss xmm0, dword [esp + 0x24]
xorps xmm0, xmmword [0x10127230]
movss dword [esp], xmm0
call fcn.10002234
add esp, 0x14
xor esi, esi
test edi, edi
je 0x10035e65
mov eax, dword [esp + 0x7c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov edi, dword [eax + esi*4]
test edi, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x44]
je 0x10035e4f
mov eax, dword [esp + 0x30]
add eax, 0xf18
add eax, ecx
add eax, dword [esp + 0x48]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, dword [ebp + 0x24]
movss xmm0, dword [edx + eax]
lea eax, [esp + 0x4f0]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x24]
add eax, 0x134
push eax
call fcn.10001695
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc esi
add ecx, 0xb8
add edx, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
cmp esi, edi
jb 0x10035df5
mov esi, dword [esp + 0x50]
add dword [esp + 0x30], 0x16d0
add esi, 0xc
sub dword [esp + 0x4c], 1
mov dword [esp + 0x50], esi
jne 0x10035d50
jmp 0x1003722c
cmp dword [edx + 0x144], 2
jne 0x100362e3
mov eax, dword [edx + 0x6850]
movss xmm0, dword [ebp + 0x18]
comiss xmm0, dword [0x10127114]
mov dword [esi + 0x284], eax
mov eax, dword [edx + 0x6854]
mov dword [esi + 0x288], eax
jbe 0x10036105
movss xmm1, dword [ebp + 0x14]
lea eax, [esi + 0xd10]
push eax
lea edi, [esi + 0x910]
xorps xmm1, xmm2
movss xmm2, dword [ebp + 0x1c]
push edi
sub esp, 8
mov dword [esp + 0x70], edi
movss dword [ebp + 0x14], xmm1
movss dword [esp + 4], xmm2
movss dword [esp], xmm0
movss xmm0, dword [ebp + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0xb0], xmm0
xorps xmm0, xmm0
fld qword [esp + 0xb0]
cvtss2sd xmm0, xmm1
movsd qword [esp + 0xb0], xmm0
fld qword [esp + 0xb0]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm0, dword [0x101271c0]
maxss xmm0, dword [ebp + 0x10]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
push ecx
fstp dword [esp]
minss xmm0, dword [0x1008f410]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_asin_precise
mov eax, dword [esp + 0x88]
cvtsd2ss xmm0, xmm0
push ecx
movss dword [esp], xmm0
push dword [eax + 0x685c]
call fcn.1000103c
mov eax, dword [esp + 0x9c]
add esp, 0x1c
mov ecx, dword [esp + 0x78]
movss xmm0, dword [eax]
mulss xmm0, dword [esp + 0x20]
movss dword [esi + 0xd18], xmm0
cmp ecx, 1
jbe 0x10035fcb
mov eax, dword [esp + 0x28]
lea edx, [esi + 0x1fe0]
add eax, 0xc
dec ecx
mov dword [esp + 0x10], ecx
cmp dword [eax], 3
je 0x10035fb9
mov esi, edi
mov ecx, 0x104
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x60]
add eax, 0xc
add edx, 0x16d0
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x10035fa1
movss xmm0, dword [ebp + 0x1c]
lea eax, [esp + 0x4e8]
push eax
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp + 0x14]
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp + 0x10]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp + 0xc]
xorps xmm0, xmmword [0x10127230]
movss dword [esp], xmm0
call fcn.10002234
mov ecx, dword [esp + 0x8c]
add esp, 0x14
mov edi, dword [esp + 0x44]
test ecx, ecx
je 0x100362d3
mov edx, ecx
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], edx
cmp dword [ecx], 3
je 0x100360d8
xor esi, esi
test edi, edi
je 0x100360d8
mov eax, dword [esp + 0x7c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov edi, dword [eax + esi*4]
test edi, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x44]
je 0x100360b6
mov eax, dword [esp + 0x30]
add eax, 0xf18
add eax, ecx
add eax, dword [esp + 0x48]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, dword [ebp + 0x24]
movss xmm0, dword [edx + eax]
lea eax, [esp + 0x4f0]
mulss xmm0, dword [esp + 0x28]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x24]
add eax, 0x134
push eax
call fcn.10001695
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc esi
add ecx, 0xb8
add edx, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
cmp esi, edi
jb 0x10036056
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
add ecx, 0xc
add eax, 0x16d0
sub edx, 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], edx
jne 0x10036033
mov eax, dword [esp + 0x48]
or dword [eax + 0x27c], 8
jmp 0x10037234
cmp dword [esp + 0x78], 0
jbe 0x100362cf
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x910]
add eax, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
cmp dword [esi - 8], 3
je 0x100362b1
movss xmm0, dword [ebp + 0x1c]
lea eax, [ecx + 0x400]
push eax
push ecx
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi - 4]
mov dword [esp + 8], 0x7f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [esi]
movss dword [esp], xmm0
push dword [edx + 0x685c]
call fcn.1000103c
mov eax, dword [esp + 0x9c]
add esp, 0x1c
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx + 0x408], eax
movss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [ebp + 0x1c]
lea eax, [esp + 0x4e8]
cvtsd2ss xmm0, xmm0
push eax
push ecx
movss dword [esp], xmm1
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esi - 4]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
movss xmm0, dword [esi]
mulss xmm1, dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
movss dword [esp], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
movss xmm0, dword [esi - 4]
cvtps2pd xmm0, xmm0
movss dword [esp], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
push ecx
mulss xmm0, dword [esp + 0x24]
xorps xmm0, xmmword [0x10127230]
movss dword [esp], xmm0
call fcn.10002234
add esp, 0x14
xor esi, esi
test edi, edi
je 0x100362a1
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov eax, dword [esp + 0x7c]
add edx, 0x608
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
nop
mov edi, dword [eax + esi*4]
test edi, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x44]
je 0x1003628b
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, dword [ebp + 0x24]
movss xmm0, dword [ecx + eax]
lea eax, [esp + 0x4f0]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x24]
add eax, 0x134
push eax
call fcn.10001695
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
inc esi
add edx, 0xb8
add ecx, 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ecx
cmp esi, edi
jb 0x10036240
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x74]
add esi, 0xc
add ecx, 0x16d0
sub eax, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
jne 0x10036131
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
or dword [eax + 0x27c], 8
jmp 0x10037234
movss xmm1, dword [ebp + 0x18]
comiss xmm1, dword [0x10127114]
movss xmm0, dword [edx + 0x148]
jbe 0x1003661b
comiss xmm0, dword [0x1008f40c]
jbe 0x10036371
mulss xmm0, dword [0x10127138]
mov ecx, dword [esp + 0x78]
maxss xmm1, xmm0
movss xmm0, dword [0x10091d4c]
mulss xmm1, xmm3
divss xmm0, xmm1
movss dword [esp + 0x18], xmm0
test ecx, ecx
je 0x10036368
lea edi, [esi + 0x468]
mov esi, ecx
push ecx
mov ecx, edi
movss dword [esp], xmm0
call fcn.10001ab9
movss xmm0, dword [esp + 0x18]
add edi, 0x16d0
sub esi, 1
jne 0x10036338
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 0x27c]
or eax, 0x10
mov dword [esi + 0x27c], eax
cmp dword [edx + 0x144], 1
movss xmm1, dword [ebp + 0x14]
movss xmm2, dword [0x10127230]
xorps xmm1, xmm2
movss dword [ebp + 0x14], xmm1
je 0x100363d0
movss xmm0, dword [ebp + 0x1c]
lea eax, [esp + 0x4e8]
push eax
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp + 0x10]
movss dword [esp + 8], xmm1
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp + 0xc]
xorps xmm0, xmm2
movss dword [esp], xmm0
call fcn.10002234
add esp, 0x14
jmp 0x100364bb
movss xmm0, dword [0x101271c0]
maxss xmm0, dword [ebp + 0x10]
minss xmm0, dword [0x1008f410]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_asin_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x60], xmm0
movss xmm0, dword [ebp + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0xa0], xmm0
movss xmm0, dword [ebp + 0x14]
fld qword [esp + 0xa0]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0xa0], xmm0
fld qword [esp + 0xa0]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm2, dword [0x10127150]
fstp qword [esp + 0xa0]
movsd xmm1, qword [esp + 0xa0]
cvtpd2ps xmm1, xmm1
push ecx
mov eax, esp
lea ecx, [esp + 0x4ec]
mov dword [eax], ecx
cvtps2pd xmm0, xmm1
andps xmm0, xmmword [0x10127210]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm2
jae 0x10036494
mulss xmm0, dword [0x1012714c]
sub esp, 8
minss xmm2, xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_copysignf]
fstp dword [esp + 0x24]
movss xmm1, dword [esp + 0x24]
add esp, 8
movss xmm0, dword [ebp + 0x1c]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.100016cc
add esp, 0x10
mov eax, dword [esp + 0x78]
test eax, eax
je 0x1003722c
lea edx, [esi + 0xf18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], edx
cmp dword [eax], 3
jne 0x10036526
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 0x67ac]
cmp eax, dword [ecx + 0x6850]
jne 0x100365ec
mov eax, dword [ecx + 0x67d8]
cmp eax, 0xffffffff
je 0x100365ec
mov ecx, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0xe60], eax
jmp 0x100365ec
push ecx
mov ecx, esp
lea eax, [edx - 0xb8]
push ecx
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
movss xmm0, dword [eax]
lea eax, [esp + 0x4f0]
mulss xmm0, dword [esp + 0x28]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x80]
add eax, 0x672c
push eax
call fcn.10001695
add esp, 0x10
xor esi, esi
test edi, edi
je 0x100365e8
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
mov edi, dword [eax + esi*4]
test edi, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x44]
je 0x100365d2
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, dword [ebp + 0x24]
movss xmm0, dword [ecx + eax]
lea eax, [esp + 0x4f0]
mulss xmm0, dword [esp + 0x28]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x24]
add eax, 0x134
push eax
call fcn.10001695
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
inc esi
add edx, 0xb8
add ecx, 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ecx
cmp esi, edi
jb 0x10036581
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
add dword [esp + 0x30], 0x16d0
add eax, 0xc
add dword [esp + 0x4c], 0x5b4
sub dword [esp + 0x50], 1
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
jne 0x100364e1
jmp 0x1003722c
comiss xmm0, dword [0x1008f40c]
jbe 0x10036689
movss xmm1, dword [0x10091d4c]
mulss xmm0, xmm3
mov ecx, dword [esp + 0x78]
divss xmm1, xmm0
movss dword [esp + 0x18], xmm1
test ecx, ecx
je 0x10036680
lea edi, [esi + 0x468]
mov esi, ecx
nop word [eax + eax]
push ecx
mov ecx, edi
movss dword [esp], xmm1
call fcn.10001ab9
movss xmm1, dword [esp + 0x18]
add edi, 0x16d0
sub esi, 1
jne 0x10036650
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 0x27c]
or eax, 0x10
mov dword [esi + 0x27c], eax
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x1003722c
movss xmm3, dword [0x10127150]
lea eax, [esi + 0xf18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], 0
lea ecx, [esi + 0xf18]
mov dword [esp + 0x28], eax
cmp dword [eax - 4], 3
jne 0x10036706
mov eax, dword [edx + 0x67ac]
cmp eax, dword [edx + 0x6850]
jne 0x100368c5
mov eax, dword [edx + 0x67d8]
cmp eax, 0xffffffff
je 0x100368c5
mov ecx, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0xe60], eax
jmp 0x100368c1
cmp dword [edx + 0x144], 1
movss xmm1, dword [eax]
movss dword [esp + 0x30], xmm1
jne 0x10036760
cvtps2pd xmm0, xmm1
andps xmm0, xmmword [0x10127210]
cvtpd2ps xmm2, xmm0
comiss xmm2, xmm3
jae 0x10036766
mulss xmm2, dword [0x10127188]
movaps xmm0, xmm3
sub esp, 8
minss xmm0, xmm2
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_copysignf]
mov eax, dword [esp + 0x30]
add esp, 8
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
movss dword [esp + 0x30], xmm1
movss xmm0, dword [eax + 4]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x30]
lea eax, [esp + 0x4e8]
cvtsd2ss xmm0, xmm0
push eax
push ecx
movss dword [esp + 0x18], xmm0
movss xmm0, dword [ebp + 0x1c]
movss dword [esp], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
mov eax, dword [esp + 0x30]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
movss xmm0, dword [eax + 4]
mulss xmm1, dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
movss dword [esp], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
movss dword [esp], xmm1
movss xmm1, dword [esp + 0x40]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
push ecx
mulss xmm0, dword [esp + 0x24]
xorps xmm0, xmmword [0x10127230]
movss dword [esp], xmm0
call fcn.10002234
mov eax, dword [esp + 0x34]
add esp, 0x10
mov ecx, esp
add eax, 0xffffff48
push ecx
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
movss xmm0, dword [eax]
lea eax, [esp + 0x4f0]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x80]
add eax, 0x672c
push eax
call fcn.10001695
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x10], ecx
test edi, edi
je 0x100368b5
mov edx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], edx
nop
mov edi, dword [eax + ecx*4]
test edi, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x44]
je 0x1003689b
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, dword [ebp + 0x24]
movss xmm0, dword [esi + eax]
lea eax, [esp + 0x4f0]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x24]
add eax, 0x134
push eax
call fcn.10001695
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
inc ecx
add edx, 0xb8
add esi, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
cmp ecx, edi
jb 0x10036850
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x74]
movss xmm3, dword [0x10127150]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add ecx, 0x16d0
add dword [esp + 0x4c], 0x5b4
add eax, 0xc
sub dword [esp + 0x50], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
jne 0x100366c4
jmp 0x1003722c
movss xmm1, dword [ebp + 0x18]
comiss xmm1, dword [0x10127114]
movss xmm0, dword [edx + 0x148]
jbe 0x10036bce
comiss xmm0, dword [0x1008f40c]
jbe 0x1003694d
mulss xmm0, dword [0x10127138]
push ecx
lea ecx, [esi + 0x468]
maxss xmm1, xmm0
movss xmm0, dword [0x10091d4c]
mulss xmm1, xmm3
divss xmm0, xmm1
movss dword [esp], xmm0
call fcn.10001ab9
or dword [esi + 0x27c], 0x10
mov edx, dword [esp + 0x74]
cmp dword [edx + 0x144], 1
movss xmm1, dword [ebp + 0x14]
movss xmm2, dword [0x10127230]
xorps xmm1, xmm2
movss dword [ebp + 0x14], xmm1
je 0x1003699f
movss xmm0, dword [ebp + 0x1c]
lea eax, [esp + 0x4e8]
push eax
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp + 0x10]
movss dword [esp + 8], xmm1
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp + 0xc]
xorps xmm0, xmm2
jmp 0x10036aea
movss xmm0, dword [0x101271c0]
maxss xmm0, dword [ebp + 0x10]
minss xmm0, dword [0x1008f410]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_asin_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ebp + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0xa0], xmm0
movss xmm0, dword [ebp + 0x14]
fld qword [esp + 0xa0]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0xa0], xmm0
fld qword [esp + 0xa0]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm1, dword [0x10127150]
fstp qword [esp + 0xa0]
movsd xmm2, qword [esp + 0xa0]
cvtpd2ps xmm2, xmm2
cvtps2pd xmm0, xmm2
movss dword [esp + 0x4c], xmm2
andps xmm0, xmmword [0x10127210]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm1
jae 0x10036a63
mulss xmm0, dword [0x1012714c]
sub esp, 8
minss xmm1, xmm0
movss dword [esp + 4], xmm2
movss dword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_copysignf]
fstp dword [esp + 0x20]
movss xmm2, dword [esp + 0x20]
add esp, 8
movss dword [esp + 0x4c], xmm2
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [ebp + 0x1c]
lea eax, [esp + 0x4e8]
cvtsd2ss xmm0, xmm0
push eax
push ecx
movss dword [esp], xmm1
movss xmm1, dword [esp + 0x54]
movss dword [esp + 0x2c], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
mulss xmm1, dword [esp + 0x30]
movss dword [esp], xmm1
movss xmm1, dword [esp + 0x1c]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
movss dword [esp], xmm1
movss xmm1, dword [esp + 0x5c]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
push ecx
mulss xmm0, dword [esp + 0x38]
xorps xmm0, xmmword [0x10127230]
movss dword [esp], xmm0
call fcn.10002234
add esp, 0x14
push dword [esi + 0x25c]
call fcn.10037f50
mov ecx, esp
push ecx
movss xmm0, dword [eax]
lea eax, [esi + 0xe60]
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
movss dword [esp + 0x20], xmm0
mulss xmm0, dword [eax]
lea eax, [esp + 0x4f0]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x80]
add eax, 0x672c
push eax
call fcn.10001695
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x10], ecx
test edi, edi
je 0x1003722c
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dword [esp + 0x24], edx
add esi, 0xf18
mov edi, dword [eax + ecx*4]
test edi, edi
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x44]
je 0x10036bb3
push ecx
mov eax, esp
push ecx
mov dword [eax], esi
mov eax, dword [ebp + 0x24]
movss xmm0, dword [edx + eax]
lea eax, [esp + 0x4f0]
mulss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x6c]
add eax, 0x134
push eax
call fcn.10001695
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
inc ecx
add edx, 0xc
add esi, 0xb8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
cmp ecx, edi
jb 0x10036b62
jmp 0x10037230
comiss xmm0, dword [0x1008f40c]
jbe 0x10036bf1
push ecx
lea ecx, [esi + 0x468]
mov dword [esp], 0
call fcn.10001ab9
or dword [esi + 0x27c], 0x10
mov eax, dword [esp + 0x84]
mov dword [esp + 0xac], 0
movss xmm0, dword [eax + 0x50]
movss xmm1, dword [eax + 0x4c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [eax + 0x54]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [esp + 0x84]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
comiss xmm1, dword [0x10127114]
jbe 0x10036c86
movss xmm0, dword [0x1008f410]
divss xmm0, xmm1
movaps xmm1, xmm0
mulss xmm1, dword [eax + 0x4c]
movss dword [esp + 0x30], xmm1
movss dword [esp + 0xa0], xmm1
movaps xmm1, xmm0
mulss xmm1, dword [eax + 0x50]
mulss xmm0, dword [eax + 0x54]
movss dword [esp + 0x20], xmm1
movss dword [esp + 0xa4], xmm1
jmp 0x10036ca7
xorps xmm0, xmm0
movss dword [esp + 0x20], xmm0
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0x30], xmm0
movss dword [esp + 0xa0], xmm0
movss xmm1, dword [eax + 0x58]
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0x5c]
mulss xmm0, xmm0
mov dword [esp + 0xbc], 0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [eax + 0x60]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [esp + 0x84]
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x10127114]
jbe 0x10036d23
movss xmm2, dword [0x1008f410]
divss xmm2, xmm0
movaps xmm4, xmm2
movaps xmm6, xmm2
mulss xmm4, dword [eax + 0x58]
mulss xmm6, dword [eax + 0x5c]
mulss xmm2, dword [eax + 0x60]
jmp 0x10036d2c
xorps xmm2, xmm2
xorps xmm6, xmm6
xorps xmm4, xmm4
cmp byte [eax + 0x64], 0
movss dword [esp + 0xb0], xmm4
movss dword [esp + 0x50], xmm4
movss dword [esp + 0xb4], xmm6
movss dword [esp + 0x24], xmm6
movss dword [esp + 0xb8], xmm2
movss dword [esp + 0x10], xmm2
jne 0x10036e0a
mov edx, dword [ebp + 0x30]
lea eax, [esp + 0xa0]
push eax
add edx, 0x50
lea eax, [esp + 0x94]
push edx
push eax
call fcn.10032650
movups xmm0, xmmword [eax]
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xa0]
push edx
push eax
movups xmmword [esp + 0xb8], xmm0
call fcn.10032650
movss xmm1, dword [esp + 0xc0]
add esp, 0x18
movss xmm5, dword [esp + 0xa4]
movss xmm3, dword [esp + 0xa0]
movups xmm0, xmmword [eax]
movss dword [esp + 0x28], xmm1
movups xmmword [esp + 0xb0], xmm0
movss xmm2, dword [esp + 0xb8]
movss xmm6, dword [esp + 0xb4]
movss xmm4, dword [esp + 0xb0]
movss dword [esp + 0x20], xmm5
movss dword [esp + 0x30], xmm3
movss dword [esp + 0x10], xmm2
movss dword [esp + 0x24], xmm6
movss dword [esp + 0x50], xmm4
jmp 0x10036e1c
movss xmm1, dword [esp + 0x28]
movss xmm3, dword [esp + 0x30]
movss xmm5, dword [esp + 0x20]
movaps xmm7, xmm2
movaps xmm0, xmm6
mulss xmm0, xmm1
mulss xmm7, xmm5
mulss xmm6, xmm3
subss xmm7, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm1
movss dword [esp + 0x4c], xmm0
movaps xmm1, xmm7
movaps xmm0, xmm2
mulss xmm1, xmm7
movss xmm2, dword [esp + 0x4c]
mulss xmm0, xmm3
movss dword [esp + 0x18], xmm7
subss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm5
subss xmm6, xmm0
movss dword [esp + 0x4c], xmm2
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [esp + 0xa0], xmm6
addss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm6
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
comiss xmm1, dword [0x10127114]
jbe 0x10036eda
movss xmm0, dword [0x1008f410]
divss xmm0, xmm1
movaps xmm1, xmm0
mulss xmm1, dword [esp + 0x18]
movss dword [esp + 0x60], xmm1
movaps xmm1, xmm0
mulss xmm1, dword [esp + 0x4c]
mulss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x4c], xmm1
jmp 0x10036ee9
xorps xmm0, xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x60], xmm0
push 0x400
lea eax, [esp + 0xc4]
movss dword [esp + 0x1c], xmm0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movss xmm0, dword [esp + 0x6c]
movss xmm1, dword [0x10127230]
movss dword [esp + 0x110], xmm0
movss xmm0, dword [esp + 0x5c]
mov eax, dword [esp + 0x80]
xorps xmm0, xmm1
mov ecx, dword [esi + 0x260]
movss dword [esp + 0x114], xmm0
movss xmm0, dword [esp + 0x3c]
mov eax, dword [eax + 0x24]
xorps xmm0, xmm1
movss dword [esp + 0x118], xmm0
cmp ecx, eax
movss xmm0, dword [esp + 0x58]
xorps xmm0, xmm1
mov dword [esp + 0xcc], 0x3f800000
movss dword [esp + 0x150], xmm0
cmova ecx, eax
movss xmm0, dword [esp + 0x30]
lea eax, [esp + 0xcc]
movss dword [esp + 0x154], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x158], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x190], xmm0
movss xmm0, dword [esp + 0x1c]
xorps xmm0, xmm1
movss dword [esp + 0x194], xmm0
movss xmm0, dword [esp + 0x34]
push ecx
xorps xmm0, xmm1
push eax
movss dword [esp + 0x1a0], xmm0
call fcn.10032880
mov eax, dword [esi + 0x258]
add esp, 0x14
cmp byte [esi + 0x248], 7
push eax
jne 0x10036fe9
call fcn.10037f10
jmp 0x10036fee
call fcn.10037f30
add esp, 4
mov dword [esp + 0x18], eax
push dword [esi + 0x25c]
call fcn.10037f50
xor ecx, ecx
mov dword [esp + 0xa4], eax
add esp, 4
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x78], ecx
jbe 0x1003722c
mov eax, dword [esp + 0x74]
add eax, 0x672c
mov dword [esp + 0x74], eax
lea eax, [esi + 0xf18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
lea esi, [esp + 0xc0]
push 0x40
push 0
movzx edx, byte [ecx + eax]
mov dword [esp + 0x58], edx
movzx eax, byte [edx + 0x10091840]
movzx ecx, byte [eax + 0x1012710c]
movzx eax, byte [eax + 0x10127110]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x2c], eax
shl eax, 6
add esi, eax
lea eax, [esp + 0x4f0]
movss xmm0, dword [ecx + edx*4]
push eax
movss dword [esp + 0x1c], xmm0
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x6c]
xor eax, eax
movss xmm1, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x30], eax
cmp edx, 4
jb 0x1003711d
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4ec]
lea edi, [edx - 4]
shr edi, 2
inc edi
lea eax, [ecx + eax*4]
mov dword [esp + 0x60], edi
mov ecx, dword [esp + 0x50]
add ecx, 0x20
shl edi, 2
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x44]
lea ecx, [esi + ecx*4]
movss xmm0, dword [ecx - 0x80]
lea eax, [eax + 0x10]
mulss xmm0, xmm1
movss dword [eax - 0x14], xmm0
movss xmm0, dword [ecx - 0x40]
mulss xmm0, xmm1
movss dword [eax - 0x10], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ecx]
movss dword [eax - 0xc], xmm0
movss xmm0, dword [ecx + 0x40]
add ecx, 0x100
sub dword [esp + 0x60], 1
mulss xmm0, xmm1
movss dword [eax - 8], xmm0
jne 0x100370d3
mov eax, dword [esp + 0x30]
cmp eax, edx
jae 0x10037158
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x4e8]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x30]
shl eax, 4
add eax, dword [esp + 0x50]
sub edx, dword [esp + 0x30]
lea eax, [esi + eax*4]
movaps xmm0, xmm1
lea eax, [eax + 0x40]
mulss xmm0, dword [eax - 0x40]
movss dword [ecx], xmm0
add ecx, 4
sub edx, 1
jne 0x10037141
mov eax, dword [esp + 0x20]
push ecx
mov ecx, esp
add eax, 0xffffff48
push ecx
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
movss xmm0, dword [eax]
lea eax, [esp + 0x4f0]
movss dword [esp], xmm0
push eax
push dword [esp + 0x80]
call fcn.10001695
add esp, 0x10
xor esi, esi
test edi, edi
je 0x10037211
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x60], edx
nop word [eax + eax]
mov edi, dword [eax + esi*4]
test edi, edi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x44]
je 0x100371fb
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, dword [ebp + 0x24]
movss xmm0, dword [ecx + eax]
lea eax, [esp + 0x4f0]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x30]
add eax, 0x134
push eax
call fcn.10001695
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
inc esi
add edx, 0xb8
add ecx, 0xc
mov dword [esp + 0x60], edx
mov dword [esp + 0x10], ecx
cmp esi, edi
jb 0x100371b0
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x20], 0x16d0
inc ecx
mov dword [esp + 0x4c], ecx
cmp ecx, dword [esp + 0x78]
jb 0x10037031
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
movss xmm2, dword [0x1008f410]
movss xmm0, dword [ecx + 0xa0]
divss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [ecx + 0xa8]
xor ecx, ecx
divss xmm0, dword [esp + 0x8c]
mov dword [eax + 0x280], 0
movss dword [esp + 0x60], xmm0
movss xmm0, dword [edx + 4]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x100372a5
mov eax, dword [esp + 0x48]
mov ecx, 1
mov dword [eax + 0x280], 1
movss xmm0, dword [edx + 8]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
mov eax, dword [esp + 0x48]
jnp 0x100372c0
or ecx, 2
mov dword [eax + 0x280], ecx
movss xmm1, dword [0x10127118]
lea esi, [eax + 0x430]
maxss xmm1, dword [edx + 4]
movaps xmm0, xmm2
add eax, 0x44c
mov dword [esp + 0x10], eax
divss xmm0, xmm1
movss dword [esp + 0xa0], xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1008f40c]
addss xmm0, dword [0x10127184]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
sub esp, 0xc
mov ecx, esi
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0xac]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp], xmm0
push 0
call fcn.100018ca
mov eax, dword [esp + 0x80]
movss xmm1, dword [0x10127118]
movss xmm0, dword [0x1008f410]
maxss xmm1, dword [eax + 8]
divss xmm0, xmm1
movss dword [esp + 0xa0], xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1008f40c]
addss xmm0, dword [0x10127184]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov ecx, dword [esp + 0x10]
sub esp, 0xc
cvtsd2ss xmm0, xmm0
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0xac]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp], xmm0
push 1
call fcn.100018ca
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x48]
cmp eax, 1
jbe 0x1003744a
dec eax
lea edx, [ecx + 0x1b0c]
mov dword [esp + 0x18], eax
nop dword [eax + eax]
sub dword [esp + 0x18], 1
lea edx, [edx + 0x16d0]
mov eax, dword [esi + 8]
mov dword [edx - 0x16d4], eax
mov eax, dword [esi + 0xc]
mov dword [edx - 0x16d0], eax
mov eax, dword [esi + 0x10]
mov dword [edx - 0x16cc], eax
mov eax, dword [esi + 0x14]
mov dword [edx - 0x16c8], eax
mov eax, dword [esi + 0x18]
mov dword [edx - 0x16c4], eax
mov eax, dword [ecx + 0x454]
mov dword [edx - 0x16b8], eax
mov eax, dword [ecx + 0x458]
mov dword [edx - 0x16b4], eax
mov eax, dword [ecx + 0x45c]
mov dword [edx - 0x16b0], eax
mov eax, dword [ecx + 0x460]
mov dword [edx - 0x16ac], eax
mov eax, dword [ecx + 0x464]
mov dword [edx - 0x16a8], eax
jne 0x100373d0
mov edi, dword [esp + 0x44]
test edi, edi
je 0x1003767d
mov eax, dword [esp + 0x84]
lea esi, [ecx + 0xeac]
xor edx, edx
add eax, 0xc0
mov dword [esp + 0x10], edx
mov dword [esp + 0x60], eax
nop
movss xmm0, dword [eax - 8]
divss xmm0, dword [esp + 0x8c]
movss xmm2, dword [0x1008f410]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [eax]
xor eax, eax
divss xmm0, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + edx + 0x28c], 0
movss dword [esp + 0x50], xmm0
movss xmm0, dword [edx + eax + 4]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x100374d5
mov dword [ecx + edx + 0x28c], 1
mov dword [esp + 0x18], 1
mov eax, dword [ebp + 0x24]
movss xmm0, dword [edx + eax + 8]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x100374f5
mov eax, dword [esp + 0x18]
or eax, 2
mov dword [ecx + edx + 0x28c], eax
mov eax, dword [ebp + 0x24]
movaps xmm0, xmm2
movss xmm1, dword [0x10127118]
maxss xmm1, dword [edx + eax + 4]
divss xmm0, xmm1
movss dword [esp + 0xa0], xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1008f40c]
addss xmm0, dword [0x10127184]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
sub esp, 0xc
lea ecx, [esi - 0xc]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0xac]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp], xmm0
push 0
call fcn.100018ca
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x10]
movss xmm1, dword [0x10127118]
movss xmm0, dword [0x1008f410]
maxss xmm1, dword [ecx + eax + 8]
divss xmm0, xmm1
movss dword [esp + 0xa0], xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1008f40c]
addss xmm0, dword [0x10127184]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
sub esp, 0xc
lea ecx, [esi + 0x10]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0xac]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp], xmm0
push 1
call fcn.100018ca
mov eax, dword [esp + 0x78]
cmp eax, 1
jbe 0x10037654
lea ecx, [esi + 0x16d0]
lea edx, [eax - 1]
mov eax, dword [esi - 4]
lea ecx, [ecx + 0x16d0]
mov dword [ecx - 0x16d4], eax
mov eax, dword [esi]
mov dword [ecx - 0x16d0], eax
mov eax, dword [esi + 4]
mov dword [ecx - 0x16cc], eax
mov eax, dword [esi + 8]
mov dword [ecx - 0x16c8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx - 0x16c4], eax
mov eax, dword [esi + 0x18]
mov dword [ecx - 0x16b8], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx - 0x16b4], eax
mov eax, dword [esi + 0x20]
mov dword [ecx - 0x16b0], eax
mov eax, dword [esi + 0x24]
mov dword [ecx - 0x16ac], eax
mov eax, dword [esi + 0x28]
mov dword [ecx - 0x16a8], eax
sub edx, 1
jne 0x100375f0
mov eax, dword [esp + 0x60]
add esi, 0xb8
mov edx, dword [esp + 0x10]
add eax, 0x18
mov ecx, dword [esp + 0x48]
add edx, 0xc
mov dword [esp + 0x60], eax
mov dword [esp + 0x10], edx
sub edi, 1
jne 0x10037470
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
xor ecx, esp
call fcn.10001abe
mov esp, ebp
pop ebp
ret