Function at 0x1012cd90
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x101f80c0]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [0x10213408]
push esi
push edi
cmp byte [eax + 0x354f], 0
je 0x1012d535
mov eax, dword [0x10213410]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x44]
push edx
mov ecx, dword [eax + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb0]
call eax
mov eax, dword [0x103d7bec]
xor edx, edx
push str.Background
mov eax, dword [eax + 0x1d40]
mov ecx, dword [eax]
call fcn.10148d70
mov ecx, dword [0x101e2b14]
mov esi, eax
mov dword [esp + 0x68], ecx
mov cx, word [0x101e2b18]
mov word [esp + 0x6c], cx
test ch, ch
je 0x1012ce48
xor edx, edx
mov dword [esp + 0x20], edx
mov eax, 0x3521cfb3
mul edx
mov eax, dword [esp + 0x20]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x20]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x34
xor byte [esp + edx + 0x68], cl
inc edx
mov dword [esp + 0x20], edx
cmp edx, 6
jl 0x1012ce15
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
lea ecx, [esp + 0x68]
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x84], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012ce70
sub ecx, edx
lea eax, [esp + 0x68]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.10026920
cmp dword [esp + 0x84], 0xf
lea ecx, [esp + 0x70]
push 0xc02bb
cmova ecx, dword [esp + 0x74]
xor edx, edx
call fcn.1014e540
mov ecx, dword [esp + 0x84]
cmp ecx, 0xf
jbe 0x1012cede
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012ced4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012d549
push ecx
push edx
call fcn.1018dda2
add esp, 8
mov ecx, dword [0x10213414]
mov ecx, dword [ecx + 0x40]
call fcn.10150c90
mov eax, dword [0x103d7bec]
sub esp, 0x18
mov edx, esp
mov eax, dword [eax + 0x1bdc]
movss xmm0, dword [eax + 0xc]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [eax + 0x10]
mov eax, dword [0x10213408]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [eax + 0x37c4]
divss xmm0, dword [0x101ea528]
mov ecx, dword [eax + 0x37b8]
movss dword [esp + 0x50], xmm0
movups xmm0, xmmword [eax + 0x37a8]
movzx eax, byte [eax + 0x37bc]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], ecx
mov byte [edx + 0x14], al
call fcn.100b37a0
mov edx, dword [0x10213408]
sub esp, 0x18
movaps xmm0, xmmword [0x101eab70]
mov ecx, esp
movups xmmword [esp + 0x88], xmm0
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x37b8]
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [edx + 0x37a8]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
movzx eax, byte [edx + 0x37bc]
xorps xmm0, xmm0
mov byte [ecx + 0x14], al
call fcn.100b3920
mov ecx, dword [0x10213408]
sub esp, 0x18
mov edx, esp
mov edi, eax
movups xmm1, xmmword [ecx + 0x37a8]
mov eax, dword [ecx + 0x37b8]
movss xmm0, dword [ecx + 0x37b4]
mulss xmm0, dword [0x101ea26c]
movups xmmword [edx], xmm1
mov dword [edx + 0x10], eax
movzx eax, byte [ecx + 0x37bc]
mov byte [edx + 0x14], al
call fcn.100b3920
mov dword [esp + 0x68], eax
sub esp, 0x18
mov eax, dword [0x10213408]
mov edx, esp
movups xmm0, xmmword [eax + 0x37a8]
mov ecx, dword [eax + 0x37b8]
movzx eax, byte [eax + 0x37bc]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], ecx
mov byte [edx + 0x14], al
call fcn.100b37a0
cmp dword [0x10213430], 0xf
mov ecx, dword [0x103d7bec]
mov dword [esp + 0x48], eax
mov eax, 0x1021341c
cmova eax, dword [0x1021341c]
movss xmm5, dword [ecx + 0x1978]
movss dword [esp + 0x3c], xmm5
test eax, eax
jne 0x1012d03a
xorps xmm6, xmm6
jmp 0x1012d08d
movss xmm3, dword [0x101ea654]
movaps xmm2, xmm5
push 0
push 0
push eax
push ecx
mov ecx, dword [ecx + 0x1974]
lea eax, [esp + 0x60]
mov dword [esp], 0xbf800000
push eax
call fcn.1015cd10
movss xmm0, dword [esp + 0x50]
addss xmm0, dword [0x101ea2d4]
movss xmm5, dword [esp + 0x54]
mov ecx, dword [0x103d7bec]
movss dword [esp + 0x3c], xmm5
cvttss2si eax, xmm0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
movd xmm1, dword [esp + 0x40]
xorps xmm4, xmm4
mov eax, dword [0x10213408]
movss xmm7, dword [0x101ea420]
cvtdq2ps xmm1, xmm1
cmp byte [eax + 0x3548], 0
subss xmm1, xmm6
subss xmm1, dword [0x101ea478]
je 0x1012d0cc
movaps xmm0, xmm5
mulss xmm0, dword [0x101ea380]
addss xmm0, xmm7
jmp 0x1012d0cf
xorps xmm0, xmm0
addss xmm0, dword [0x101ea440]
mov ecx, dword [ecx + 0x1bdc]
lea edx, [esp + 0x40]
push 0
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x48], xmm0
call fcn.10150e50
mov eax, dword [0x10213408]
cmp dword [eax + 0x37c0], 0
je 0x1012d105
xorps xmm7, xmm7
movss xmm0, dword [esp + 0x38]
comiss xmm4, xmm0
ja 0x1012d11c
movss xmm4, dword [0x101ea2dc]
minss xmm4, xmm0
movss xmm1, dword [esp + 0x34]
mulss xmm4, dword [0x101ea5b4]
addss xmm6, xmm1
push 0
subss xmm1, dword [0x101ea410]
push ecx
addss xmm4, dword [0x101ea26c]
movaps xmm0, xmm6
movss dword [esp], xmm7
addss xmm0, dword [0x101ea460]
mov ecx, esi
movss dword [esp + 0x48], xmm6
movss dword [esp + 0x2c], xmm1
cvttss2si eax, xmm4
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x101ea380]
shl eax, 0x18
push eax
lea eax, [esp + 0x1c]
movss dword [esp + 0x24], xmm1
addss xmm0, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
movaps xmm3, xmm0
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x34]
subss xmm3, dword [0x101ea410]
subss xmm0, dword [0x101ea380]
movss dword [esp + 0x4c], xmm3
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x30], xmm0
call fcn.1015a450
mov eax, dword [0x10213408]
movss xmm3, dword [0x101ea3e0]
mov eax, dword [eax + 0x37c0]
test eax, eax
jne 0x1012d25b
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x18]
addss xmm0, dword [0x101ea464]
movss xmm1, dword [esp + 0x50]
sub esp, 0xc
subss xmm1, xmm3
mov ecx, esi
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x40]
subss xmm0, dword [0x101ea420]
mov dword [esp + 8], 0x3fc00000
mov dword [esp], 0x40a00000
push dword [esp + 0x3c]
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x30]
subss xmm0, xmm3
push eax
lea eax, [esp + 0x24]
push eax
movss dword [esp + 0x2c], xmm0
call fcn.1015a360
jmp 0x1012d2e7
cmp eax, 1
je 0x1012d298
cmp eax, 2
jne 0x1012d28e
movss xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0x50]
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm1
subss xmm0, dword [0x101ea420]
subss xmm1, xmm3
movss dword [esp + 0x14], xmm1
jmp 0x1012d2b8
cmp eax, 3
je 0x1012d298
cmp eax, 4
jne 0x1012d2e7
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x2c]
subss xmm0, dword [0x101ea2dc]
movss dword [esp + 0x14], xmm0
movss xmm2, dword [esp + 0x24]
lea eax, [esp + 0x18]
push ecx
mov dword [esp], 0x40000000
mov ecx, esi
push dword [esp + 0x34]
movss dword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x1c]
movss dword [esp + 0x1c], xmm2
push eax
call fcn.1015a230
mov eax, dword [0x10213408]
mov eax, dword [eax + 0x37c0]
cmp eax, 3
jne 0x1012d32c
movss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x20]
subss xmm0, dword [0x101ea380]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x24]
jmp 0x1012d3b0
cmp eax, 4
jne 0x1012d3d7
movss xmm0, dword [esp + 0x34]
mov ecx, esi
subss xmm0, dword [0x101ea380]
mov eax, dword [esp + 0x48]
push edi
push edi
push eax
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x44]
push eax
movss dword [esp + 0x2c], xmm0
lea eax, [esp + 0x28]
movss xmm0, dword [esp + 0x34]
push eax
movss dword [esp + 0x24], xmm0
lea eax, [esp + 0x24]
movss xmm0, dword [esp + 0x40]
push eax
movss dword [esp + 0x2c], xmm0
call fcn.1015a5b0
movss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x40]
addss xmm0, dword [0x101ea454]
push edi
push edi
push eax
push eax
lea eax, [esp + 0x28]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x3c]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
movss dword [esp + 0x28], xmm0
push eax
call fcn.1015a5b0
cmp dword [0x10213430], 0xf
mov edx, 0x1021341c
movups xmm3, xmmword [esp + 0x70]
cmova edx, dword [0x1021341c]
movss xmm1, dword [0x101ea2dc]
xorps xmm0, xmm0
comiss xmm0, xmm3
jbe 0x1012d404
xorps xmm2, xmm2
jmp 0x1012d40b
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm4, dword [0x101ea5b4]
movss xmm3, dword [0x101ea26c]
movss xmm5, dword [esp + 0x5c]
mulss xmm2, xmm4
addss xmm2, xmm3
cvttss2si ecx, xmm2
shl ecx, 0x10
comiss xmm0, xmm5
jbe 0x1012d43a
xorps xmm2, xmm2
jmp 0x1012d441
movaps xmm2, xmm1
minss xmm2, xmm5
movss xmm5, dword [esp + 0x60]
mulss xmm2, xmm4
addss xmm2, xmm3
cvttss2si eax, xmm2
shl eax, 8
or ecx, eax
comiss xmm0, xmm5
jbe 0x1012d462
xorps xmm2, xmm2
jmp 0x1012d469
movaps xmm2, xmm1
minss xmm2, xmm5
mulss xmm2, xmm4
addss xmm2, xmm3
cvttss2si eax, xmm2
movss xmm2, dword [esp + 0x64]
or ecx, eax
comiss xmm0, xmm2
ja 0x1012d489
minss xmm1, xmm2
movaps xmm0, xmm1
mulss xmm0, xmm4
addss xmm0, xmm3
cvttss2si edi, xmm0
movss xmm0, dword [esp + 0x34]
addss xmm0, dword [0x101ea420]
shl edi, 0x18
or edi, ecx
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x3c]
mulss xmm0, xmm3
addss xmm0, dword [esp + 0x20]
subss xmm0, dword [0x101ea3e0]
movss dword [esp + 0x4c], xmm0
test edi, 0xff000000
je 0x1012d52b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x68], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012d4e0
sub ecx, dword [esp + 0x68]
add ecx, edx
cmp edx, ecx
je 0x1012d52b
push dword [esp + 0x4c]
mov eax, dword [esi + 0x2c]
push dword [esp + 0x4c]
movups xmm0, xmmword [esi + 0x60]
push 0
movss xmm2, dword [eax + 0xc]
push ecx
mov dword [esp], 0
push ecx
push edx
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [eax + 8]
push edi
push esi
movups xmmword [esp + 0x94], xmm0
call fcn.1015ced0
call fcn.10150d40
call fcn.101507d0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.1018daa9
mov esp, ebp
pop ebp
ret
call fcn.10192ed6
int3