Function at 0x1013d510
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 [0x1020f0c0]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [0x1022ccc8]
push esi
push edi
cmp byte [eax + 0x37cf], 0
je 0x1013dca5
mov eax, dword [0x1022ccd0]
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 [0x10456c08]
xor edx, edx
push str.Background
mov eax, dword [eax + 0x1d50]
mov ecx, dword [eax]
call fcn.1015b7d0
mov ecx, dword [0x101f8dd8]
mov esi, eax
mov dword [esp + 0x68], ecx
mov cx, word [0x101f8ddc]
mov word [esp + 0x6c], cx
test ch, ch
je 0x1013d5be
xor edx, edx
mov dword [esp + 0x2c], edx
mov eax, 0x8d3dcb09
mul edx
shr edx, 5
movsx eax, dl
mov edx, dword [esp + 0x2c]
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x38
xor byte [esp + edx + 0x68], cl
inc edx
mov dword [esp + 0x2c], edx
cmp edx, 6
jl 0x1013d595
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013d5e3
sub ecx, edx
lea eax, [esp + 0x68]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.10028880
cmp dword [esp + 0x84], 0xf
lea ecx, [esp + 0x70]
push 0xc02bb
cmova ecx, dword [esp + 0x74]
xor edx, edx
call fcn.10160fa0
mov ecx, dword [esp + 0x84]
cmp ecx, 0xf
jbe 0x1013d651
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013d647
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013dcb9
push ecx
push edx
call fcn.101a201e
add esp, 8
mov ecx, dword [0x1022ccd4]
mov ecx, dword [ecx + 0x40]
call fcn.10163700
mov eax, dword [0x10456c08]
sub esp, 0x18
mov edx, esp
mov eax, dword [eax + 0x1bec]
movss xmm0, dword [eax + 0x10]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [eax + 0x14]
mov eax, dword [0x1022ccc8]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [eax + 0x3a48]
divss xmm0, dword [0x10201100]
mov ecx, dword [eax + 0x3a3c]
movss dword [esp + 0x54], xmm0
movups xmm0, xmmword [eax + 0x3a2c]
movzx eax, byte [eax + 0x3a40]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], ecx
mov byte [edx + 0x14], al
call fcn.100c25f0
mov edx, dword [0x1022ccc8]
sub esp, 0x18
movaps xmm0, xmmword [0x10201780]
mov ecx, esp
movups xmmword [esp + 0x88], xmm0
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x3a3c]
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [edx + 0x3a2c]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
movzx eax, byte [edx + 0x3a40]
xorps xmm0, xmm0
mov byte [ecx + 0x14], al
call fcn.100c2770
mov ecx, dword [0x1022ccc8]
sub esp, 0x18
mov edx, esp
mov edi, eax
movups xmm1, xmmword [ecx + 0x3a2c]
mov eax, dword [ecx + 0x3a3c]
movss xmm0, dword [ecx + 0x3a38]
mulss xmm0, dword [0x10200e0c]
movups xmmword [edx], xmm1
mov dword [edx + 0x10], eax
movzx eax, byte [ecx + 0x3a40]
mov byte [edx + 0x14], al
call fcn.100c2770
mov dword [esp + 0x68], eax
sub esp, 0x18
mov eax, dword [0x1022ccc8]
mov edx, esp
movups xmm0, xmmword [eax + 0x3a2c]
mov ecx, dword [eax + 0x3a3c]
movzx eax, byte [eax + 0x3a40]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], ecx
mov byte [edx + 0x14], al
call fcn.100c25f0
cmp dword [0x1022ccf0], 0xf
mov ecx, dword [0x10456c08]
mov dword [esp + 0x48], eax
mov eax, 0x1022ccdc
cmova eax, dword [0x1022ccdc]
movss xmm5, dword [ecx + 0x1988]
movss dword [esp + 0x2c], xmm5
test eax, eax
jne 0x1013d7ad
xorps xmm6, xmm6
jmp 0x1013d800
movss xmm3, dword [0x1020122c]
movaps xmm2, xmm5
push 0
push 0
push eax
push ecx
mov ecx, dword [ecx + 0x1984]
lea eax, [esp + 0x60]
mov dword [esp], 0xbf800000
push eax
call fcn.1016f860
movss xmm0, dword [esp + 0x50]
addss xmm0, dword [0x10200e70]
movss xmm5, dword [esp + 0x54]
mov ecx, dword [0x10456c08]
movss dword [esp + 0x2c], xmm5
cvttss2si eax, xmm0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
movd xmm1, dword [esp + 0x40]
xorps xmm4, xmm4
mov eax, dword [0x1022ccc8]
movss xmm7, dword [0x10200ff0]
cvtdq2ps xmm1, xmm1
cmp byte [eax + 0x37c8], 0
subss xmm1, xmm6
subss xmm1, dword [0x10201048]
je 0x1013d83f
movaps xmm0, xmm5
mulss xmm0, dword [0x10200f40]
addss xmm0, xmm7
jmp 0x1013d842
xorps xmm0, xmm0
addss xmm0, dword [0x10201010]
mov ecx, dword [ecx + 0x1bec]
lea edx, [esp + 0x40]
push 0
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x48], xmm0
call fcn.101638c0
mov eax, dword [0x1022ccc8]
cmp dword [eax + 0x3a44], 0
je 0x1013d878
xorps xmm7, xmm7
movss xmm0, dword [esp + 0x3c]
comiss xmm4, xmm0
ja 0x1013d88f
movss xmm4, dword [0x10200e78]
minss xmm4, xmm0
movss xmm1, dword [esp + 0x34]
mulss xmm4, dword [0x10201190]
addss xmm6, xmm1
push 0
subss xmm1, dword [0x10200fd8]
push ecx
addss xmm4, dword [0x10200e0c]
movaps xmm0, xmm6
movss dword [esp], xmm7
addss xmm0, dword [0x10201030]
mov ecx, esi
movss dword [esp + 0x48], xmm6
movss dword [esp + 0x28], xmm1
cvttss2si eax, xmm4
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x10200f40]
shl eax, 0x18
push eax
lea eax, [esp + 0x1c]
movss dword [esp + 0x24], xmm1
addss xmm0, dword [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
movaps xmm3, xmm0
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x4c]
subss xmm3, dword [0x10200fd8]
subss xmm0, dword [0x10200f40]
movss dword [esp + 0x50], xmm3
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x30], xmm0
call fcn.1016cf70
mov eax, dword [0x1022ccc8]
movss xmm3, dword [0x10200fa0]
mov eax, dword [eax + 0x3a44]
test eax, eax
jne 0x1013d9ce
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x18]
addss xmm0, dword [0x10201034]
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 [0x10200ff0]
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 + 0x48]
subss xmm0, xmm3
push eax
lea eax, [esp + 0x24]
push eax
movss dword [esp + 0x2c], xmm0
call fcn.1016ce80
jmp 0x1013da5a
cmp eax, 1
je 0x1013da0b
cmp eax, 2
jne 0x1013da01
movss xmm0, dword [esp + 0x24]
movss xmm1, dword [esp + 0x50]
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm1
subss xmm0, dword [0x10200ff0]
subss xmm1, xmm3
movss dword [esp + 0x14], xmm1
jmp 0x1013da2b
cmp eax, 3
je 0x1013da0b
cmp eax, 4
jne 0x1013da5a
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x28]
subss xmm0, dword [0x10200e78]
movss dword [esp + 0x14], xmm0
movss xmm2, dword [esp + 0x20]
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.1016cd50
mov eax, dword [0x1022ccc8]
mov eax, dword [eax + 0x3a44]
cmp eax, 3
jne 0x1013da9f
movss xmm0, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x2c]
addss xmm0, dword [esp + 0x38]
subss xmm0, dword [0x10200f40]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x20]
jmp 0x1013db23
cmp eax, 4
jne 0x1013db4a
movss xmm0, dword [esp + 0x34]
mov ecx, esi
subss xmm0, dword [0x10200f40]
mov eax, dword [esp + 0x48]
push edi
push edi
push eax
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x48]
push eax
movss dword [esp + 0x2c], xmm0
lea eax, [esp + 0x28]
movss xmm0, dword [esp + 0x30]
push eax
movss dword [esp + 0x24], xmm0
lea eax, [esp + 0x24]
movss xmm0, dword [esp + 0x3c]
push eax
movss dword [esp + 0x2c], xmm0
call fcn.1016d0d0
movss xmm0, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x40]
addss xmm0, dword [0x10201024]
push edi
push edi
push eax
push eax
lea eax, [esp + 0x28]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x38]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
movss dword [esp + 0x28], xmm0
push eax
call fcn.1016d0d0
cmp dword [0x1022ccf0], 0xf
mov edx, 0x1022ccdc
movups xmm3, xmmword [esp + 0x70]
cmova edx, dword [0x1022ccdc]
movss xmm1, dword [0x10200e78]
xorps xmm0, xmm0
comiss xmm0, xmm3
jbe 0x1013db77
xorps xmm2, xmm2
jmp 0x1013db7e
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm4, dword [0x10201190]
movss xmm3, dword [0x10200e0c]
movss xmm5, dword [esp + 0x5c]
mulss xmm2, xmm4
addss xmm2, xmm3
cvttss2si ecx, xmm2
shl ecx, 0x10
comiss xmm0, xmm5
jbe 0x1013dbad
xorps xmm2, xmm2
jmp 0x1013dbb4
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 0x1013dbd5
xorps xmm2, xmm2
jmp 0x1013dbdc
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 0x1013dbfc
minss xmm1, xmm2
movaps xmm0, xmm1
mulss xmm0, xmm4
addss xmm0, xmm3
cvttss2si edi, xmm0
movss xmm0, dword [esp + 0x34]
addss xmm0, dword [0x10200ff0]
shl edi, 0x18
or edi, ecx
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, xmm3
addss xmm0, dword [esp + 0x38]
subss xmm0, dword [0x10200fa0]
movss dword [esp + 0x4c], xmm0
test edi, 0xff000000
je 0x1013dc9b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x68], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013dc50
sub ecx, dword [esp + 0x68]
add ecx, edx
cmp edx, ecx
je 0x1013dc9b
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.1016fa20
call fcn.101637b0
call fcn.10163240
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.101a1d25
mov esp, ebp
pop ebp
ret
call fcn.101a7156
int3