Function at 0x100214c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xf0
mov eax, dword [0x1010d170]
xor eax, esp
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xf4]
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x100218a9
cmp eax, ebx
je 0x100218a9
cmp edx, ebx
je 0x100218a9
mov eax, esi
call fcn.100344a0
mov dword [esp + 0x48], eax
cmp eax, ebx
je 0x100218a9
mov ebp, dword [edx + 4]
cmp ebp, ebx
je 0x100218a9
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
cmp edx, ebx
je 0x100218a9
call fcn.100336e0
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x1002185d
mov ebx, ebp
call fcn.10032e90
mov dword [esp + 0x24], eax
test eax, eax
je 0x1002185d
call fcn.10032e90
mov dword [esp + 0x20], eax
test eax, eax
je 0x1002185d
call fcn.10024220
mov dword [esp + 0x30], eax
test eax, eax
je 0x1002185d
call fcn.10024220
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1002185d
call fcn.10024220
mov dword [esp + 0x28], eax
test eax, eax
je 0x1002185d
call fcn.10033d30
mov dword [esp + 0x18], eax
test eax, eax
je 0x1002185d
call fcn.1002b8f0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1002185d
mov eax, dword [edi + 0xc]
push 0x18
push 0
push eax
call fcn.1002d020
add esp, 0xc
test eax, eax
je 0x1002185d
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
push eax
push 0
push ecx
call fcn.1002d020
add esp, 0xc
test eax, eax
je 0x1002185d
mov esi, dword [esp + 0x30]
mov eax, ebp
call fcn.10032880
test eax, eax
je 0x1002185d
mov ecx, dword [esp + 0x2c]
mov esi, ebp
call fcn.100328a0
test eax, eax
je 0x1002185d
mov eax, dword [ebp]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x10021645
call fcn.10032a40
jmp 0x1002164b
push ebp
call eax
add esp, 4
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
add eax, 7
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 3
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
push ebp
xor edi, edi
call fcn.10033670
add esp, 8
test eax, eax
je 0x10021859
mov esi, ebx
mov edx, ebp
call fcn.10033480
test eax, eax
jne 0x10021859
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push 0
mov ecx, esi
call fcn.10033970
add esp, 4
cmp dword [esi + 4], 0
je 0x10021690
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
push edx
push ebp
xor edx, edx
xor eax, eax
mov edi, esi
call fcn.10033670
add esp, 8
test eax, eax
je 0x10021859
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
push ebp
mov edx, esi
xor edi, edi
call fcn.10033670
add esp, 8
test eax, eax
je 0x10021859
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x50]
push ecx
push 4
mov ebx, 0xa8
mov ecx, ebp
call fcn.10033c00
add esp, 8
test eax, eax
je 0x10021859
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x44]
push edx
push ecx
dec eax
push eax
lea edx, [esp + 0x5d]
push edx
call dword [esp + 0x58]
add esp, 0x10
cmp dword [esp + 0x44], 0x18
jne 0x10021859
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
xor eax, eax
test edx, edx
jle 0x10021690
mov ecx, dword [ecx + 8]
cmp byte [ecx + eax], 0
jne 0x10021767
inc eax
cmp eax, edx
jl 0x10021757
jmp 0x10021690
mov ecx, dword [ebp]
cmp dword [ecx + 4], 0x196
mov esi, dword [esp + 0x24]
jne 0x1002178e
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov edx, edi
push edx
mov edx, dword [eax]
push ecx
push edx
mov edx, ebp
call fcn.10033280
jmp 0x100217a3
mov eax, edi
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
mov edx, ebp
call fcn.100332f0
add esp, 0xc
test eax, eax
je 0x10021859
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x38]
mov dl, byte [edx + eax]
xor byte [ecx + eax], dl
add ecx, eax
inc eax
cmp eax, 0x18
jb 0x100217b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
xor eax, eax
call fcn.1002b980
add esp, 8
test eax, eax
je 0x10021859
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
push esi
lea edx, [esp + 0x55]
push edx
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
test eax, eax
je 0x10021859
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x14]
push 0x18
push ecx
push eax
call edx
add esp, 0xc
test eax, eax
je 0x10021859
push esi
lea eax, [esp + esi + 0x55]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x14]
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x10021859
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x40]
call fcn.1002bbf0
test eax, eax
je 0x10021859
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov eax, edi
call fcn.10033710
mov esi, dword [esp + 0x20]
call fcn.10032f90
mov esi, dword [esp + 0x24]
call fcn.10032f90
mov edi, dword [esp + 0x30]
call fcn.100241c0
mov edi, dword [esp + 0x2c]
call fcn.100241c0
mov edi, dword [esp + 0x28]
call fcn.10024110
mov eax, dword [esp + 0x18]
call fcn.10033de0
mov eax, dword [esp + 0x1c]
call fcn.1002be40
mov eax, dword [esp + 0x34]
jmp 0x100218ab
xor eax, eax
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ae60d
add esp, 0xf0
ret