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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
mov esi, dword [ebp]
mov edi, dword [ebp + 0xd8]
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x18]
and eax, 0x40
test byte [edi + 0x74], 0x10
je 0x1016eded
test eax, eax
je 0x1016ecd4
push 6
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], 0
xorps xmm0, xmm0
push eax
push ebp
movups xmmword [esp + 0x3c], xmm0
movq qword [esp + 0x4c], xmm0
call fcn.1016ddf0
add esp, 0xc
test eax, eax
jne 0x1016ee9e
mov edx, dword [esp + 0x34]
movzx eax, dx
mov ecx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
cmp dword [ebx + 0x10], edx
jbe 0x1016ea9e
mov ax, word [ebx + 4]
mov ecx, dword [ebx + 0x10]
add ax, cx
movzx ecx, ax
jmp 0x1016eac1
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0xc]
cmp eax, edx
movzx eax, word [ebx + 4]
jbe 0x1016eabb
add eax, dword [ebx + 0x10]
movzx ecx, ax
jmp 0x1016eac1
sub eax, dword [esp + 0x18]
add ecx, eax
movzx eax, cx
mov dword [esp + 0x14], ecx
movzx ecx, word [edi + 0x60]
sub ecx, edx
mov dword [esp + 0x18], eax
add ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + 0x14]
shr eax, 2
cmp ecx, eax
jbe 0x1016eb11
push ebp
call fcn.101ae1d0
add esp, 4
test eax, eax
jne 0x1016ee9e
mov eax, dword [edi]
push 0
push dword [esp + 0x78]
push ebx
push 0
push eax
mov eax, dword [eax + 0x134]
call eax
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
add eax, 4
push ecx
push eax
push dword [esi + 0x1c]
mov dword [esp + 0x34], eax
call fcn.100dc800
add esp, 0xc
test eax, eax
jne 0x1016ee9e
mov ecx, dword [esp + 0x10]
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], 0x40
mov word [ecx], ax
add ecx, 2
mov esi, dword [ebx + 0x10]
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x6c], ecx
cmova esi, dword [esp + 0x34]
push esi
push dword [esp + 0x34]
push ecx
call fcn.102207f0
add dword [esp + 0x78], esi
add esp, 0xc
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x6c]
cmp eax, ecx
jbe 0x1016eba2
sub eax, ecx
push eax
push 0
push esi
call fcn.10220d70
mov eax, dword [ebx + 0x10]
add esp, 0xc
sub eax, dword [esp + 0x34]
add esi, eax
push dword [ebx + 4]
push dword [ebx]
push esi
call fcn.102207f0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov ecx, dword [ebx + 0xc]
add esi, dword [ebx + 4]
mov ebx, dword [esp + 0x34]
lea edx, [ecx + eax]
cmp edx, ebx
jae 0x1016ebdb
sub ebx, ecx
sub ebx, eax
mov eax, dword [esp + 0x30]
push ebx
add eax, edx
push eax
push esi
call fcn.102207f0
add esp, 0xc
add esi, ebx
mov ebx, dword [esp + 0x14]
mov word [esi], bx
mov esi, dword [esp + 0x24]
cmp dword [esi + 0x10], 0
je 0x1016ec38
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esi + 0x10]
push esi
call eax
add esp, 0xc
test eax, eax
je 0x1016ec38
push dword [esp + 0x10]
push dword [esp + 0x20]
call fcn.100dc7e0
push dword [esp + 0x7c]
push esi
call fcn.10101dd0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
movzx eax, word [edi + 0x5c]
mov dword [esp + 0x5c], eax
movzx eax, word [edi + 0x5e]
add eax, 4
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push 0
push eax
push ebp
call fcn.10173010
push dword [esp + 0x1c]
mov esi, eax
push dword [esp + 0x2c]
call fcn.100dc7e0
add esp, 0x14
test esi, esi
je 0x1016ec88
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push 1
cmp ecx, eax
jbe 0x1016ec9d
push 3
sub ecx, eax
push ecx
jmp 0x1016eca2
push 4
sub eax, ecx
push eax
push ebp
call fcn.1016fd10
add esp, 0x10
test eax, eax
jne 0x1016ee9e
mov ax, word [edi + 0x60]
sub ax, word [esp + 0x20]
add ax, bx
movzx eax, ax
mov word [edi + 0x60], ax
xor eax, eax
mov word [edi + 0x5e], bx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
movzx eax, word [edi + 0x5e]
movzx ecx, word [edi + 0x60]
sub ecx, eax
mov eax, dword [edi + 0x4c]
add ecx, dword [ebx + 4]
mov eax, dword [eax + 0x14]
shr eax, 2
cmp ecx, eax
ja 0x1016eae1
cmp dword [esi + 0x10], 0
je 0x1016ed6f
mov eax, dword [esi + 0x2e0]
test eax, 0x400
je 0x1016ed0c
mov ecx, 0x26
jmp 0x1016ed18
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 6
mov edx, dword [edi + 8]
movzx eax, word [edi + 0x18]
lea eax, [edx + eax*2]
movzx ecx, word [eax + ecx + 0x1c]
movzx eax, word [edi + 0x5c]
add ecx, edx
add eax, 3
add eax, ecx
mov dword [esp + 0x4c], eax
movzx eax, word [edi + 0x5e]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x10]
push ebx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x1016ed6f
push str.Existing_data_sorts_differently_from_put_data
push dword [esp + 0x20]
call fcn.100d0920
add esp, 8
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push dword [esi + 0x1c]
call fcn.101ae7d0
add esp, 0x14
test eax, eax
jne 0x1016ee9e
movzx eax, word [edi + 0x5c]
mov dword [esp + 0x40], eax
movzx eax, word [edi + 0x5e]
add eax, 4
mov dword [esp + 0x3c], eax
movzx ecx, word [edi + 0x5e]
mov eax, dword [ebx + 4]
push 1
cmp eax, ecx
jbe 0x1016edb7
push 3
sub eax, ecx
push eax
jmp 0x1016edbc
push 4
sub ecx, eax
push ecx
push ebp
call fcn.1016fd10
add esp, 0x10
test eax, eax
jne 0x1016ee9e
mov ax, word [edi + 0x60]
sub ax, word [edi + 0x5e]
add ax, word [ebx + 4]
movzx eax, ax
mov word [edi + 0x60], ax
mov ax, word [ebx + 4]
mov word [edi + 0x5e], ax
jmp 0x1016ee8e
test eax, eax
jne 0x1016ee92
movups xmm0, xmmword [ebx]
mov eax, dword [ebx + 0x18]
or eax, 0x40
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x48], eax
movq xmm0, qword [ebx + 0x10]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x40], 0
mov ecx, dword [esi + 0x2e0]
mov edx, ecx
and ecx, 1
and edx, 0x400
je 0x1016ee34
mov eax, 0x26
jmp 0x1016ee3d
mov eax, ecx
neg eax
sbb eax, eax
and eax, 6
mov esi, dword [edi + 8]
movzx ebx, word [edi + 0x18]
lea edi, [esi + ebx*2]
movzx eax, word [eax + edi + 0x1c]
cmp byte [eax + esi], 3
jne 0x1016ee58
mov eax, dword [eax + esi + 8]
jmp 0x1016ee8a
test edx, edx
je 0x1016ee68
movzx eax, word [esi + ebx*2 + 0x40]
mov ecx, 0x26
jmp 0x1016ee80
mov eax, ecx
neg eax
sbb eax, eax
and eax, 6
neg ecx
sbb ecx, ecx
and ecx, 6
lea eax, [eax + ebx*2]
movzx eax, word [eax + esi + 0x1a]
sub ax, word [ecx + edi + 0x1c]
dec ax
movzx eax, ax
mov dword [esp + 0x3c], eax
lea ebx, [esp + 0x30]
push 0
push ebx
push ebp
call fcn.10173010
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret