Function at 0x100ba330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d8
mov eax, dword [0x1020f0c0]
xor eax, esp
mov dword [esp + 0x1d4], eax
push esi
mov esi, dword [0x1022ccc8]
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp byte [esi + 0x1785], 0
je 0x100ba960
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
xor eax, eax
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
test edi, edi
je 0x100ba58a
mov ax, word [0x101f42ec]
xor edx, edx
movq xmm0, qword [str.T_dTX_S4_B]
mov word [esp + 0x38], ax
mov al, byte [0x101f42ee]
movq qword [esp + 0x30], xmm0
mov byte [esp + 0x3a], al
mov dword [esp + 0x10], edx
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [esp + 0x10]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x10]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [esp + edx + 0x30], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xb
jl 0x100ba3c0
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.1003da90
lea ecx, [esp + 0x40]
call fcn.10002350
movaps xmm0, xmmword [esp + 0x60]
xor edx, edx
mov al, byte [0x101f4434]
movaps xmmword [esp + 0x40], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [esp + 0x50], xmm0
movq xmm0, qword [str.YMNZ_V_M_]
movq qword [esp + 0x30], xmm0
mov byte [esp + 0x38], al
mov dword [esp + 0x10], edx
nop word [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [esp + 0x10]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x10]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [esp + edx + 0x30], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 9
jl 0x100ba450
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [0x1022ccd0]
mov dword [esp + 0x14], eax
mov edi, dword [ecx + 0x10]
mov ecx, dword [0x1022ee74]
mov esi, dword [ecx]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x28]
lea ecx, [esi + 8]
call edx
mov ecx, dword [edi]
mov edx, dword [ecx + 0x20]
lea ecx, [esp + 0x80]
push ecx
push eax
mov ecx, edi
call edx
or edi, 0xffffffff
test al, al
mov ecx, edi
cmovne ecx, dword [esp + 0x110]
cmp dword [esp + 0x14], ecx
jne 0x100ba928
mov esi, dword [esp + 0x18]
push ecx
mov dword [esp], 0
mov ecx, esi
push 0x101f237c
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
call eax
mov eax, dword [esi]
fstp st(0)
push ecx
mov dword [esp], 0
mov ecx, esi
push 0x101f2390
mov eax, dword [eax + 0x20]
call eax
mov eax, dword [esi]
fstp st(0)
push ecx
mov dword [esp], 0
mov ecx, esi
push 0x101f238c
mov eax, dword [eax + 0x20]
call eax
mov eax, dword [0x1022ee74]
fstp st(0)
mov ecx, dword [eax]
test ecx, ecx
je 0x100ba928
mov eax, dword [0x1022ccd0]
add ecx, 8
mov esi, dword [eax + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [esi]
lea ecx, [esp + 0x80]
push ecx
push eax
mov ecx, esi
mov edx, dword [edx + 0x20]
call edx
test al, al
cmovne edi, dword [esp + 0x110]
cmp dword [esp + 0x14], edi
jne 0x100ba928
mov eax, dword [0x1022ccc4]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
movss dword [0x10456988], xmm0
jmp 0x100ba928
mov eax, dword [0x1022ccc4]
movss xmm3, dword [esi + 0x1788]
movaps xmm2, xmm3
addss xmm2, dword [0x10456988]
mov eax, dword [eax + 0x10]
movss xmm4, dword [eax]
comiss xmm4, xmm2
ja 0x100ba928
subss xmm2, xmm4
mov eax, dword [0x10456c08]
movss xmm0, dword [eax + 0x54]
andps xmm2, xmmword [0x102017f0]
mulss xmm0, dword [0x10200e0c]
divss xmm2, xmm3
movss dword [esp + 0x18], xmm0
movss xmm0, dword [eax + 0x58]
mulss xmm0, dword [0x10200e0c]
addss xmm2, dword [0x10200d38]
movss dword [esp + 0x10], xmm0
xorps xmm0, xmm0
mulss xmm2, dword [0x10201190]
addss xmm2, xmm0
cvttss2si ecx, xmm2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10520f0c]
divss xmm0, dword [0x10201190]
cvttss2si eax, xmm0
sub ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call fcn.101c8190
movss xmm1, dword [0x10201190]
mov edi, eax
movss xmm0, dword [esi + 0x1774]
mulss xmm0, xmm1
shl edi, 8
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x1778]
mulss xmm0, xmm1
or edi, ecx
shl edi, 8
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x177c]
mulss xmm0, xmm1
or edi, ecx
shl edi, 8
cvttss2si eax, xmm0
or edi, eax
mov eax, dword [esi + 0x1770]
sub eax, 0
je 0x100ba78a
sub eax, 1
jne 0x100ba928
mov ecx, dword [0x1022ccd4]
mov ecx, dword [ecx + 0x50]
call fcn.10163700
mov ecx, dword [0x10456c08]
lea eax, [esp + 0x24]
movss xmm3, dword [0x1020122c]
push 0
push 0
movss xmm2, dword [ecx + 0x1988]
push 0x101f238c
push ecx
mov ecx, dword [ecx + 0x1984]
mov dword [esp], 0xbf800000
push eax
call fcn.1016f860
movss xmm0, dword [esp + 0x24]
movss xmm1, dword [esp + 0x28]
mulss xmm1, dword [0x10200e0c]
movss xmm3, dword [esp + 0x18]
addss xmm0, dword [0x10200e70]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [0x1022ccd4]
cvtdq2ps xmm0, xmm0
mov ecx, dword [eax + 0x50]
mulss xmm0, dword [0x10200e0c]
subss xmm3, xmm0
movss xmm0, dword [esp + 0x10]
subss xmm0, xmm1
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x28], xmm0
test edi, 0xff000000
je 0x100ba780
test ecx, ecx
jne 0x100ba743
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax + 8]
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x34]
push dword [esp + 0x28]
movss xmm2, dword [0x10201078]
push 0
movups xmm0, xmmword [eax + 0x60]
push ecx
mov dword [esp], 0
push 0x101f238d
push 0x101f238c
push edx
push edi
push eax
movups xmmword [esp + 0x54], xmm0
call fcn.1016fa20
call fcn.101637b0
jmp 0x100ba928
movss xmm0, dword [esp + 0x18]
lea eax, [esp + 0x1c]
subss xmm0, dword [0x10200fd8]
mov esi, dword [esp + 0x14]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x18]
subss xmm0, dword [0x10200fd8]
push eax
lea eax, [esp + 0x3c]
push eax
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x28]
subss xmm0, dword [0x10201014]
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [0x10201014]
movss dword [esp + 0x44], xmm0
call fcn.1016cd50
movss xmm3, dword [esp + 0x18]
lea eax, [esp + 0x30]
movaps xmm0, xmm3
addss xmm0, dword [0x10200fe8]
addss xmm3, dword [0x10201018]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x18]
subss xmm0, dword [0x10200fe8]
push eax
lea eax, [esp + 0x28]
movss dword [esp + 0x24], xmm3
push eax
movss dword [esp + 0x2c], xmm3
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [0x10201018]
movss dword [esp + 0x30], xmm0
call fcn.1016cd50
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x30]
movss xmm3, dword [esp + 0x18]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x10200fe8]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
push eax
movss dword [esp + 0x40], xmm0
lea eax, [esp + 0x28]
movss xmm0, dword [esp + 0x1c]
addss xmm0, dword [0x10201018]
push eax
movss dword [esp + 0x2c], xmm3
movss dword [esp + 0x30], xmm0
call fcn.1016cd50
movss xmm0, dword [esp + 0x2c]
lea eax, [esp + 0x30]
movss xmm1, dword [esp + 0x10]
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm1
addss xmm0, dword [0x10200fd8]
addss xmm1, dword [0x10201014]
push ecx
mov dword [esp], 0x3f800000
push edi
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x28], xmm1
push eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.1016cd50
mov eax, dword [esp + 0x54]
cmp eax, 7
jbe 0x100ba960
mov edx, dword [esp + 0x40]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100ba956
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ba974
push ecx
push edx
call fcn.101a201e
add esp, 8
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
xor ecx, esp
call fcn.101a1d25
mov esp, ebp
pop ebp
ret
call fcn.101a7156
int3