Function at 0x446fc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
jne 0x446fdc
lea eax, [esi - 0x66]
pop esi
add esp, 8
ret
push ebx
mov ebx, dword [esi + 0x9c]
test ebx, ebx
jne 0x446ff0
lea eax, [ebx - 0x66]
pop ebx
pop esi
add esp, 8
ret
cmp dword [ebx], 0
jne 0x447000
pop ebx
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
test ecx, ecx
jne 0x44700c
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebx + 0x14], ecx
cmp ecx, eax
jbe 0x447029
cmp dword [ebx + 0x8c], 0
jne 0x447029
mov dword [ebx + 0x14], eax
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 8]
add eax, edx
cmp ecx, eax
jbe 0x447041
cmp dword [ebx + 0x8c], 0
je 0x447041
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
push ebp
push edi
jbe 0x4471f5
lea ecx, [ecx]
cmp dword [ebx + 8], 0
jne 0x44712a
mov eax, dword [ebx + 0x58]
test eax, eax
jbe 0x44712a
mov edi, 0x4000
mov dword [esp + 0x14], edi
cmp eax, edi
jae 0x447078
mov dword [esp + 0x14], eax
mov edi, eax
mov ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x7c]
push 0
push ecx
mov ecx, dword [ebx + 0x70]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x447201
mov edx, dword [ebx]
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x7c]
push edi
push edx
mov edx, dword [ebx + 0x64]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, edi
jne 0x447201
cmp dword [esi + 0xa0], 0
je 0x44711c
xor ebp, ebp
test edi, edi
jbe 0x44711c
add esi, 0xa4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xac]
mov edx, dword [ebx]
and eax, 0xfffd
lea edi, [edx + ebp]
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor byte [edi], dl
mov eax, dword [ebx]
movsx eax, byte [eax + ebp]
mov edi, dword [ecx + 0xb0]
call fcn.00446290
mov ecx, dword [ebx]
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x14]
jb 0x4470d3
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [ebx]
add dword [ebx + 0x3c], edi
sub dword [ebx + 0x58], edi
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
cmp dword [ebx + 0x84], 0
je 0x447195
cmp dword [ebx + 0x8c], 0
jne 0x447195
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x18]
lea ecx, [ebx + 4]
push 2
push ecx
mov dword [esp + 0x1c], eax
call fcn.00468010
mov ebp, eax
add esp, 8
test ebp, ebp
jl 0x447165
cmp dword [ebx + 0x1c], 0
je 0x447165
mov ebp, 0xfffffffd
mov edi, dword [ebx + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x50]
sub edi, esi
push edi
push edx
push eax
call fcn.00467d00
sub dword [ebx + 0x5c], edi
add dword [esp + 0x1c], edi
add esp, 0xc
mov dword [ebx + 0x50], eax
cmp ebp, 1
je 0x4471f5
test ebp, ebp
jne 0x44720c
mov esi, dword [esp + 0x1c]
jmp 0x4471eb
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4471a1
cmp dword [ebx + 0x58], eax
je 0x4471f5
mov edi, dword [ebx + 0x14]
cmp edi, eax
jb 0x4471aa
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x4471c1
mov ecx, dword [ebx + 4]
mov cl, byte [eax + ecx]
mov edx, dword [ebx + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x4471b0
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x50]
push edi
push edx
push eax
call fcn.00467d00
sub dword [ebx + 0x5c], edi
sub dword [ebx + 8], edi
sub dword [ebx + 0x14], edi
add dword [ebx + 0x10], edi
add dword [ebx + 4], edi
add dword [ebx + 0x18], edi
add esp, 0xc
add dword [esp + 0x10], edi
mov dword [ebx + 0x50], eax
cmp dword [ebx + 0x14], 0
ja 0x447050
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 8
ret
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
add esp, 8
ret