Function at 0x4027a0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x499e27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea esi, [ebx + 0x118]
lea eax, [esp + 0x34]
push 1
push eax
mov ecx, esi
call fcn.0048a360
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
setne byte [esp + 0x17]
call fcn.0048c403
mov al, byte [esp + 0x17]
test al, al
je 0x402809
push 0x4c2288
mov ecx, esi
call fcn.0048c7df
mov ecx, dword [0x4cc854]
mov dword [esp + 0x10], ecx
push 0x4c2398
lea ecx, [esp + 0x14]
mov dword [esp + 0xfc], 0
call fcn.0048c58c
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push esi
push eax
call fcn.0048c632
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 1
call fcn.0048c53c
lea ecx, [esp + 0x30]
mov byte [esp + 0xf8], 0
call fcn.0048c403
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0048c178
call fcn.004018d0
add esp, 4
test eax, eax
jne 0x402891
push 0x4c25dc
lea ecx, [ebx + 0x11c]
call fcn.0048c58c
jmp 0x402b24
mov eax, dword [0x4cc854]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x38]
mov byte [esp + 0xf8], 3
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
call fcn.00490080
mov eax, dword [esp + 0x10]
push 0
push 0x2000
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x104], 4
call fcn.00490192
test eax, eax
je 0x402af1
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
lea esi, [edx + ecx*8 + 0xe]
lea ecx, [esp + 0x20]
call fcn.0049048c
cmp eax, esi
jbe 0x402ad8
push 0
push esi
lea ecx, [esp + 0x28]
call fcn.00490334
lea eax, [esp + 0x38]
push 0xb8
push eax
lea ecx, [esp + 0x28]
call fcn.004902af
mov ecx, dword [esp + 0x3c]
inc ecx
push ecx
call fcn.0048c144
mov edx, dword [esp + 0x40]
mov ebp, eax
xor eax, eax
mov edi, ebp
lea ecx, [edx + 1]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x20]
call fcn.0049048c
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jbe 0x402ad1
test ecx, ecx
jl 0x402ad1
push 0
push ecx
lea ecx, [esp + 0x28]
call fcn.00490334
lea ecx, [esp + 0x20]
call fcn.0049048c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea esi, [edx + ecx]
cmp eax, esi
jb 0x402aca
test edx, edx
jle 0x402aca
push ecx
push ebp
lea ecx, [esp + 0x28]
call fcn.004902af
cmp byte [ebx + 0x114], 1
jne 0x4029d5
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
jle 0x4029d9
mov cl, byte [ebx + 4]
mov dl, byte [eax + ebp]
xor dl, cl
mov byte [eax + ebp], dl
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
jl 0x4029bf
jmp 0x4029d9
mov eax, dword [esp + 0x30]
mov byte [eax + ebp], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x4c25d8
push ebp
mov esi, ecx
call fcn.00475200
add esp, 8
test eax, eax
jne 0x402a12
push ebp
lea ecx, [esp + 0x1c]
call fcn.0048c58c
push ebp
call fcn.0048c16d
add esp, 4
jmp 0x402a76
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
lea edi, [esi + 1]
push edi
call fcn.0048c144
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov byte [ebx + esi], 0
mov eax, ecx
mov esi, ebp
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x134]
call fcn.0048c58c
push ebx
call fcn.0048c16d
push ebp
call fcn.0048c16d
add esp, 8
lea ecx, [esp + 0x20]
call fcn.004903ad
lea ecx, [esp + 0x20]
mov byte [esp + 0xf8], 3
call fcn.004900d5
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 2
call fcn.0048c403
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 0
call fcn.0048c403
lea ecx, [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
call fcn.0048c403
mov al, 1
jmp 0x402b3a
push 0x4c25ac
jmp 0x402add
push 0x4c2580
jmp 0x402add
push 0x4c2554
lea ecx, [ebx + 0x11c]
call fcn.0048c58c
lea ecx, [esp + 0x20]
call fcn.004903ad
lea ecx, [esp + 0x20]
mov byte [esp + 0xf8], 3
call fcn.004900d5
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 2
call fcn.0048c403
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 0
call fcn.0048c403
lea ecx, [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
call fcn.0048c403
xor al, al
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xec
ret 0x34