Function at 0x10032c14
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x50
push esi
mov esi, ecx
lea ecx, [ebp - 0x1c]
push edi
push esi
mov dword [ebp - 8], esi
xor edi, edi
call fcn.100339a0
cmp byte [ebp - 0x18], 0
je 0x10032d74
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 0x30]
mov esi, dword [eax + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
push edi
lea ecx, [ebp - 0x14]
call fcn.1005b0cc
mov ecx, dword [0x101c6d48]
mov eax, dword [0x101c64f0]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x10032c98
push ecx
lea ecx, [ebp - 4]
call fcn.1005b0cc
cmp dword [0x101c6d48], edi
jne 0x10032c87
mov eax, dword [0x101bf568]
inc eax
mov dword [0x101bf568], eax
mov dword [0x101c6d48], eax
lea ecx, [ebp - 4]
call fcn.1005b133
mov ecx, dword [0x101c6d48]
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0xc]
jae 0x10032ca9
mov eax, dword [esi + 8]
mov edi, dword [eax + ecx*4]
test edi, edi
jne 0x10032d1d
jmp 0x10032cab
xor edi, edi
cmp byte [esi + 0x14], 0
je 0x10032cc4
call fcn.1005bb2a
mov edi, dword [ebp - 4]
cmp edi, dword [eax + 0xc]
jae 0x10032cc8
mov eax, dword [eax + 8]
mov edi, dword [eax + edi*4]
test edi, edi
jne 0x10032d1d
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10032cd3
mov edi, eax
jmp 0x10032d1d
push 8
call fcn.100775d3
mov edi, eax
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10032ce9
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x50]
call fcn.1000bf40
lea ecx, [ebp - 0x50]
mov dword [edi + 4], 0
mov dword [edi], vtable.std::num_put_char__class_std::ostreambuf_iterator_char__struct_std::char_traits_char___.0
call fcn.1000bfb0
push edi
call fcn.1005bafe
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 4]
mov dword [0x101c64f0], edi
lea ecx, [ebp - 0x14]
call fcn.1005b133
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10032d3a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 8]
push dword [ebx + 8]
mov esi, dword [edi]
mov byte [ebp - 0x10], 0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
movzx eax, byte [edx + ecx + 0x40]
add edx, ecx
push eax
push edx
lea eax, [ebp - 0x10]
mov ecx, edi
push dword [edx + 0x38]
push dword [ebp - 0x10]
push eax
call dword [esi + 0x24]
mov esi, dword [ebp - 8]
xor edi, edi
cmp byte [ebp - 0x10], 0
mov eax, 4
cmovne edi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
push ecx
or eax, edi
push eax
call fcn.1000fd30
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp dword [eax + edi + 0xc], 0
jne 0x10032dc3
test byte [eax + edi + 0x14], 2
je 0x10032dc3
mov ecx, dword [eax + edi + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10032dc3
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
push ecx
or eax, 4
push eax
call fcn.1000fd30
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 0x38]
test ecx, ecx
je 0x10032dd5
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4