Function at 0x10115e7c
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10227c40]
push ebx
push ebp
push esi
cmp byte [eax + 0x34cc], 0
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
je case.0x10115e61.0
mov edx, dword [eax + 0x34d4]
add eax, 0x34d4
cmp edx, 3
ja case.0x10115e61.0
jmp dword [edx*4 + 0x101161ec]
mov ecx, eax
call fcn.100cae00
jmp 0x10115e74
mov al, byte [eax + 0x20]
test al, al
je case.0x10115e61.0
mov eax, dword [0x10229e7c]
mov ecx, dword [eax]
test ecx, ecx
je case.0x10115e61.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je case.0x10115e61.0
test byte [0x10451114], 1
jne case.0x10115e61.0
mov eax, dword [0x10229e7c]
mov ecx, dword [0x102296ac]
mov esi, dword [eax]
mov eax, dword fs:[0x2c]
mov edi, dword [eax + ecx*4]
mov ecx, dword [0x10233a54]
cmp ecx, dword [edi + 4]
jle 0x10115f14
push 0x10233a54
call fcn.1019d7b4
mov ecx, dword [0x10233a54]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10115f14
mov edx, 0xc60bf9f2
mov ecx, 0x101ef839
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x10233a54
mov dword [0x10233a38], eax
call fcn.1019d76a
mov ecx, dword [0x10233a54]
add esp, 4
mov eax, dword [0x10233a38]
cmp dword [eax + esi + 1], 8
je case.0x10115e61.0
mov eax, dword [0x10229e7c]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x10115f71
push 0x10233a54
call fcn.1019d7b4
add esp, 4
cmp dword [0x10233a54], 0xffffffff
jne 0x10115f71
mov edx, 0xc60bf9f2
mov ecx, 0x101ef839
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x10233a54
mov dword [0x10233a38], eax
call fcn.1019d76a
add esp, 4
mov eax, dword [0x10233a38]
cmp dword [eax + esi + 1], 9
je case.0x10115e61.0
mov eax, dword [0x10227c48]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x1c]
dec eax
push eax
mov eax, dword [0x10227c3c]
push 0
mov eax, dword [eax + 0x184]
call eax
mov eax, dword [0x10227c40]
xor ebp, ebp
cmp dword [eax + 0x34d0], ebp
jle 0x101161a9
mov ecx, ebx
lea ebx, [ecx + 0x30]
mov esi, dword [ebx]
mov eax, esi
or eax, 4
mov dword [ebx], eax
call fcn.1009a1a0
mov dword [ebx], esi
mov eax, dword [0x10229e7c]
mov ecx, dword [0x1022a00c]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x10116020
push 0x1022a00c
call fcn.1019d7b4
mov ecx, dword [0x1022a00c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10116020
mov edx, 0xc60bf9f2
mov ecx, 0x101eef55
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x1022a00c
mov dword [0x10229f60], eax
call fcn.1019d76a
mov ecx, dword [0x1022a00c]
add esp, 4
mov eax, dword [0x10229f60]
movss xmm0, dword [eax + esi + 8]
ucomiss xmm0, dword [0x101ff580]
lahf
test ah, 0x44
jnp 0x10116112
mov eax, dword [0x10229e7c]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x10116091
push 0x1022a00c
call fcn.1019d7b4
mov ecx, dword [0x1022a00c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10116091
mov edx, 0xc60bf9f2
mov ecx, 0x101eef55
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x1022a00c
mov dword [0x10229f60], eax
call fcn.1019d76a
mov ecx, dword [0x1022a00c]
add esp, 4
mov eax, dword [0x10229f60]
movss xmm0, dword [eax + esi + 8]
ucomiss xmm0, dword [0x101ff57c]
lahf
test ah, 0x44
jnp 0x10116112
mov eax, dword [0x10229e7c]
mov esi, dword [eax]
cmp ecx, dword [edi + 4]
jle 0x101160f6
push 0x1022a00c
call fcn.1019d7b4
add esp, 4
cmp dword [0x1022a00c], 0xffffffff
jne 0x101160f6
mov edx, 0xc60bf9f2
mov ecx, 0x101eef55
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x1022a00c
mov dword [0x10229f60], eax
call fcn.1019d76a
add esp, 4
mov eax, dword [0x10229f60]
movss xmm0, dword [eax + esi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x101ff560]
lahf
test ah, 0x44
jp 0x10116181
mov eax, dword [0x10229e7c]
mov ecx, dword [eax]
call fcn.1007e090
test byte [eax], 1
jne 0x10116181
mov eax, dword [0x10229e7c]
mov esi, dword [eax]
mov eax, dword [0x10233a54]
cmp eax, dword [edi + 4]
jle 0x10116175
push 0x10233a54
call fcn.1019d7b4
add esp, 4
cmp dword [0x10233a54], 0xffffffff
jne 0x10116175
mov edx, 0xc60bf9f2
mov ecx, 0x101ef839
call fcn.1007dc50
mov ecx, eax
call fcn.100d0970
push 0x10233a54
mov dword [0x10233a38], eax
call fcn.1019d76a
add esp, 4
mov eax, dword [0x10233a38]
cmp dword [eax + esi + 1], 9
jne 0x101161a0
mov eax, dword [0x10227c40]
xor cl, cl
inc ebp
mov byte [0x104e2019], cl
cmp ebp, dword [eax + 0x34d0]
jge 0x101161b2
mov ecx, dword [esp + 0x10]
jmp 0x10115fb5
mov byte [0x104e2019], 1
jmp 0x101161b6
mov cl, byte [0x104e2019]
add ebx, 0x30
test cl, cl
je 0x101161b9
or dword [ebx], 4
mov eax, dword [0x10227c48]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x1c]
dec eax
push eax
mov eax, dword [0x10227c3c]
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.1009a1a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret