Function at 0x10059426
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, dword [0x10113a04]
push esi
push edi
cmp byte [ebx + 0xbf], al
je 0x1005944b
test byte [ebx + 0xc], 2
jne 0x1005944b
mov byte [ebx + 0xbf], al
cmp byte [ebx + 0x2c28], al
jne 0x1005945a
mov byte [ebx + 0x2c28], 1
movss xmm1, dword [ebx + 0x2c2c]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10059482
subss xmm1, dword [ebx + 0x18]
comiss xmm0, xmm1
movss dword [ebx + 0x2c2c], xmm1
jb 0x10059482
and dword [ebx + 0x2c2c], eax
movss xmm0, dword [ebx + 0x18]
inc dword [ebx + 0x1950]
cvtps2pd xmm0, xmm0
mov dword [ebx + 0x2c08], eax
mov dword [ebx + 0x1998], eax
mov eax, dword [ebx + 0x94]
mov byte [ebx + 1], 1
addsd xmm0, qword [ebx + 0x1948]
movsd qword [ebx + 0x1948], xmm0
mov byte [eax], 1
call fcn.10056256
mov ecx, eax
call fcn.1005e7ce
movss xmm0, dword [ebx + 0x10]
lea edi, [ebx + 0x18d8]
and dword [ebp - 0x10], 0
lea esi, [ebp - 0x10]
and dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x15b4]
movss dword [ebp - 8], xmm0
movss xmm0, dword [ebx + 0x14]
movss dword [ebp - 4], xmm0
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18d4], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x1be4]
mov ecx, esi
call fcn.1006a24f
mov eax, dword [ebx + 0x94]
mov ecx, esi
push dword [eax + 8]
call fcn.1006a72c
mov ecx, esi
call fcn.1006a6cf
xor ecx, ecx
xorps xmm2, xmm2
cmp byte [ebx + 0x15b1], cl
push 2
pop eax
cmovne ecx, eax
xor eax, eax
cmp byte [ebx + 0x15b0], al
setne al
xor edx, edx
or ecx, eax
mov byte [ebx + 0x1ba4], dl
mov dword [ebx + 0x1c08], ecx
mov dword [ebx + 0x1ba8], edx
mov dword [ebx + 0x1bb0], edx
mov dword [ebx + 0x1bb4], edx
mov dword [ebx + 0x1bac], edx
movups xmmword [ebx + 0x1bb8], xmm2
cmp byte [ebx + 0x1c5c], dl
je 0x10059584
mov ecx, dword [ebx + 0x1c74]
cmp ecx, dword [ebx + 0x19bc]
jne 0x10059584
call fcn.1005853f
mov eax, dword [ebx + 0x19a8]
cmp dword [ebx + 0x19b0], edx
jne 0x1005959a
and dword [ebx + 0x19b4], edx
jmp 0x100595a8
mov ecx, eax
test eax, eax
je 0x100595b0
cmp dword [ebx + 0x19bc], eax
jne 0x100595b0
and dword [ebx + 0x19b8], edx
mov ecx, eax
movss xmm3, dword [ebx + 0x18]
test ecx, ecx
je 0x100595e7
movaps xmm0, xmm3
addss xmm0, dword [ebx + 0x19b4]
movss dword [ebx + 0x19b4], xmm0
cmp dword [ebx + 0x19bc], ecx
je 0x100595e7
movaps xmm0, xmm3
addss xmm0, dword [ebx + 0x19b8]
movss dword [ebx + 0x19b8], xmm0
mov eax, dword [ebx + 0x19bc]
movaps xmm1, xmm3
mov dword [ebx + 0x19b0], ecx
mov ecx, eax
mov dword [ebx + 0x19a8], edx
mov byte [ebx + 0x19ac], dl
cmp dword [ebx + 0x19c4], eax
je 0x1005962c
cmp dword [ebx + 0x19c0], eax
jne 0x1005962c
test eax, eax
je 0x1005962c
xor edx, edx
xor ecx, ecx
call fcn.100583ca
mov ecx, dword [ebx + 0x19bc]
movss xmm1, dword [ebx + 0x18]
test ecx, ecx
je 0x10059643
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x19c8]
movss dword [ebx + 0x19c8], xmm0
mov eax, dword [ebx + 0x19e0]
addss xmm1, dword [ebx + 0x19f0]
mov dword [ebx + 0x19e4], eax
mov al, byte [ebx + 0x19ce]
mov byte [ebx + 0x19d0], al
mov eax, dword [ebx + 0x2bdc]
movss dword [ebx + 0x19f0], xmm1
mov dword [ebx + 0x19c0], ecx
mov dword [ebx + 0x19c4], edx
mov byte [ebx + 0x19cf], dl
mov byte [ebx + 0x19cc], dl
test eax, eax
je 0x10059697
cmp ecx, eax
je 0x10059697
mov dword [ebx + 0x2bdc], edx
mov eax, dword [ebx + 0x1cc0]
lea edi, [ebx + 0xc70]
mov dword [ebx + 0x1cc4], eax
mov ecx, 0x200
lea eax, [ebx + 0x470]
mov dword [ebx + 0x1cc0], edx
mov esi, eax
mov dword [ebx + 0x1cbc], 0x7f7fffff
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x1c5d], dl
mov ecx, edx
cmp byte [ebx + ecx + 0x100], 0
je 0x100596ef
movss xmm0, dword [eax]
comiss xmm2, xmm0
jbe 0x100596e8
movaps xmm0, xmm2
jmp 0x100596f7
addss xmm0, dword [ebx + 0x18]
jmp 0x100596f7
movss xmm0, dword [0x100fef38]
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x100596d0
call fcn.10060c3d
call fcn.10058d34
mov eax, dword [ebx + 0x2e50]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
push 0x78
subss xmm0, dword [ebx + eax*4 + 0x2c70]
pop ecx
addss xmm0, dword [ebx + 0x2e54]
movss dword [ebx + 0x2e54], xmm0
movss dword [ebx + eax*4 + 0x2c70], xmm1
mov eax, dword [ebx + 0x2e50]
inc eax
movss xmm1, dword [ebx + 0x2e54]
cdq
idiv ecx
comiss xmm1, dword [0x100fecc4]
mov dword [ebx + 0x2e50], edx
jbe 0x1005977b
divss xmm1, dword [0x100fee98]
movss xmm0, dword [0x100fed9c]
divss xmm0, xmm1
jmp 0x10059783
movss xmm0, dword [0x100fef10]
movss dword [ebx + 0x380], xmm0
call fcn.10058c43
call fcn.10059297
call fcn.1005f4a7
test eax, eax
jne 0x100597e2
cmp dword [ebx + 0x1ae4], eax
je 0x100597b7
movss xmm0, dword [ebx + 0x1af4]
comiss xmm0, dword [0x100fecc4]
ja 0x100597e2
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x100fee34]
movss xmm1, dword [ebx + 0x1be0]
subss xmm1, xmm0
movss xmm0, dword [0x100fed9c]
maxss xmm1, dword [0x100fecc4]
jmp 0x10059803
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x100fee28]
movss xmm0, dword [0x100fed9c]
addss xmm1, dword [ebx + 0x1be0]
minss xmm1, xmm0
and dword [ebx + 0x1c58], 0
or dword [ebx + 0x2e60], 0xffffffff
or dword [ebx + 0x2e5c], 0xffffffff
or dword [ebx + 0x2e58], 0xffffffff
movss dword [ebx + 0x1be0], xmm1
movss dword [ebx + 0x2c18], xmm0
movss dword [ebx + 0x2c1c], xmm0
call fcn.10059076
cmp dword [ebx + 0x19bc], 0
mov edi, 0x7fffffff
jne 0x100598ba
mov esi, dword [ebx + 0x1aa8]
test esi, esi
je 0x100598ba
cmp byte [esi + 0x76], 0
je 0x100598ba
test dword [esi + 8], 0x40000
jne 0x100598ba
cmp byte [ebx + 0xfc], 0
jne 0x100598ba
mov eax, dword [0x10113a04]
mov ecx, dword [eax + 0x34]
test ecx, ecx
js 0x100598ba
xor dl, dl
call fcn.1005a749
test al, al
je 0x100598ba
cmp dword [ebx + 0x1aac], 0
je 0x100598a8
mov ecx, dword [ebx + 0x1b00]
cmp ecx, edi
je 0x100598a8
xor edx, edx
cmp byte [ebx + 0xfd], dl
push 2
pop eax
cmovne eax, edx
add eax, ecx
jmp 0x100598b4
xor eax, eax
cmp byte [ebx + 0xfd], al
sete al
dec eax
mov dword [esi + 0x338], eax
xor edx, edx
mov dword [ebx + 0x1b00], edi
cmp dword [ebx + 0x195c], edx
je 0x100598ea
mov eax, dword [ebx + 0x1964]
mov ecx, dword [eax + edx*4]
inc edx
mov al, byte [ecx + 0x76]
mov byte [ecx + 0x77], al
mov byte [ecx + 0x76], 0
mov byte [ecx + 0x78], 0
cmp edx, dword [ebx + 0x195c]
jne 0x100598ca
mov eax, dword [ebx + 0x1aa8]
test eax, eax
je 0x100598ff
cmp byte [eax + 0x77], 0
jne 0x100598ff
call fcn.1005e699
push ecx
lea ecx, [ebx + 0x1980]
call fcn.10063ed5
push 0
lea ecx, [ebx + 0x1a30]
call fcn.10063d32
mov ecx, dword [ebx + 0x1aa8]
call fcn.1005f646
mov eax, dword [0x10113a04]
xor ecx, ecx
movss xmm0, dword [0x100feeec]
movss xmm1, dword [0x100feef0]
movss dword [eax + 0x1a68], xmm0
movaps xmm0, xmmword [0x100ff0b0]
movss dword [eax + 0x1a6c], xmm1
mov dword [eax + 0x1a40], 4
movups xmmword [ebp - 0x10], xmm0
mov al, byte [ebp - 0x10]
xor byte [ebp + ecx - 0xf], al
inc ecx
cmp ecx, 0xe
jb 0x1005995f
push 0
xor edx, edx
mov byte [ebp - 1], 0
lea ecx, [ebp - 0xf]
call fcn.1005bfb3
pop ecx
pop edi
pop esi
pop ebx
leave
ret