Function at 0x402b60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x499e60
push eax
mov dword fs:[0], esp
sub esp, 0x24
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
lea edi, [esi + 0x118]
push eax
mov ecx, edi
call fcn.0048a360
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.0048c403
test bl, bl
je 0x402bc0
push 0x4c2288
mov ecx, edi
call fcn.0048c7df
mov eax, dword [0x4cc854]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], eax
push 0x4c2398
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.0048c58c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edi
push edx
call fcn.0048c632
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.0048c53c
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.0048c403
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048c178
call fcn.004018d0
add esp, 4
test eax, eax
jne 0x402c47
push 0x4c2634
lea ecx, [esi + 0x11c]
call fcn.0048c58c
jmp 0x402e4c
lea ecx, [esp + 0x24]
call fcn.00490080
mov ecx, dword [esp + 0x10]
push 0
push 0x2000
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 3
call fcn.00490192
test eax, eax
je 0x402e3e
lea ecx, [esp + 0x24]
call fcn.0049048c
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jbe 0x402e25
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00490334
lea edx, [esp + 0x14]
push 4
push edx
lea ecx, [esp + 0x2c]
call fcn.004902af
push 1
push 0x32
lea ecx, [esp + 0x2c]
call fcn.00490334
mov eax, dword [esp + 0x14]
add eax, 0xa
push eax
call fcn.0048c144
mov ecx, dword [esp + 0x18]
mov ebp, eax
add ecx, 0xa
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ebp
call fcn.004902af
cmp byte [esi + 0x114], 1
jne 0x402d11
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x402d11
mov cl, byte [esi + 4]
mov bl, byte [eax + ebp]
xor bl, cl
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
jl 0x402cfd
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0x4c25d8
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov esi, ecx
call fcn.00475200
add esp, 8
test eax, eax
je 0x402dd1
push 0x4c25d8
push ebp
call fcn.00475200
mov edx, eax
add esp, 8
test edx, edx
je 0x402d7d
mov bl, 0x26
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jbe 0x402dd5
cmp byte [edx + 3], bl
jne 0x402d66
cmp byte [edx + 4], bl
je 0x402dd5
add edx, 2
push 0x4c25d8
push edx
call fcn.00475200
mov edx, eax
add esp, 8
test edx, edx
jne 0x402d4b
mov ecx, dword [esp + 0x70]
push 0x4d0e20
call fcn.0048c58c
push ebp
call fcn.0048c16d
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004903ad
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004900d5
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.0048c403
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0048c403
mov al, 1
jmp 0x402e6d
mov edx, dword [esp + 0x70]
test edx, edx
je 0x402d7d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
lea edx, [esi + 1]
push edx
call fcn.0048c144
mov ebx, eax
mov ecx, esi
mov eax, ecx
mov edi, ebx
mov byte [ebx + esi], 0
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x70]
push ebx
call fcn.0048c58c
push ebx
call fcn.0048c16d
add esp, 4
jmp 0x402d8b
push 0x4c2608
lea ecx, [esi + 0x11c]
call fcn.0048c58c
lea ecx, [esp + 0x24]
call fcn.004903ad
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004900d5
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.0048c403
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0048c403
xor al, al
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 0x30