Function at 0x422a10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x290
test eax, eax
push ebx
mov ebx, dword [esp + 0x2c0]
push ebp
push esi
push edi
je 0x422c2e
test bl, 1
je 0x422c2e
mov dl, byte [esp + 0x2c2]
mov cl, al
xor cl, dl
test cl, 2
je 0x422c2e
cmp dword [0x548c58], 0x229a
je 0x422c2e
mov ecx, dword [0x58d26c]
test ecx, ecx
jne 0x422c2e
mov edx, ebx
and edx, 0xf
cmp dl, 5
jne 0x422c2e
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xa0]
mov dword [esp + 0x10], 0xb18a3d6e
mov dword [esp + 0x14], 0xf49d3b4f
mov dword [esp + 0x18], 0xe59c3c5d
mov dword [esp + 0x1c], 0xf58a275f
mov dword [esp + 0x20], 0xe38a231a
mov dword [esp + 0x24], 0xff803c49
mov dword [esp + 0x28], 0xff8e361a
mov dword [esp + 0x2c], 0xfd813a1a
mov dword [esp + 0x30], 0xe38c7543
mov dword [esp + 0x34], 0xf49b345f
mov dword [esp + 0x38], 0xb19d3a1a
mov dword [esp + 0x3c], 0xe586315f
mov dword [esp + 0x40], 0xf487211a
mov dword [esp + 0x44], 0xfd86331a
mov dword [esp + 0x48], 0xf998755f
mov dword [esp + 0x4c], 0xb1873653
mov dword [esp + 0x50], 0xe28a3a5e
mov dword [esp + 0x54], 0xe5803b1a
mov dword [esp + 0x58], 0xf297301a
mov dword [esp + 0x5c], 0xb18b305f
mov dword [esp + 0x60], 0xb18a3d4e
mov dword [esp + 0x64], 0xf4953c49
mov dword [esp + 0x68], 0xb1893a1a
mov dword [esp + 0x6c], 0xdcdf6509
mov dword [esp + 0x70], 0xfebb7514
mov dword [esp + 0x74], 0xfc8a271a
mov dword [esp + 0x78], 0xb18a2355
mov dword [esp + 0x7c], 0xe2863d4e
mov dword [esp + 0x80], 0xfc86391a
mov dword [esp + 0x84], 0xe58e2153
mov dword [esp + 0x88], 0xbd813a53
mov dword [esp + 0x8c], 0xf483251a
mov dword [esp + 0x90], 0xb18a265b
mov dword [esp + 0x94], 0xf8883048
mov dword [esp + 0x98], 0xe38a2149
mov dword [esp + 0x9c], 0x91ef5514
rep stosd dword es:[edi], eax
mov ecx, dword [esp + eax + 0x10]
add eax, 4
xor ecx, 0x91ef553a
cmp eax, 0x90
mov dword [esp + eax + 0x9c], ecx
jl 0x422bbe
mov edx, dword [0x548c7c]
push 0x40000
push 0
push edx
lea eax, [esp + 0xac]
push 0xffffffffffffffff
push eax
call fcn.00420f90
mov ecx, dword [0x548c7c]
push 0x10
push ecx
call fcn.00486e20
push 0
push 0
push str.Status
call fcn.00488970
or eax, 0x80000000
push 0
push eax
push str.Status
call fcn.00488b80
mov eax, dword [esp + 0x2e0]
add esp, 0x34
mov esi, dword [esp + 0x2c8]
mov edi, dword [esp + 0x2c4]
mov ebp, dword [esp + 0x2c0]
mov edx, dword [esp + 0x2b8]
mov ecx, dword [esp + 0x2b4]
push ebx
mov ebx, dword [esp + 0x2c0]
push esi
push edi
push ebp
push ebx
push edx
mov edx, dword [esp + 0x2c8]
push ecx
mov ecx, dword [0x550c88]
push edx
mov edx, dword [0x550c90]
push eax
mov eax, dword [0x536274]
push eax
mov eax, dword [esp + 0x2cc]
push ecx
push edx
push eax
call fcn.00416ed0
mov ecx, dword [0x536274]
add esp, 0x34
cmp eax, ecx
je 0x422ca4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x290
ret
mov edx, dword [esp + 0x2cc]
mov eax, dword [0x550c90]
push edx
mov edx, dword [esp + 0x2bc]
push esi
push edi
push ebp
push ebx
push edx
mov edx, dword [esp + 0x2cc]
push edx
mov edx, dword [esp + 0x2cc]
push edx
mov edx, dword [esp + 0x2cc]
push edx
mov edx, dword [esp + 0x2c8]
add eax, ecx
push ecx
mov ecx, dword [0x550c8c]
mov dword [0x550c90], eax
push ecx
push eax
push edx
call fcn.00416ed0
mov ecx, dword [0x536274]
add esp, 0x34
cmp eax, ecx
je 0x422d0d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x290
ret
mov eax, dword [0x550c90]
add eax, ecx
mov dword [0x550c90], eax
mov eax, dword [0x550c88]
push eax
call fcn.00487ea0
mov ecx, dword [0x550c8c]
push ecx
call fcn.00487ea0
mov eax, dword [esp + 0x2b0]
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [0x550c88], ecx
mov dword [0x550c8c], ecx
je 0x422d6a
mov edx, dword [0x536274]
push ecx
shl edx, 0xc
push edx
call dword [eax + 4]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret
mov eax, dword [0x536274]
push ecx
shl eax, 0xc
push eax
call fcn.00474a20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret