Function at 0x4de0b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x561be8]
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x1c], eax
je 0x4de0cd
cmp dword [ebx + 0x38], esi
jne 0x4de0e1
pop esi
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004a2d97
add esp, 0x18
ret
cmp dword [ebx + 0x9c], esi
je 0x4de0f2
push ebx
call fcn.004ddd40
add esp, 4
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.004dd880
add esp, 0xc
test eax, eax
je 0x4de123
pop esi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004a2d97
add esp, 0x18
ret
push ebp
push 0x90
call fcn.004a340f
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x4de16f
push 0x4000
call fcn.004a340f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 0x48], edx
mov edx, dword [esp + 0x38]
add esp, 4
cmp eax, esi
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x8c], edx
jne 0x4de184
push ebp
call fcn.004a235d
add esp, 4
pop ebp
pop esi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004a2d97
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
cmp eax, esi
mov dword [ebp + 0x40], esi
je 0x4de194
mov ecx, dword [ebx + 0x54]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, esi
je 0x4de1cd
mov dword [ecx], 6
mov eax, dword [ebx + 0x50]
and eax, 6
sub eax, 2
je 0x4de1c7
sub eax, 2
je 0x4de1bf
sub eax, 2
jne 0x4de1cd
mov dword [ecx], 1
jmp 0x4de1cd
mov dword [ecx], 2
jmp 0x4de1cd
mov dword [ecx], 9
mov eax, dword [ebx + 0x5c]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x54], eax
mov ecx, dword [ebx + 0x54]
mov dword [ebp + 0x84], ecx
mov eax, dword [ebx + 0x20]
push edi
mov dword [ebp + 0x80], eax
lea edi, [ebp + 0x60]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2c]
xor esi, esi
mov dword [ebp + 0x88], ecx
mov dword [ebp + 0x18], esi
cmp dword [ebx + 0x54], 8
jne 0x4de241
cmp edx, esi
jne 0x4de241
push 0x38
push 0x542e4c
lea eax, [ebp + 4]
push 0xfffffffffffffff1
push eax
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [eax], esi
mov dword [ebp + 8], esi
call fcn.004c7840
mov edi, eax
add esp, 0x10
cmp edi, esi
jne 0x4de2cb
mov dword [ebp + 0x40], 1
mov edx, dword [ebx + 0x60]
mov dword [ebp + 0x58], edx
mov eax, dword [ebx + 0x64]
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x5c], eax
mov ecx, dword [ebx + 0x98]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], esi
mov dword [ebx + 0x9c], ebp
mov ebp, dword [esp + 0x3c]
cmp ebp, esi
je 0x4de35b
call fcn.004c74d0
mov dword [ebx + 0xb0], eax
lea esi, [ebx + 0xa4]
mov edi, eax
mov edx, esi
mov eax, ebp
call fcn.004dce90
mov eax, dword [ebx + 0x9c]
mov edx, dword [eax + 0x3c]
mov ecx, dword [eax + 0x88]
mov eax, dword [ebx + 0x1c]
push 0
add ecx, edx
mov edx, dword [ebx + 0x20]
push ecx
push edx
push eax
call dword [ebx + 0x10]
add esp, 0x10
test eax, eax
je 0x4de2e7
pop edi
pop ebp
pop esi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004a2d97
add esp, 0x18
ret
push ebp
call fcn.004a235d
add esp, 4
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004a2d97
add esp, 0x18
ret
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push 0xc
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call dword [ebx + 4]
add esp, 0x10
cmp eax, 0xc
jb 0x4de2b5
xor ebp, ebp
jmp 0x4de310
mov eax, dword [ebx + 0xac]
mov dl, byte [esp + ebp + 0x18]
mov edi, dword [ebx + 0xb0]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor dl, cl
movsx eax, dl
mov byte [esp + ebp + 0x18], dl
call fcn.004dce40
inc ebp
cmp ebp, 0xc
jl 0x4de310
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
call fcn.004a2d97
add esp, 0x18
ret