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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ecx + 0x1c]
xorps xmm2, xmm2
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
mov dword [esp + 0xc], ecx
push edi
movss xmm1, dword [eax]
mov eax, 0x100
comiss xmm1, xmm2
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x30], 1
movss dword [esp + 0x44], xmm2
jbe 0x100300d8
mov edi, dword [esi + 4]
mov edx, dword [esi + 0x1c]
cwde
movzx ecx, byte [edx + edi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 7]
movzx edx, byte [edx + edi + 5]
add cx, ax
movsx esi, cx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x1c]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
movd xmm0, eax
jmp 0x100300f8
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 4]
xorps xmm1, xmmword [0x1009d930]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
cvtdq2ps xmm0, xmm0
movzx edi, byte [edx + 0x14]
mov eax, edi
mov dword [ecx + 0x1c], edi
movzx esi, byte [edx + 0x15]
movss xmm4, dword [0x1009d6d0]
divss xmm1, xmm0
shr eax, 0x1f
mov dword [ecx + 0x20], esi
movd xmm0, edi
movaps xmm3, xmm4
cvtdq2pd xmm0, xmm0
movss dword [esp + 0x28], xmm1
addsd xmm0, qword [eax*8 + 0x1009d900]
mov eax, esi
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm3, xmm0
movd xmm0, esi
movss dword [esp + 0x64], xmm3
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x1009d900]
mov eax, 1
cvtpd2ps xmm0, xmm0
divss xmm4, xmm0
movss dword [esp + 0x6c], xmm4
test edi, edi
je 0x10030193
movd xmm0, edi
sub eax, edi
cvtdq2ps xmm0, xmm0
movd xmm2, eax
mov eax, 1
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [esp + 0x40], xmm2
test esi, esi
je 0x100301bb
movd xmm0, esi
sub eax, esi
cvtdq2ps xmm0, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [esp + 0x44], xmm2
xor edi, edi
mov dword [esp + 0x48], edi
cmp dword [edx + 0xc], edi
jle 0x100306b9
mov esi, dword [ebp + 0x10]
add esi, 0xc
mov dword [esp + 0x18], esi
mov eax, dword [esi + 8]
test eax, eax
je 0x10030646
cmp dword [esi - 8], 0
je 0x10030646
cmp dword [esi - 4], 0
je 0x10030646
lea eax, [edi*8]
sub eax, edi
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 8]
test eax, eax
jne 0x10030215
mov edx, dword [edx + 4]
add edx, edi
jmp 0x10030218
mov edx, dword [eax + edi*4]
mov ecx, dword [esp + 0xc]
call fcn.1002aa60
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x14]
add dword [esi], ecx
add dword [esi + 4], ecx
sub dword [esi - 8], ecx
sub dword [esi - 4], ecx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x1c]
movzx ecx, byte [eax + edx + 0x22]
movzx eax, byte [eax + edx + 0x23]
mov edx, dword [esp + 0x14]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
cmp edx, ecx
jge 0x1003027e
mov ecx, dword [esp + 0xc]
lea edx, [eax + edx*4]
mov eax, 0x100
cwde
add edx, dword [ecx + 4]
movzx ecx, byte [edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x100302a9
mov esi, dword [esp + 0xc]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
movzx ecx, byte [edx + eax - 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x18]
movzx eax, byte [edx + eax - 3]
add cx, ax
mov edx, dword [esp + 0x14]
movzx eax, cx
cwde
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edi + 0x20]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0
addsd xmm0, qword [eax*8 + 0x1009d900]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x1009d900]
cvtpd2ps xmm2, xmm0
mulss xmm2, xmm1
call fcn.1002d370
mov ecx, edi
mov edx, dword [esp + 0x30]
mov edi, dword [esi + 4]
mov eax, dword [ecx + 0x10]
imul edi, eax
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x1c]
mov edx, dword [edx - 4]
add edi, dword [esi]
mov esi, dword [esi - 8]
add edi, dword [ecx + 0x24]
sub esi, eax
mov ecx, dword [ecx + 0x20]
inc esi
movd xmm0, eax
sub edx, ecx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
inc edx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x2c]
addsd xmm0, qword [eax*8 + 0x1009d900]
lea eax, [esp + 0x54]
push eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x44]
movss dword [esp + 0x40], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1009d900]
mov ecx, dword [esp + 0x28]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x44]
movss dword [esp + 0x3c], xmm0
call fcn.1002d280
movss xmm3, dword [esp + 0x3c]
add esp, 0x1c
movss xmm2, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x50]
push 0
push 0
push eax
lea eax, [esp + 0x60]
push eax
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
call fcn.1002d370
mov ecx, dword [esp + 0x50]
add esp, 0x18
mov eax, dword [esp + 0x34]
test esi, esi
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
je 0x100304f1
test ecx, ecx
je 0x100304f1
movss xmm0, dword [esp + 0x20]
lea eax, [esp + 0x34]
minss xmm0, dword [esp + 0x24]
movss xmm2, dword [0x1009d690]
mov edx, dword [esp + 0x4c]
push ecx
push eax
divss xmm2, xmm0
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.1002f700
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100304f1
movss xmm0, dword [esp + 0x20]
lea ecx, [esp + 0x78]
mov esi, dword [esp + 0x38]
sub esp, 8
mov edx, edi
push dword [esp + 0x58]
push dword [esp + 0x60]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esp], xmm0
push dword [esp + 0x54]
push esi
call fcn.1002ed90
add esp, 0x28
test esi, esi
je 0x100304cc
mov eax, dword [0x100a93dc]
test eax, eax
je 0x100304cc
dec dword [eax + 0xb0]
push esi
call fcn.100542ab
mov eax, dword [0x100a93dc]
add esp, 4
test eax, eax
je 0x100304e4
dec dword [eax + 0xb0]
push edi
call fcn.100542ab
mov esi, dword [esp + 0x40]
add esp, 4
test esi, esi
je 0x10030504
mov eax, dword [0x100a93dc]
test eax, eax
je 0x10030504
dec dword [eax + 0xb0]
push esi
call fcn.100542ab
mov edi, dword [esp + 0x14]
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x1c]
cmp ecx, 1
jbe 0x1003053b
mov eax, dword [edi + 0x10]
mov edx, dword [esi - 8]
push ecx
mov ecx, dword [esi + 4]
imul ecx, eax
push eax
push dword [esi - 4]
add ecx, dword [esi]
add ecx, dword [edi + 0x24]
call fcn.1002fb90
add esp, 0xc
mov ecx, dword [edi + 0x20]
cmp ecx, 1
jbe 0x10030561
mov eax, dword [edi + 0x10]
mov edx, dword [esi - 8]
push ecx
mov ecx, dword [esi + 4]
imul ecx, eax
push eax
push dword [esi - 4]
add ecx, dword [esi]
add ecx, dword [edi + 0x24]
call fcn.1002fdf0
add esp, 0xc
mov edi, dword [esp + 0x58]
movzx eax, word [esi]
mov edx, dword [esp + 0x2c]
movd xmm0, dword [esp + 0x5c]
movss xmm1, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
cvtdq2ps xmm0, xmm0
mov word [edx + edi*4], ax
movzx eax, word [esi + 4]
mov word [edx + edi*4 + 2], ax
movzx eax, word [esi]
add ax, word [esi - 8]
mulss xmm0, xmm1
mov word [edx + edi*4 + 4], ax
movzx eax, word [esi + 4]
add ax, word [esi - 4]
movss dword [edx + edi*4 + 0x10], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov word [edx + edi*4 + 6], ax
mov eax, dword [esp + 0x2c]
mulss xmm0, dword [esp + 0x64]
addss xmm0, dword [esp + 0x40]
movss dword [edx + edi*4 + 8], xmm0
mov edx, dword [esp + 0x68]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x6c]
addss xmm0, dword [esp + 0x44]
movss dword [eax + edi*4 + 0xc], xmm0
mov eax, dword [esi - 8]
add eax, ecx
mov ecx, dword [esp + 0x2c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x64]
addss xmm0, dword [esp + 0x40]
movss dword [ecx + edi*4 + 0x14], xmm0
mov eax, dword [esi - 4]
add eax, edx
cmp dword [esp + 0x14], 0
mov edx, dword [ebp + 8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x6c]
addss xmm0, dword [esp + 0x44]
movss dword [ecx + edi*4 + 0x18], xmm0
mov edi, dword [esp + 0x48]
mov eax, edi
cmovne eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x100306a4
cmp dword [ecx + 0x18], 0
jne 0x1003069c
test eax, eax
je 0x1003069c
cmp dword [esi - 8], 0
jne 0x1003069c
cmp dword [esi - 4], 0
jne 0x1003069c
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x1003069c
mov edx, dword [edx + 0x10]
lea ecx, [edi*8]
shl eax, 3
sub eax, dword [esp + 0x1c]
sub ecx, edi
movups xmm0, xmmword [edx + eax*4]
movups xmmword [edx + ecx*4], xmm0
movq xmm0, qword [edx + eax*4 + 0x10]
movq qword [edx + ecx*4 + 0x10], xmm0
mov eax, dword [edx + eax*4 + 0x18]
mov dword [edx + ecx*4 + 0x18], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
jmp 0x100306a4
mov dword [esp + 0x30], 0
inc edi
add esi, 0x18
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], edi
cmp edi, dword [edx + 0xc]
jl 0x100301d4
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x74]
pop edi
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x2c]
pop esi
mov esp, ebp
pop ebp
ret