Function at 0x10107e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x10277534]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10278234
mov dword [ebp - 0x4c], ecx
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x101084b8
push esi
cmp byte [0x1019a005], al
je 0x1010848b
cmp byte [0x1019a006], al
je 0x1010848b
mov eax, dword [0x1027850c]
test eax, eax
jne 0x10107e9e
xor al, al
jmp 0x10107ea1
mov al, byte [eax + 0x7c]
movss xmm0, dword [0x10170724]
mov byte [0x1019a00e], al
mov eax, dword [0x10278494]
push ebx
divss xmm0, dword [eax + 0x20]
cvttss2si eax, xmm0
mov dword [0x1019a01c], eax
mov eax, dword [0x102861ec]
test al, 1
jne 0x10107fbe
or eax, 1
cmp byte [0x102771a0], 0
mov dword [0x102861ec], eax
je 0x10107f3a
cmp byte [0x102771a1], 0
jne 0x10107f82
mov byte [0x102771a1], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x102771c4]
xor ebx, dword [0x102771c0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x20], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x102771a2], al
inc esi
cmp esi, 0x19
jb 0x10107ef6
jmp 0x10107f82
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x102771c4]
xor ebx, dword [0x102771c0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x20], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x102771a2], al
inc esi
cmp esi, 0x19
jb 0x10107f40
lea eax, [ebp - 0x2d]
push eax
push 0x102771ba
push 0x102771a2
lea ecx, [ebp - 0x1c]
call fcn.1004e6f0
mov ecx, dword [0x102784cc]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
cmovae edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
lea ecx, [ebp - 0x1c]
mov dword [0x102861e8], eax
call fcn.10044080
mov ecx, dword [0x102861e8]
test ecx, ecx
je 0x10107fdb
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
add eax, 0xfffffffe
xor edx, edx
test eax, eax
cmovg edx, eax
jmp 0x10107fe0
mov edx, 0xe
cmp byte [0x1019a00e], 0
mov dword [0x1019a03c], edx
je 0x1010801a
test edx, edx
mov dword [ebp - 0x28], 6
mov eax, 0x1019a03c
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
cmovns ecx, eax
cmp edx, 6
lea eax, [ebp - 0x28]
cmovle eax, ecx
mov eax, dword [eax]
mov dword [0x1019a03c], eax
mov ecx, dword [0x10278594]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x28], eax
call dword [ebp - 0x28]
mov esi, dword [0x1019a084]
fstp dword [0x1019a05c]
test esi, esi
je 0x1010836d
mov eax, dword [0x102786bc]
test al, 1
jne 0x1010805e
mov ecx, dword [0x10278694]
or eax, 1
mov dword [0x102786bc], eax
mov dword [0x102786b8], ecx
jmp 0x10108064
mov ecx, dword [0x102786b8]
mov eax, dword [0x1019a080]
push edi
mov edi, dword [0x10278758]
mov al, byte [ecx + eax]
mov ecx, dword [0x10278784]
mov byte [0x1019a008], al
test cl, 1
jne 0x10108096
or ecx, 1
mov edx, edi
mov dword [0x10278784], ecx
mov dword [0x10278780], edx
jmp 0x1010809c
mov edx, dword [0x10278780]
movsx eax, word [edx + esi]
add eax, 0xfffffff7
cmp eax, 0x1f
ja case.0x101080af.10
movzx eax, byte [eax + 0x101084d4]
jmp dword [eax*4 + 0x101084cc]
mov al, 1
jmp 0x101080bc
xor al, al
mov byte [0x1019a009], al
test cl, 1
jne 0x101080d7
or ecx, 1
mov edx, edi
mov dword [0x10278784], ecx
mov dword [0x10278780], edx
movzx eax, word [edx + esi]
mov ecx, esi
add eax, 0xffffffd5
cmp ax, 5
setbe byte [0x1019a00a]
call fcn.1005ebf0
mov ecx, eax
test ecx, ecx
jne 0x101080fa
xor al, al
jmp 0x1010813d
mov eax, dword [0x10278784]
test al, 1
jne 0x10108117
or eax, 1
mov dword [0x10278784], eax
mov eax, dword [0x10278758]
mov dword [0x10278780], eax
jmp 0x1010811c
mov eax, dword [0x10278780]
cmp word [esi + eax], 0x1f
je 0x1010813b
mov eax, dword [ecx + 0xc8]
test eax, eax
je 0x1010813b
cmp eax, 7
jl 0x10108137
cmp eax, 0x10
jle 0x1010813b
xor al, al
jmp 0x1010813d
mov al, 1
cmp byte [0x1026a720], 0
mov byte [0x1019a00b], al
jne 0x1010818e
push 0
call fcn.100da8e0
mov edx, eax
mov dword [ebp - 0x20], 0x21
add esp, 4
mov dword [ebp - 0x34], edx
test edx, edx
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x34]
mov dword [0x1026aa34], edx
lea ecx, [ebp - 0x28]
cmovns ecx, eax
cmp edx, 0x21
lea eax, [ebp - 0x20]
cmovle eax, ecx
mov eax, dword [eax]
mov dword [0x10269874], eax
mov al, byte [0x1019a00b]
test al, al
jne 0x101082bf
cmp byte [0x1026a878], al
je 0x101082bf
mov ecx, dword [0x102610b0]
push 0x101072a0
call fcn.101069e0
mov ebx, dword [0x102610b0]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
lea esi, [ebx + 0xc0]
push esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x101084be
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 0x98]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ebp - 0x48], xmm0
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x48]
movq xmm0, qword [eax + 0x120]
movq qword [ebp - 0x2c], xmm0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
nop
cmp dword [ebp - 0x3c], eax
ja 0x1010823e
jb 0x10108223
cmp dword [ebp - 0x40], ecx
jae 0x1010823e
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ecx + 0x78]
call fcn.100715f0
mov eax, dword [eax]
cmp dword [eax + 0x10], 1
je 0x1010824a
push esi
push edi
call sub.MSVCP140.dll__Cnd_wait
add esp, 8
jmp 0x10108200
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x78]
call fcn.100715f0
lea ecx, [ebp - 0x78]
mov eax, dword [eax]
add eax, 0x18
push eax
call fcn.1007ee70
push esi
call sub.MSVCP140.dll__Mtx_unlock
mov eax, dword [ebp - 0x54]
add esp, 4
and eax, 0xfffffffc
je 0x101084c4
add eax, 4
push 0x10277dac
push eax
call sub.VCRUNTIME140.dll___std_type_info_compare
add esp, 8
test eax, eax
jne 0x101084c4
lea eax, [ebp - 0x78]
movups xmm0, xmmword [eax]
mov ecx, eax
movups xmmword [ebp - 0x48], xmm0
call fcn.10106c50
movups xmm0, xmmword [ebp - 0x48]
psrldq xmm0, 4
movd eax, xmm0
test eax, eax
setg byte [0x1019a00c]
jmp 0x101082c6
mov byte [0x1019a00c], 0
cmp dword [0x1019a084], 0
pop edi
je 0x1010836d
test byte [0x1026a9c4], 1
je 0x1010836d
cmp byte [0x1019a008], 0
je 0x1010836d
cmp byte [0x1019a009], 0
je 0x1010836d
mov ecx, dword [0x10278498]
push 0xff000000
mov eax, dword [ecx]
call dword [eax + 0x38]
mov eax, dword [0x10279340]
mov ecx, dword [0x10278498]
movss xmm0, dword [eax + 0x1c]
mulss xmm0, dword [0x101706f8]
mov esi, dword [ecx]
cvttss2si eax, dword [eax + 0x18]
cvttss2si edx, xmm0
push edx
push eax
push edx
push 0
call dword [esi + 0x4c]
mov ecx, dword [0x10278498]
push 0xff000000
mov eax, dword [ecx]
call dword [eax + 0x38]
mov eax, dword [0x10279340]
mov ecx, dword [0x10278498]
movss xmm0, dword [eax + 0x18]
mulss xmm0, dword [0x101706f8]
mov edx, dword [ecx]
cvttss2si eax, dword [eax + 0x1c]
cvttss2si esi, xmm0
push eax
push esi
push 0
push esi
call dword [edx + 0x4c]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0xc]
lea esi, [ecx + 0xc]
pop ebx
cmp eax, dword [esi + 4]
je 0x1010837f
mov dword [esi + 4], eax
mov eax, dword [0x1027c738]
cmp byte [eax + 0x10], 0
je 0x1010849c
lea edx, [eax + 4]
push 1
lea eax, [ecx + 4]
mov ecx, dword [0x10279340]
push eax
push edx
call fcn.10070d80
test al, al
je 0x1010849c
movsd xmm0, qword [0x1017b0d0]
xorps xmm1, xmm1
movss dword [ebp - 0x34], xmm1
movsd qword [ebp - 0x2c], xmm0
movaps xmm0, xmm1
call fcn.1010c550
mov eax, dword [0x1027c738]
movaps xmm2, xmm0
mov ecx, dword [0x10279340]
movaps xmm1, xmm2
shufps xmm1, xmm2, 1
mulss xmm1, dword [0x1017075c]
mov dword [ebp - 0x50], 0
mulss xmm2, dword [0x1017075c]
mov dword [ebp - 0x4c], 0
addss xmm1, dword [eax + 8]
movss xmm0, dword [eax + 0xc]
addss xmm2, dword [eax + 4]
push 1
lea eax, [ebp - 0x50]
movss dword [ebp - 0x3c], xmm0
push eax
lea eax, [ebp - 0x44]
movss dword [ebp - 0x40], xmm1
push eax
movss dword [ebp - 0x44], xmm2
call fcn.10070d80
test al, al
je 0x10108465
movss xmm0, dword [ebp - 0x50]
mov edx, dword [esi + 4]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 0x20], xmm0
cmp edx, dword [esi + 8]
je 0x10108459
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edx], eax
mov dword [edx + 4], ecx
add dword [esi + 4], 8
jmp 0x10108465
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push edx
call fcn.10078ba0
movss xmm1, dword [ebp - 0x34]
addss xmm1, dword [0x1017c190]
movsd xmm2, qword [ebp - 0x2c]
cvtps2pd xmm0, xmm1
movss dword [ebp - 0x34], xmm1
comisd xmm2, xmm0
jae 0x101083c0
jmp 0x1010849c
mov dword [0x1019a008], 0
mov byte [0x1019a00c], 0
push 0x10278234
call sub.MSVCP140.dll__Mtx_unlock
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.1010c522
mov esp, ebp
pop ebp
ret
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
call fcn.1007f000
nop dword [eax]
mov dh, 0x80
adc byte [eax], dl
mov edx, 0x101080
add dword [eax], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ecx], al
add ah, cl
int3