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

Disassembly:
sub esp, 0x36c
mov eax, dword [0x1008c00c]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
push ebp
mov ebp, ecx
xorps xmm0, xmm0
push esi
push edi
comiss xmm0, dword [ebp + 0x1c]
jae 0x1004156d
comiss xmm0, dword [ebp + 0x20]
jae 0x1004156d
call fcn.10040ced
mov edi, eax
mov dword [esp + 0x14], edi
mov ebx, dword [edi]
lea esi, [edi + 8]
mov ecx, dword [esi]
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x10040e6a
mov eax, dword [edi + 0x34]
cmp eax, dword [ebp + 0xc]
jge 0x10040ec4
test ecx, ecx
je 0x10040e6a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esi], 0
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x360]
and dword [esp + 0x370], 0
add eax, 0x1388
mov dword [edi + 0x34], eax
imul eax, eax, 0x14
push esi
push 0
push ecx
push ebx
mov dword [esp + 0x370], eax
mov eax, dword [ebx]
mov dword [esp + 0x374], 2
mov dword [esp + 0x378], 1
mov dword [esp + 0x37c], 0x10000
call dword [eax + 0x11c]
test eax, eax
js 0x1004156d
lea esi, [edi + 0xc]
mov ecx, dword [esi]
test ecx, ecx
je 0x10040ee2
mov eax, dword [edi + 0x38]
cmp eax, dword [ebp + 8]
jge 0x10040f36
test ecx, ecx
je 0x10040ee2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esi], 0
mov eax, dword [ebp + 8]
and dword [esp + 0x370], 0
add eax, 0x2710
push 2
pop ecx
mov dword [edi + 0x38], eax
add eax, eax
push esi
mov dword [esp + 0x368], ecx
mov dword [esp + 0x36c], ecx
lea ecx, [esp + 0x364]
push 0
mov dword [esp + 0x368], eax
mov eax, dword [ebx]
push ecx
push ebx
mov dword [esp + 0x37c], 0x10000
call dword [eax + 0x11c]
test eax, eax
js 0x1004156d
and dword [esp + 0x6c], 0
lea edx, [esp + 0x6c]
and dword [esp + 0x70], 0
mov eax, dword [edi + 8]
push edx
push 0
push 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [esi]
lea edx, [esp + 0x70]
push edx
push 0
push 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
and dword [esp + 0x68], 0
cmp dword [ebp + 4], 0
jle 0x10040fcb
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + ebx*4]
imul eax, dword [esi + 0x18], 0x14
push eax
push dword [esi + 0x20]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, eax
push eax
push dword [esi + 0x14]
push dword [esp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
imul eax, dword [esi + 0x18], 0x14
add esp, 0xc
mov edx, dword [esp + 0x6c]
add edx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x6c], edx
inc ebx
mov ecx, dword [esi + 0xc]
lea eax, [eax + ecx*2]
mov dword [esp + 0x70], eax
cmp ebx, dword [ebp + 4]
jl 0x10040f76
mov ebx, dword [esp + 0x18]
lea esi, [edi + 0xc]
mov eax, dword [edi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x68]
push edx
push 0
push 4
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
test eax, eax
jne 0x1004156d
movss xmm6, dword [ebp + 0x14]
lea esi, [esp + 0x28]
movss xmm2, dword [0x10088580]
movaps xmm3, xmm6
addss xmm3, dword [ebp + 0x1c]
movss xmm5, dword [ebp + 0x18]
movaps xmm0, xmm2
movaps xmm4, xmm5
and dword [esp + 0x54], eax
addss xmm4, dword [ebp + 0x20]
mov eax, dword [esp + 0x14]
movaps xmm1, xmm3
mov edi, dword [esp + 0x68]
subss xmm1, xmm6
mov dword [esp + 0x50], 0x3f000000
push 0x10
pop ecx
mov dword [esp + 0x60], 0x3f000000
mov dword [esp + 0x64], 0x3f800000
divss xmm0, xmm1
movss dword [esp + 0x28], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
movaps xmm0, xmm5
subss xmm0, xmm4
divss xmm2, xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
movaps xmm0, xmm3
movss dword [esp + 0x3c], xmm2
addss xmm0, xmm6
subss xmm6, xmm3
divss xmm0, xmm6
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm4
addss xmm0, xmm5
subss xmm4, xmm5
divss xmm0, xmm4
movss dword [esp + 0x5c], xmm0
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0x2dc
xor edi, edi
lea eax, [esp + 0x84]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x80]
push 0x10
pop eax
push ecx
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + pe_nt_image_headers32]
mov eax, dword [ebx]
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x80]
push ecx
push ebx
call dword [eax + 0xf4]
mov eax, dword [ebx]
lea ecx, [esp + 0x300]
push ecx
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebx]
lea ecx, [esp + 0x318]
push ecx
lea ecx, [esp + 0x30c]
push ecx
lea ecx, [esp + 0x30c]
push ecx
push ebx
call dword [eax + 0xe4]
mov eax, dword [ebx]
lea ecx, [esp + 0x31c]
push ecx
lea ecx, [esp + 0x324]
push ecx
push ebx
call dword [eax + 0xe8]
mov eax, dword [ebx]
lea ecx, [esp + 0x324]
push ecx
xor esi, esi
inc esi
push esi
push edi
push ebx
call dword [eax + 0xa0]
mov eax, dword [ebx]
lea ecx, [esp + 0x328]
push ecx
push esi
push edi
push ebx
call dword [eax + 0xa8]
mov eax, dword [ebx]
lea ecx, [esp + 0x32c]
push ecx
push ebx
call dword [eax + 0xa4]
mov eax, dword [ebx]
lea ecx, [esp + 0x330]
push ecx
push ebx
call dword [eax + 0xac]
mov eax, dword [ebx]
lea ecx, [esp + 0x344]
push ecx
push esi
push edi
push ebx
call dword [eax + 0x9c]
mov eax, dword [ebx]
lea ecx, [esp + 0x334]
push ecx
push ebx
call dword [eax + 0xc4]
mov eax, dword [ebx]
lea ecx, [esp + 0x338]
push ecx
push ebx
call dword [eax + 0xc8]
mov eax, dword [ebx]
lea ecx, [esp + 0x348]
push ecx
lea ecx, [esp + 0x358]
push ecx
lea ecx, [esp + 0x344]
push ecx
push ebx
call dword [eax + 0xbc]
mov eax, dword [ebx]
lea ecx, [esp + 0x350]
push ecx
lea ecx, [esp + 0x350]
push ecx
lea ecx, [esp + 0x348]
push ecx
push esi
push edi
push ebx
call dword [eax + 0xb8]
mov eax, dword [ebx]
lea ecx, [esp + 0x358]
push ecx
push ebx
call dword [eax + 0xb4]
mov edx, ebx
mov ecx, ebp
call fcn.10040cfd
mov edx, edi
mov esi, edi
movss xmm0, dword [ebp + 0x14]
mov ecx, edi
movss xmm4, dword [ebp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x1c], xmm4
mov dword [esp + 0x68], edi
cmp dword [ebp + 4], edi
jle 0x1004138e
mov eax, dword [ebp + 0x10]
and dword [esp + 0x10], 0
mov edi, dword [eax + ecx*4]
cmp dword [edi], 0
jle 0x10041370
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov esi, dword [edi + 8]
add esi, eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x100412a4
cmp eax, 0xffffffff
jne 0x10041299
mov edx, ebx
mov ecx, ebp
call fcn.10040cfd
jmp 0x1004133c
push esi
push edi
call eax
pop ecx
pop ecx
jmp 0x1004133c
movss xmm3, dword [esi]
movss xmm2, dword [esi + 8]
subss xmm3, xmm0
movss xmm1, dword [esi + 4]
subss xmm2, xmm0
movss xmm0, dword [esi + 0xc]
subss xmm1, xmm4
subss xmm0, xmm4
comiss xmm3, xmm2
jae 0x10041346
comiss xmm1, xmm0
jae 0x10041346
cvttss2si eax, xmm3
lea ecx, [esp + 0x360]
push ecx
push 1
push ebx
mov dword [esp + 0x36c], eax
cvttss2si eax, xmm1
mov dword [esp + 0x370], eax
cvttss2si eax, xmm2
mov dword [esp + 0x374], eax
cvttss2si eax, xmm0
mov dword [esp + 0x378], eax
mov eax, dword [ebx]
call dword [eax + 0x7c]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x74]
push ecx
push 1
mov dword [esp + 0x7c], eax
mov eax, dword [ebx]
push 0
push ebx
call dword [eax + 0x10]
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x24]
mov ecx, dword [ebx]
push eax
mov eax, dword [esi + 0x1c]
add eax, dword [esp + 0x24]
push eax
push dword [esi + 0x20]
push ebx
call dword [ecx + 0x20]
movss xmm4, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ecx
movss xmm0, dword [esp + 0x18]
add eax, 0x30
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp ecx, dword [edi]
jl 0x1004127a
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esi, dword [edi + 0xc]
add edx, dword [edi + 0x18]
inc ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x68], ecx
cmp ecx, dword [ebp + 4]
jl 0x1004125c
xor edi, edi
mov eax, dword [ebx]
lea ecx, [esp + 0x80]
push ecx
push dword [esp + 0x7c]
push ebx
call dword [eax + 0x7c]
mov eax, dword [ebx]
lea ecx, [esp + 0x180]
push ecx
push dword [esp + 0x80]
push ebx
call dword [eax + 0x78]
push dword [esp + 0x300]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x74]
mov ecx, dword [esp + 0x300]
test ecx, ecx
je 0x100413d3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x318]
mov eax, dword [ebx]
lea ecx, [esp + 0x30c]
push ecx
push dword [esp + 0x30c]
push ebx
call dword [eax + 0x64]
mov ecx, dword [esp + 0x304]
test ecx, ecx
je 0x10041400
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x31c]
mov eax, dword [ebx]
push dword [esp + 0x324]
push ebx
call dword [eax + 0x68]
mov ecx, dword [esp + 0x320]
test ecx, ecx
je 0x10041425
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x324]
push ecx
xor ebp, ebp
inc ebp
push ebp
push edi
push ebx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x324]
test ecx, ecx
je 0x10041449
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x328]
push ecx
push ebp
push edi
push ebx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x328]
test ecx, ecx
je 0x1004146a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x32c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x14]
mov ecx, dword [esp + 0x32c]
test ecx, ecx
je 0x10041488
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x330]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x330]
test ecx, ecx
je 0x100414a6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x334]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x44]
mov ecx, dword [esp + 0x334]
test ecx, ecx
je 0x100414c4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x344]
push ecx
push ebp
push edi
push ebx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x344]
test ecx, ecx
je 0x100414e5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x338]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x48]
push dword [esp + 0x348]
mov eax, dword [ebx]
push dword [esp + 0x358]
push dword [esp + 0x344]
push ebx
call dword [eax + 0x34]
mov ecx, dword [esp + 0x33c]
test ecx, ecx
je 0x1004151e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x350]
push ecx
lea ecx, [esp + 0x350]
push ecx
lea ecx, [esp + 0x348]
push ecx
push ebp
push edi
push ebx
call dword [eax + 0x30]
mov ecx, dword [esp + 0x340]
test ecx, ecx
je 0x1004154f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x358]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x358]
test ecx, ecx
je 0x1004156d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006dac1
add esp, 0x36c
ret