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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1008c00c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edx
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x1c]
jae 0x1004323e
comiss xmm0, dword [edi + 0x20]
jae 0x1004323e
call fcn.10040ced
mov esi, eax
xor edx, edx
inc dword [esi + 0x28]
mov eax, dword [esi + 0x28]
div dword [esi + 0x24]
mov ebx, edx
xor edx, edx
shl ebx, 4
add ebx, dword [esi + 0x20]
mov dword [esp + 0x1c], ebx
lea ebp, [ebx + 4]
mov ecx, dword [ebp]
test ecx, ecx
je 0x10042e96
mov eax, dword [ebx + 0xc]
cmp eax, dword [edi + 0xc]
jge 0x10042f45
test ecx, ecx
je 0x10042e96
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor edx, edx
mov dword [ebp], edx
xor ecx, ecx
mov eax, dword [edi + 0xc]
inc ecx
push ebp
push 0x100866d0
push edx
add eax, 0x1388
mov dword [esp + 0x4c], edx
mov dword [ebx + 0xc], eax
xorps xmm0, xmm0
mov dword [esp + 0x50], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x98], edx
imul eax, eax, 0x14
mov dword [esp + 0x78], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x94], edx
lea edx, [esp + 0x64]
push 0xac3
mov dword [esp + 0x68], ecx
mov dword [esp + 0x80], ecx
mov word [esp + 0x84], cx
mov word [esp + 0x86], cx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], ecx
mov ecx, dword [esi]
push edx
push 0
movlpd qword [esp + 0x60], xmm0
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 2
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x80], eax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x6c]
test eax, eax
js 0x1004323e
mov ecx, dword [ebx]
test ecx, ecx
je 0x10042f5d
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 8]
jge 0x1004300c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor edx, edx
mov dword [esp + 0x3c], 2
push ebx
mov dword [ebx], edx
xor ecx, ecx
mov eax, dword [edi + 8]
inc ecx
push 0x100866d0
push edx
add eax, 0x2710
mov dword [esp + 0x4c], edx
mov dword [ebx + 8], eax
xorps xmm0, xmm0
mov dword [esp + 0x50], edx
add eax, eax
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 + 0x68], ecx
mov dword [esp + 0x80], ecx
mov word [esp + 0x84], cx
mov word [esp + 0x86], cx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], ecx
mov ecx, dword [esi]
push edx
push 0
movlpd qword [esp + 0x60], xmm0
lea edx, [esp + 0x54]
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x80], eax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x6c]
test eax, eax
js 0x1004323e
xorps xmm0, xmm0
lea edx, [esp + 0x34]
movlpd qword [esp + 0x50], xmm0
mov ecx, dword [ebp]
push edx
lea edx, [esp + 0x54]
push edx
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x20]
test eax, eax
jne 0x1004323e
mov ecx, dword [ebx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x54]
push edx
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x20]
test eax, eax
jne 0x1004323e
mov eax, dword [esp + 0x34]
xor ebp, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
cmp dword [edi + 4], ebp
jle 0x100430b3
mov ebx, dword [esp + 0x20]
mov eax, dword [edi + 0x10]
mov esi, dword [eax + ebp*4]
imul eax, dword [esi + 0x18], 0x14
push eax
push dword [esi + 0x20]
push ebx
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 + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
imul eax, dword [esi + 0x18], 0x14
add esp, 0xc
mov ecx, dword [esp + 0x14]
add ebx, eax
mov eax, dword [esi + 0xc]
inc ebp
lea ecx, [ecx + eax*2]
mov dword [esp + 0x14], ecx
cmp ebp, dword [edi + 4]
jl 0x10043069
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x50]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebx]
lea edx, [esp + 0x50]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.10042c22
movss xmm0, dword [edi + 0x14]
xor edx, edx
movss xmm4, dword [edi + 0x18]
xor esi, esi
pop ecx
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x24], xmm4
mov dword [esp + 0x20], ecx
cmp dword [edi + 4], ecx
jle 0x1004323e
mov eax, dword [edi + 0x10]
and dword [esp + 0x14], 0
mov ebp, dword [eax + ecx*4]
cmp dword [ebp], 0
jle 0x10043222
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x30], eax
mov esi, dword [ebp + 8]
add esi, eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10043159
cmp eax, 0xffffffff
jne 0x10043152
mov edx, dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.10042c22
pop ecx
jmp 0x100431ed
push esi
push ebp
call eax
pop ecx
jmp 0x1004314c
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 0x100431f7
comiss xmm1, xmm0
jae 0x100431f7
cvttss2si eax, xmm3
mov ecx, dword [esp + 0x18]
push dword [esi + 0x14]
mov dword [esp + 0x40], eax
push dword [esi + 0x10]
cvttss2si eax, xmm1
push 1
push ecx
mov dword [esp + 0x50], eax
cvttss2si eax, xmm2
mov dword [esp + 0x54], eax
cvttss2si eax, xmm0
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
push 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0x58]
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
push 0
push eax
mov eax, dword [esi + 0x1c]
add eax, dword [esp + 0x30]
mov ecx, dword [edx]
push eax
push 1
push dword [esi + 0x20]
push edx
call dword [ecx + 0x34]
movss xmm4, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc ecx
movss xmm0, dword [esp + 0x1c]
add eax, 0x30
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
cmp ecx, dword [ebp]
jl 0x1004312f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
add esi, dword [ebp + 0xc]
add edx, dword [ebp + 0x18]
inc ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
cmp ecx, dword [edi + 4]
jl 0x10043110
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006dac1
add esp, 0x8c
ret