Function at 0x1011898c
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10229c78]
push ebx
push ebp
push esi
cmp byte [eax + 0x34e0], 0
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
je case.0x10118971.0
mov edx, dword [eax + 0x34e8]
add eax, 0x34e8
cmp edx, 3
ja case.0x10118971.0
jmp dword [edx*4 + 0x10118cfc]
mov ecx, eax
call fcn.100cceb0
jmp 0x10118984
mov al, byte [eax + 0x20]
test al, al
je case.0x10118971.0
mov eax, dword [0x1022bebc]
mov ecx, dword [eax]
test ecx, ecx
je case.0x10118971.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je case.0x10118971.0
test byte [0x10449c6c], 1
jne case.0x10118971.0
mov eax, dword [0x1022bebc]
mov ecx, dword [0x1022b6ec]
mov esi, dword [eax]
mov eax, dword fs:[0x2c]
mov edi, dword [eax + ecx*4]
mov ecx, dword [0x1045387c]
cmp ecx, dword [edi + 4]
jle 0x10118a24
push 0x1045387c
call fcn.101a0794
mov ecx, dword [0x1045387c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10118a24
mov edx, 0xc60bf9f2
mov ecx, 0x101f2879
call fcn.1007e710
mov ecx, eax
call fcn.100d2ad0
push 0x1045387c
mov dword [0x10453860], eax
call fcn.101a074a
mov ecx, dword [0x1045387c]
add esp, 4
mov eax, dword [0x10453860]
cmp dword [eax + esi + 1], 8
je case.0x10118971.0
mov eax, dword [0x1022bebc]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x10118a81
push 0x1045387c
call fcn.101a0794
add esp, 4
cmp dword [0x1045387c], 0xffffffff
jne 0x10118a81
mov edx, 0xc60bf9f2
mov ecx, 0x101f2879
call fcn.1007e710
mov ecx, eax
call fcn.100d2ad0
push 0x1045387c
mov dword [0x10453860], eax
call fcn.101a074a
add esp, 4
mov eax, dword [0x10453860]
cmp dword [eax + esi + 1], 9
je case.0x10118971.0
mov eax, dword [0x10229c80]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x1c]
dec eax
push eax
mov eax, dword [0x10229c74]
push 0
mov eax, dword [eax + 0x184]
call eax
mov eax, dword [0x10229c78]
xor ebp, ebp
cmp dword [eax + 0x34e4], ebp
jle 0x10118cb9
mov ecx, ebx
lea ebx, [ecx + 0x30]
mov esi, dword [ebx]
mov eax, esi
or eax, 4
mov dword [ebx], eax
call fcn.1009aec0
mov dword [ebx], esi
mov eax, dword [0x1022bebc]
mov ecx, dword [0x10449e2c]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x10118b30
push 0x10449e2c
call fcn.101a0794
mov ecx, dword [0x10449e2c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10118b30
mov edx, 0xc60bf9f2
mov ecx, 0x101f1f75
call fcn.1007e710
mov ecx, eax
call fcn.100d2ad0
push 0x10449e2c
mov dword [0x10449d80], eax
call fcn.101a074a
mov ecx, dword [0x10449e2c]
add esp, 4
mov eax, dword [0x10449d80]
movss xmm0, dword [eax + esi + 8]
ucomiss xmm0, dword [0x102024a0]
lahf
test ah, 0x44
jnp 0x10118c22
mov eax, dword [0x1022bebc]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x10118ba1
push 0x10449e2c
call fcn.101a0794
mov ecx, dword [0x10449e2c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10118ba1
mov edx, 0xc60bf9f2
mov ecx, 0x101f1f75
call fcn.1007e710
mov ecx, eax
call fcn.100d2ad0
push 0x10449e2c
mov dword [0x10449d80], eax
call fcn.101a074a
mov ecx, dword [0x10449e2c]
add esp, 4
mov eax, dword [0x10449d80]
movss xmm0, dword [eax + esi + 8]
ucomiss xmm0, dword [0x1020249c]
lahf
test ah, 0x44
jnp 0x10118c22
mov eax, dword [0x1022bebc]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x10118c06
push 0x10449e2c
call fcn.101a0794
add esp, 4
cmp dword [0x10449e2c], 0xffffffff
jne 0x10118c06
mov edx, 0xc60bf9f2
mov ecx, 0x101f1f75
call fcn.1007e710
mov ecx, eax
call fcn.100d2ad0
push 0x10449e2c
mov dword [0x10449d80], eax
call fcn.101a074a
add esp, 4
mov eax, dword [0x10449d80]
movss xmm0, dword [eax + esi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x10202480]
lahf
test ah, 0x44
jp 0x10118c91
mov eax, dword [0x1022bebc]
mov ecx, dword [eax]
call fcn.1007eb50
test byte [eax], 1
jne 0x10118c91
mov eax, dword [0x1022bebc]
mov esi, dword [eax]
mov eax, dword [0x1045387c]
cmp eax, dword [edi + 4]
jle 0x10118c85
push 0x1045387c
call fcn.101a0794
add esp, 4
cmp dword [0x1045387c], 0xffffffff
jne 0x10118c85
mov edx, 0xc60bf9f2
mov ecx, 0x101f2879
call fcn.1007e710
mov ecx, eax
call fcn.100d2ad0
push 0x1045387c
mov dword [0x10453860], eax
call fcn.101a074a
add esp, 4
mov eax, dword [0x10453860]
cmp dword [eax + esi + 1], 9
jne 0x10118cb0
mov eax, dword [0x10229c78]
xor cl, cl
inc ebp
mov byte [0x10453bf1], cl
cmp ebp, dword [eax + 0x34e4]
jge 0x10118cc2
mov ecx, dword [esp + 0x10]
jmp 0x10118ac5
mov byte [0x10453bf1], 1
jmp 0x10118cc6
mov cl, byte [0x10453bf1]
add ebx, 0x30
test cl, cl
je 0x10118cc9
or dword [ebx], 4
mov eax, dword [0x10229c80]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x1c]
dec eax
push eax
mov eax, dword [0x10229c74]
push 0
mov eax, dword [eax + 0x184]
call eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.1009aec0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret