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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10104040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
mov eax, dword [esi]
sub eax, 0
je 0x10048eda
sub eax, 1
je 0x10048ec9
xor ecx, ecx
xor edx, edx
jmp 0x10048ee6
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
add ecx, 0x8c
add edx, 0x14
jmp 0x10048ee6
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
add ecx, 0x64
add edx, 0xa
add ecx, dword [edi + 4]
xorps xmm5, xmm5
add edx, dword [edi + 8]
cmp byte [edi + 0x84], 0
push ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
je 0x10049169
mov eax, dword [edi + 0xc]
lea ebx, [eax - 0x14]
add ebx, ecx
mov dword [ebp - 0x20], ebx
lea ebx, [edx + 0xa]
lea edx, [eax - 0x19]
add edx, ecx
mov ecx, dword [ebp - 0xc]
add ecx, 5
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + 0x8a]
add edx, eax
add eax, 0xffffffee
add eax, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add eax, 0xa6
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
cmp dword [0x10126d48], eax
jle 0x100490d3
mov ecx, dword [0x10126d4c]
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jle 0x100490d3
add eax, 0xba
cmp dword [0x10126d48], eax
jge 0x100490d3
lea eax, [edx + 0xba]
cmp ecx, eax
jge 0x100490d3
cmp byte [0x10126154], 0
je 0x100490d3
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], edi
mov edx, dword [0x10126d48]
mov ecx, dword [0x10126d4c]
cmp edx, eax
jle 0x10048fe4
cmp ecx, ebx
jle 0x10048fe4
add eax, 0x96
cmp edx, eax
jge 0x10048fe4
lea eax, [ebx + 0x96]
cmp ecx, eax
jge 0x10048fe4
sub ecx, dword [ebp - 0xc]
mov eax, dword [0x1011e3ac]
imul ecx, ecx, 0x96
sub ecx, dword [edi + 0xc]
sub ecx, dword [ebp - 0x10]
add ecx, edx
mov eax, dword [eax + ecx*4 - 0x1720]
mov dword [edi + 0xa4], eax
jmp 0x100490d3
movss xmm6, dword [0x100f6bd4]
lea esi, [ebx - 5]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x24]
xorps xmm4, xmm4
xorps xmm3, xmm3
cvtsi2ss xmm0, ebx
cvtsi2ss xmm4, ecx
subss xmm0, xmm6
cvtsi2ss xmm3, edx
subss xmm4, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x14]
maxss xmm4, xmm5
subss xmm0, xmm6
minss xmm4, dword [0x100f6cc8]
subss xmm3, xmm0
mulss xmm4, dword [0x100f6b04]
maxss xmm3, xmm5
minss xmm3, dword [0x100f6cc8]
mulss xmm3, dword [0x100f6b04]
cmp edx, eax
jle 0x1004908d
cmp ecx, esi
jle 0x1004908d
add eax, 0xa
cmp edx, eax
jge 0x1004908d
lea eax, [esi + 0xa0]
cmp ecx, eax
jge 0x1004908d
cmp byte [0x10126154], 0
je 0x1004908d
comiss xmm5, xmm4
ja 0x10049074
movss xmm0, xmm4
jmp 0x10049078
movss xmm0, xmm5
minss xmm0, xmm6
movss dword [edi + 0x7c], xmm0
mov ecx, dword [0x10126d4c]
mov edx, dword [0x10126d48]
mov ebx, dword [ebp - 0x14]
add ebx, 0xfffffffb
cmp edx, ebx
jle 0x100490d3
mov esi, dword [ebp - 0x18]
cmp ecx, esi
jle 0x100490d3
lea eax, [ebx + 0xa0]
cmp edx, eax
jge 0x100490d3
lea eax, [esi + 0xa]
cmp ecx, eax
jge 0x100490d3
cmp byte [0x10126154], 0
je 0x100490d3
comiss xmm5, xmm3
ja 0x100490c3
movss xmm0, xmm3
jmp 0x100490c7
movss xmm0, xmm5
minss xmm0, xmm6
movss dword [edi + 0x80], xmm0
cmp byte [0x10126214], 0
je 0x10049149
cmp byte [0x10126688], 0
je 0x100490f2
mov eax, dword [edi + 0xa4]
mov dword [0x101042d0], eax
jmp 0x10049149
cmp byte [0x10126694], 0
je 0x10049149
mov eax, dword [0x101042d0]
mov dword [edi + 0xa4], eax
movzx eax, byte [0x101042d2]
movzx esi, byte [0x101042d3]
push eax
mov eax, dword [0x101042d0]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
call fcn.10048710
movss dword [edi + 0x7c], xmm0
add esp, 4
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100f6af4]
movss dword [edi + 0x80], xmm0
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x3c], edi
je 0x10049161
mov eax, dword [edi + 0x70]
mov byte [edi + 0x84], 0
test eax, eax
je 0x10049161
call eax
lea esi, [edi + 0xa4]
jmp 0x100491ac
movzx eax, byte [edi + 0xa6]
lea esi, [edi + 0xa4]
movzx edx, byte [edi + 0xa5]
movzx ecx, byte [esi]
push eax
call fcn.10048710
movzx eax, byte [edi + 0xa7]
add esp, 4
movss dword [edi + 0x7c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100f6af4]
movss dword [edi + 0x80], xmm0
cmp byte [edi + 0x78], 0
je 0x100491f4
movss xmm0, dword [edi + 0x80]
lea eax, [ebp - 0x24]
mulss xmm0, dword [0x100f6ce4]
lea edx, [ebp - 0x20]
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x437f0000
push eax
mov dword [ebp - 0x20], 0
movss dword [ebp - 0x1c], xmm0
call fcn.10036e10
add esp, 8
cvttss2si eax, dword [eax]
jmp 0x100491f6
or al, 0xff
mov byte [edi + 0xa7], al
mov edx, 0xff
movzx ebx, byte [esi]
mov ecx, dword [sym.imp.ucrtbased.dll__CrtDbgReport]
cmp edx, ebx
mov eax, dword [sym.imp.ucrtbased.dll__invalid_parameter]
mov dword [ebp - 0x18], 0
setl byte [ebp - 5]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jge 0x1004926a
jle 0x1004926a
push str.invalid_comparator
push 0x100ec5a8
push 0
push 0x5e1
push 0x100ed348
push 2
call ecx
add esp, 0x18
cmp eax, 1
jne 0x10049249
int3
push 0
push 0x5e1
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexutility
push 0x100ec6dc
push str._invalid_comparator_
call dword [ebp - 0xc]
add esp, 0x14
mov edx, 0xff
movzx eax, byte [edi + 0xa5]
cmp byte [ebp - 5], 0
mov dword [ebp - 0x14], eax
movzx eax, dl
movzx ecx, bl
cmovne ecx, eax
mov eax, esi
mov byte [eax], cl
mov eax, 0xff
mov ebx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x28], 0
setl dl
mov byte [ebp - 5], dl
jge 0x100492e8
jle 0x100492e8
push str.invalid_comparator
push 0x100ec5a8
push 0
push 0x5e1
push 0x100ed348
push 2
call dword [ebp - 0x10]
add esp, 0x18
cmp eax, 1
jne 0x100492c4
int3
push 0
push 0x5e1
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexutility
push 0x100ec6dc
push str._invalid_comparator_
call dword [ebp - 0xc]
mov dl, byte [ebp - 5]
add esp, 0x14
mov eax, 0xff
test dl, dl
movzx ecx, bl
movzx ebx, byte [edi + 0xa6]
movzx eax, al
cmovne ecx, eax
mov dword [ebp - 0x2c], 0
mov eax, 0xff
mov byte [edi + 0xa5], cl
cmp eax, ebx
setl dl
mov byte [ebp - 5], dl
jge 0x10049360
jle 0x10049360
push str.invalid_comparator
push 0x100ec5a8
push 0
push 0x5e1
push 0x100ed348
push 2
call dword [ebp - 0x10]
add esp, 0x18
cmp eax, 1
jne 0x1004933c
int3
push 0
push 0x5e1
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexutility
push 0x100ec6dc
push str._invalid_comparator_
call dword [ebp - 0xc]
mov dl, byte [ebp - 5]
add esp, 0x14
mov eax, 0xff
test dl, dl
movzx eax, al
mov ecx, ebx
cmovne ecx, eax
mov byte [edi + 0xa6], cl
mov ecx, dword [edi + 0xa8]
pop ebx
test ecx, ecx
je 0x1004937f
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100dd730
mov esp, ebp
pop ebp
ret