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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x1c]
jae 0x1001548d
comiss xmm0, dword [edi + 0x20]
jae 0x1001548d
call fcn.10013246
mov esi, eax
xor edx, edx
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
div dword [esi + 0x24]
mov ebx, edx
shl ebx, 4
add ebx, dword [esi + 0x28]
mov dword [esp + 0x2c], ebx
lea edx, [ebx + 4]
mov ecx, dword [edx]
lea eax, [ebx + 0xc]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x100150b5
mov eax, dword [eax]
cmp eax, dword [edi + 0xc]
jge 0x10015182
jmp 0x100150b9
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x100150c6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea edx, [ebx + 4]
and dword [edx], 0
xorps xmm0, xmm0
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x20]
add eax, 0x1388
push edx
push 0x100af3d4
push 0
mov dword [ecx], eax
lea edx, [esp + 0x64]
imul eax, eax, 0x14
xor ecx, ecx
push 0xac3
push edx
push 0
movlpd qword [esp + 0x68], xmm0
lea edx, [esp + 0x5c]
mov dword [esp + 0x80], eax
xor eax, eax
inc eax
mov dword [esp + 0x5c], 2
mov dword [esp + 0x88], eax
mov word [esp + 0x8c], ax
mov word [esp + 0x8e], ax
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esi]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x70], 1
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x6c]
test eax, eax
js 0x1001548d
mov ecx, dword [ebx]
test ecx, ecx
je 0x1001519e
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 8]
jge 0x1001524d
test ecx, ecx
je 0x1001519e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor edx, edx
mov dword [esp + 0x44], 2
mov dword [ebx], edx
xor ecx, ecx
mov eax, dword [edi + 8]
inc ecx
push ebx
push 0x100af3d4
add eax, 0x2710
mov dword [esp + 0x50], edx
push edx
mov dword [ebx + 8], eax
xorps xmm0, xmm0
add eax, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x94], edx
lea edx, [esp + 0x64]
push 0xac3
mov dword [esp + 0x78], eax
mov eax, dword [esi]
xor esi, esi
push edx
push esi
movlpd qword [esp + 0x68], xmm0
lea edx, [esp + 0x5c]
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x70], ecx
mov dword [esp + 0x88], ecx
mov word [esp + 0x8c], cx
mov word [esp + 0x8e], cx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x6c]
test eax, eax
js 0x1001548d
jmp 0x1001524f
xor esi, esi
xorps xmm0, xmm0
lea edx, [esp + 0x34]
movlpd qword [esp + 0x3c], xmm0
mov eax, dword [ebx + 4]
push edx
lea edx, [esp + 0x40]
push edx
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x1001548d
mov eax, dword [ebx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x40]
push edx
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x1001548d
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], esi
cmp dword [edi + 4], esi
jle 0x100152fe
mov ebx, esi
mov eax, dword [edi + 0x10]
mov esi, dword [eax + ebx*4]
imul eax, dword [esi + 0x18], 0x14
push eax
push dword [esi + 0x20]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, eax
push eax
push dword [esi + 0x14]
push dword [esp + 0x1c]
call sub.msvcrt.dll_memcpy
imul eax, dword [esi + 0x18], 0x14
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0xc]
inc ebx
mov dword [esp + 0x20], ecx
lea edx, [edx + eax*2]
mov dword [esp + 0x14], edx
cmp ebx, dword [edi + 4]
jl 0x100152aa
mov ebx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword [ebx + 4]
lea edx, [esp + 0x3c]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebx]
lea edx, [esp + 0x3c]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, edi
push ebx
call fcn.10014ece
movss xmm0, dword [edi + 0x14]
mov edx, esi
movss xmm4, dword [edi + 0x18]
pop ecx
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x14], xmm4
mov dword [esp + 0x30], ecx
cmp dword [edi + 4], ecx
jle 0x1001548d
mov eax, dword [edi + 0x10]
and dword [esp + 0x24], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
cmp dword [eax], 0
jle 0x10015471
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov esi, dword [eax + 8]
add esi, ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1001539f
cmp ecx, 0xffffffff
jne 0x10015398
mov edx, dword [esp + 0x10]
mov ecx, edi
push ebx
call fcn.10014ece
pop ecx
jmp 0x10015439
push esi
push eax
call ecx
pop ecx
jmp 0x10015392
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 0x10015443
comiss xmm1, xmm0
jae 0x10015443
cvttss2si eax, xmm3
mov ecx, dword [esp + 0x10]
xor edx, edx
inc edx
push dword [esi + 0x14]
mov dword [esp + 0x48], eax
push dword [esi + 0x10]
cvttss2si eax, xmm1
push edx
push ecx
mov dword [esp + 0x58], eax
cvttss2si eax, xmm2
mov dword [esp + 0x5c], eax
cvttss2si eax, xmm0
mov dword [esp + 0x60], eax
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
xor edx, edx
inc edx
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x58]
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push 0
push eax
mov eax, dword [esi + 0x1c]
add eax, dword [esp + 0x24]
mov ecx, dword [edx]
push eax
xor eax, eax
inc eax
push eax
push dword [esi + 0x20]
push edx
call dword [ecx + 0x34]
movss xmm4, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
inc esi
movss xmm0, dword [esp + 0x2c]
add ecx, 0x30
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
cmp esi, dword [eax]
jl 0x10015375
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esi, dword [eax + 0xc]
add edx, dword [eax + 0x18]
inc ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], ecx
cmp ecx, dword [edi + 4]
jl 0x10015357
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret