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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x118
mov eax, dword [0x101f90c0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
movss dword [esp + 0xbc], xmm5
movss dword [esp + 0xb8], xmm4
movss dword [esp + 0xb4], xmm3
movss dword [esp + 0xb0], xmm2
movss dword [esp + 0xac], xmm1
movss dword [esp + 0xa8], xmm0
mov dword [esp + 0x50], edx
mov edi, ecx
mov dword [esp + 0x4c], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x48]
mov dword [esp + 0x60], eax
mov ax, word [ebp + 0x2c]
mov word [esp + 0x100], ax
mov al, byte [ebp + 0x2e]
mov byte [esp + 0x102], al
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x44]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x5c], esi
mov esi, dword [0x10214408]
movups xmm0, xmmword [ebp + 0x1c]
mov dword [esp + 0x64], ecx
mov dword [ecx], 0x7f7fffff
lea ecx, [edx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
movups xmmword [esp + 0xf0], xmm0
movq xmm0, qword [esp + 0xa8]
mov eax, dword [eax + 0x20]
movq qword [esp + 0xc0], xmm0
mov dword [esp + 0x10], esi
call eax
test eax, eax
je 0x1009cf70
mov ecx, dword [0x10214410]
push eax
mov ecx, dword [ecx + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
call edx
test eax, eax
je 0x1009cf70
cmp dword [eax + 0xac], 0
jle 0x1009cf70
mov ecx, dword [eax + 0xb0]
add ecx, eax
mov dword [esp + 0x38], ecx
je 0x1009cf70
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1021551c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103db6dc]
cmp eax, dword [ecx + 4]
jle 0x1009c8d8
push 0x103db6dc
call fcn.1018e65d
add esp, 4
cmp dword [0x103db6dc], 0xffffffff
jne 0x1009c8d8
mov eax, dword [0x10214410]
xor edx, edx
cmp dword [0x10215510], 2
movups xmm0, xmmword [str.CPWGWWeZ_KM___]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
mov al, byte [0x101dc648]
movups xmmword [esp + 0xd0], xmm0
mov byte [esp + 0xe8], al
movq xmm0, qword [str.57:__L]
movq qword [esp + 0xe0], xmm0
jl 0x1009c880
movaps xmm0, xmmword [str.4444444444444444]
lea esi, [esp + 0xd4]
movaps xmm4, xmmword [0x101eb880]
movaps xmm3, xmmword [0x101ebc10]
movaps xmm5, xmmword [0x101eb900]
movaps xmmword [esp + 0x90], xmm0
mov ecx, dword [esp + 0x90]
nop word [eax + eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0xd0]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + edx + 0xd0], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esi + edx]
xorps xmm1, xmm0
movd dword [esi + edx], xmm1
add edx, 8
cmp edx, 0x18
jl 0x1009c770
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], edx
cmp edx, 0x19
jge 0x1009c8b3
nop dword [eax + eax]
mov eax, 0x4bda12f7
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
movsx eax, al
mov cl, dl
imul eax, eax, 0x36
sub cl, al
add cl, 0x34
xor byte [esp + edx + 0xd0], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, 0x19
jl 0x1009c880
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xd0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push 0x103db6dc
mov dword [0x103db6e0], eax
call fcn.1018e60c
add esp, 4
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], edx
nop dword [eax]
nop dword [eax + eax]
cmp byte [esp + ecx + 0xf0], 0
je 0x1009ce95
test ecx, ecx
js 0x1009ce95
mov eax, dword [esp + 0x38]
cmp ecx, dword [eax + 4]
jge 0x1009ce95
mov eax, dword [eax + 8]
add eax, edx
add eax, dword [esp + 0x38]
je 0x1009ce95
push dword [ebp + 0x3c]
mov edx, dword [esp + 0x54]
push dword [ebp + 0x38]
movss xmm0, dword [esp + 0xc8]
movss xmm1, dword [esp + 0xcc]
movss xmm2, dword [esp + 0xd0]
push ecx
push eax
push dword [esp + 0x70]
lea ecx, [esp + 0x98]
call fcn.10088c30
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x88]
je 0x1009ce81
nop dword [eax]
nop word [eax + eax]
movss xmm0, dword [esp + 0xb4]
lea ecx, [esp + 0x90]
addss xmm0, dword [edi + 0xc]
push ecx
mov edx, eax
lea ecx, [esp + 0xc4]
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0xbc]
addss xmm0, dword [edi + 0x10]
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0xc0]
addss xmm0, dword [edi + 0x14]
movss dword [esp + 0x9c], xmm0
call fcn.10087890
movss dword [esp + 0xac], xmm1
movaps xmm1, xmm0
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esp + 0xac]
mulss xmm1, xmm1
mulss xmm0, xmm0
movss dword [esp + 0xb0], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1009ca20
sqrtsd xmm0, xmm0
jmp 0x1009ca25
call fcn.101b6480
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [esi + 0x10]
ja 0x1009ce69
mov ecx, dword [esp + 0x20]
mov al, byte [esi + 3]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x734]
call eax
push dword [esp + 0x18]
mov esi, dword [esp + 0x54]
mov ecx, esi
push dword [ebp + 0x40]
mov edx, dword [esp + 0x1c]
push eax
call fcn.100882a0
mov eax, dword [esi]
mov ecx, esi
movss dword [esp + 0x54], xmm0
mov eax, dword [eax + 0x1ec]
call eax
movss xmm0, dword [esp + 0x54]
lea ecx, [esp + 0x54]
xorps xmm2, xmm2
mov dword [esp + 0x70], 0
comiss xmm2, xmm0
lea esi, [esp + 0x74]
movd xmm1, eax
lea eax, [esp + 0x70]
cvtdq2ps xmm1, xmm1
cmovbe eax, ecx
comiss xmm0, xmm1
movss xmm0, dword [0x101eb2e4]
movss dword [esp + 0x74], xmm1
cmovbe esi, eax
comiss xmm0, dword [esi]
jae 0x1009ce65
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xc], 0
je 0x1009cb12
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x71c]
call eax
cmp eax, 5
jne 0x1009cb0e
mov ecx, 0x747d37fc
call fcn.100c68e0
mov ecx, dword [0x10215cf4]
mov ecx, dword [ecx]
cmp byte [eax + ecx], 0
jne 0x1009cb0e
mov ecx, 0x8c04d21d
call fcn.100c68e0
mov ecx, dword [esp + 0x20]
cmp dword [eax + ecx], 1
mov eax, dword [esp + 0x10]
jge 0x1009cb12
or dword [edi + 0x30], 0x80000
jmp 0x1009cb12
mov eax, dword [esp + 0x10]
imul ecx, dword [ebp + 0x34], 0x2c
mov dword [esp + 0x34], ecx
cmp byte [ecx + eax + 0x15], 0
je 0x1009ce0a
mov ecx, 0x394634f0
call fcn.100c68e0
mov ecx, dword [0x10215cf4]
mov ecx, dword [ecx]
test byte [eax + ecx], 1
je 0x1009ce0a
test byte [edi + 0x30], 2
jne 0x1009ce0a
mov ecx, dword [0x103db6e0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x1009ce0a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
test byte [ecx + eax + 0x18], 1
je 0x1009cd88
movss xmm0, dword [0x103d89c4]
movss xmm1, dword [0x103d89c8]
movss xmm2, dword [0x103d89c0]
movss dword [esp + 0x78], xmm1
movaps xmm1, xmm0
mulss xmm1, xmm0
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x80], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x40], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1009cbd0
sqrtsd xmm0, xmm0
jmp 0x1009cbd5
call fcn.101b6480
mov eax, dword [0x10215cf4]
cvtsd2ss xmm0, xmm0
mov ecx, dword [eax]
movss dword [esp + 0x1c], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x430]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x734]
mov ecx, eax
call edx
mov ecx, 0x747d37fc
mov dword [esp + 0x18], eax
call fcn.100c68e0
mov ecx, dword [0x10215cf4]
mov ecx, dword [ecx]
cmp byte [eax + ecx], 0
mov eax, dword [esp + 0x18]
je 0x1009cc26
movss xmm0, dword [eax + 0x138]
jmp 0x1009cc2e
movss xmm0, dword [eax + 0x134]
divss xmm0, dword [0x101eb458]
movss xmm1, dword [esp + 0x1c]
comiss xmm1, xmm0
jb 0x1009cd80
movss xmm0, dword [esp + 0x78]
sub esp, 8
xorps xmm0, xmmword [0x101ebc70]
fld dword [esp + 0x88]
cvtss2sd xmm0, xmm0
fstp dword [esp + 4]
fld dword [esp + 0x48]
fstp dword [esp]
movsd qword [esp + 0x80], xmm0
call fcn.101b46de
fstp dword [esp + 0x48]
movss xmm0, dword [esp + 0x48]
add esp, 8
fld qword [esp + 0x78]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
call fcn.101b46b0
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x101eb568]
mulss xmm0, dword [0x101eb244]
cvtps2pd xmm0, xmm0
call fcn.101b5030
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x68]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x28]
fld qword [esp + 0x68]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
call fcn.101b46b0
movss xmm1, dword [edi + 0x10]
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x101eb568]
subss xmm1, xmm0
mulss xmm1, dword [0x101eb244]
cvtps2pd xmm0, xmm1
movss xmm1, dword [esp + 0x1c]
xorps xmm1, xmmword [0x101ebc70]
movsd qword [esp + 0x68], xmm0
movss dword [esp + 0x1c], xmm1
call fcn.101b5030
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x28], xmm0
movsd xmm0, qword [esp + 0x68]
call fcn.101b62b0
movss xmm1, dword [esp + 0x28]
cvtsd2ss xmm0, xmm0
movss dword [edi + 0x24], xmm1
mulss xmm0, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x1c]
movss dword [edi + 0x28], xmm0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
test byte [ecx + eax + 0x18], 4
je 0x1009cd9d
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
test byte [ecx + eax + 0x18], 8
je 0x1009cda8
or dword [edi + 0x30], 4
mov eax, dword [0x10215cf4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1009ce0a
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x1009ce0a
mov eax, dword [0x10214404]
mov edx, dword [eax + 0xd8]
mov eax, dword [edx + 0x174]
mov dword [esp + 0x28], eax
mov eax, dword [0x10214410]
mov ecx, dword [eax + 0x54]
mov eax, dword [edx + 0x4d30]
add eax, dword [edx + 0x4d2c]
push eax
push dword [edx + 0x4d34]
mov edx, dword [esp + 0x30]
test edx, edx
mov edi, dword [ecx]
setg al
movzx eax, al
push eax
mov eax, dword [edi + 0xc]
push edx
call eax
mov edi, dword [esp + 0x4c]
movd xmm1, dword [ebp + 0x10]
mov edx, dword [esp + 0x64]
cvtdq2ps xmm1, xmm1
movss xmm0, dword [edx]
subss xmm1, dword [esi]
mov esi, dword [esp + 0x10]
andps xmm1, xmmword [0x101ebc40]
comiss xmm0, xmm1
jb 0x1009ce69
mov ecx, dword [esp + 0x5c]
movq xmm0, qword [esp + 0xa8]
mov eax, dword [esp + 0xb0]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
movss dword [edx], xmm1
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
jmp 0x1009ce69
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 0xc
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x88]
jne 0x1009c980
lea ecx, [esp + 0x84]
call fcn.10083b20
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
add edx, 0x44
inc ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], edx
cmp edx, 0x50c
jb 0x1009c8f0
mov ecx, dword [esp + 0x3c]
xorps xmm1, xmm1
movss xmm0, dword [ecx]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1009cee1
movss xmm0, dword [ecx + 4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1009cee1
movss xmm0, dword [ecx + 8]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1009cf70
imul ecx, dword [ebp + 0x34], 0x2c
mov dword [esp + 0x4c], ecx
cmp byte [ecx + esi + 0x28], 0
je case.0x1009cf01.3152
mov eax, dword [0x10214408]
add eax, 0xc50
mov edx, dword [eax]
cmp edx, 3
ja case.0x1009cf01.3152
jmp dword [edx*4 + 0x1009cf88]
mov ecx, eax
call fcn.100c0f80
mov ecx, dword [esp + 0x4c]
jmp 0x1009cf18
mov al, byte [eax + 0x20]
test al, al
je case.0x1009cf01.3152
mov ecx, dword [ecx + esi + 0x2c]
jmp 0x1009cf26
mov ecx, dword [ecx + esi + 0x24]
mov esi, dword [esp + 0x5c]
mov eax, dword [0x10215cf4]
push ecx
push edi
push esi
push dword [esp + 0x2c]
mov ecx, dword [eax]
push dword [esp + 0x70]
push dword [esp + 0x4c]
call fcn.100892f0
test al, al
jne 0x1009cf70
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x64]
movq qword [eax], xmm0
mov dword [eax + 8], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [ecx], 0x7f7fffff
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.1018e0ca
mov esp, ebp
pop ebp
ret 0x48