Function at 0x488b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0xc]
xor ebx, ebx
push edi
mov eax, esi
mov dword [esp + 0x10], ebx
call fcn.0046cae0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x488b7e
mov edi, esi
call fcn.0046c7c0
test eax, eax
jne 0x488bab
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x33
mov byte [esi + 0x62], bl
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test dword [eax + 0xc], 0x4000000
mov edi, dword [ebp + 0xc]
je 0x488bcc
mov ecx, edi
call fcn.0048d190
test eax, eax
jne 0x488bd5
cmp dword [edi + 0x24], ebx
jne 0x488bd5
cmp dword [ebp + 0x1c], ebx
je 0x488d80
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
push ecx
push edi
push 3
push ebx
push ebx
push edx
call fcn.0049fd70
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0048d910
or dword [esp + 0x38], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
lea edx, [eax + 1]
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0xc]
lea eax, [edx + eax + 1]
mov dword [ecx + 0x48], eax
mov eax, dword [esi + 0xc]
add esp, 0x20
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x488c34
mov edi, esi
call fcn.0046c7c0
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x488c5e
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0xe
mov byte [esi + 0x62], bl
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0xc], ebx
jle 0x488cff
lea ecx, [ecx]
cmp dword [esp + 0x18], 0xffffffff
je 0x488c84
mov eax, 1
shl eax, cl
test dword [esp + 0x18], eax
je 0x488cf1
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx + 1]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x488cb2
mov edi, esi
call fcn.0046c7c0
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x488cdc
mov eax, dword [esp + 0x24]
inc dword [esi + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x1c
mov byte [esi + 0x62], bl
mov eax, dword [esp + 0x20]
push eax
push edi
push esi
mov eax, ecx
call fcn.0049fe40
mov ecx, dword [esp + 0x28]
add esp, 0xc
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0xc]
jl 0x488c70
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push edi
push 1
push ebx
push 0x6a
push ecx
push edx
call fcn.0049fd00
mov eax, dword [esi + 0xc]
add esp, 0x24
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x488d41
mov edi, esi
call fcn.0046c7c0
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x488d6e
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
inc dword [esi + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x33
mov byte [esi + 0x62], bl
mov eax, dword [esp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.0048d380
add esp, 0xc
cmp dword [edi + 0x1c], ebx
jne 0x488e4c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
mov eax, edi
call fcn.00488f80
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x488dba
mov edi, esi
call fcn.0046c7c0
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x488de8
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
inc dword [esi + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
cmp dword [ebp + 0x18], ebx
mov byte [eax + 3], bl
setne cl
mov dword [eax + 4], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x38
mov dword [eax + 8], ecx
mov byte [esi + 0x62], bl
cmp dword [ebp + 0x18], ebx
je 0x488e4c
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x14]
mov edi, dword [esi]
mov dword [esp + 0x20], ecx
cmp edx, ebx
je 0x488e3f
cmp byte [edi + 0x1e], bl
jne 0x488e3f
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*4 - 5]
lea ecx, [edx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x10]
call fcn.0046cd60
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov dword [eax + 0x10], ebx
cmp ecx, ebx
jne 0x488e36
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x488e4c
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
jmp 0x488e4c
mov eax, 0xfffffffe
call fcn.0046cd60
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
test dword [edx + 0xc], 0x4000000
je 0x488f3c
mov edx, dword [edi + 4]
mov eax, edx
cmp edx, ebx
jne 0x488e6f
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x488e85
cmp byte [edx], bl
je 0x488e78
inc eax
cmp byte [eax], bl
jne 0x488e73
sub eax, edx
and eax, 0x3fffffff
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x44]
add eax, 0x34
mov dword [esp + 0x24], eax
cmp dword [eax + 0xc], ebx
je 0x488edf
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp ecx, ebx
jle 0x488ecd
movzx ecx, byte [edx]
movzx edx, byte [ecx + 0x526638]
lea ecx, [eax*8]
xor edx, ecx
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov edx, dword [esp + 0x20]
dec ecx
inc edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
jg 0x488ea2
mov ecx, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
jmp 0x488ee1
xor edx, edx
push ecx
mov ecx, dword [edi + 4]
push ecx
call fcn.0045a470
add esp, 8
cmp eax, ebx
je 0x488f3c
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x488f3c
jmp 0x488f04
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push ebx
push eax
push edi
push edx
call fcn.0048dc70
add esp, 0x10
cmp eax, ebx
je 0x488f2d
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push 2
push ecx
push edi
push eax
push edx
call fcn.0049fbc0
add esp, 0x18
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x488f00
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push edi
push 2
push ebx
push 0x6a
push ecx
push edx
call fcn.0049fd00
mov eax, dword [esi + 0x20]
add esp, 0x24
cmp eax, ebx
je 0x488f79
mov ecx, dword [esp + 0x14]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0xc]
sub eax, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret