Function at 0x422610
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa90
push ebx
mov ebx, dword [esp + 0xac0]
push esi
mov esi, dword [esp + 0xaa4]
test esi, esi
push edi
je 0x422828
test bl, 1
je 0x422828
mov al, byte [esp + 0xaab]
mov dl, byte [esp + 0xac0]
xor al, dl
test al, 2
je 0x422828
cmp dword [0x548c54], 0x78f3
je 0x422828
mov eax, dword [0x58d26c]
test eax, eax
jne 0x422828
mov ecx, ebx
and ecx, 7
cmp cl, 2
jne 0x422828
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0xc], 0x852c0eee
mov dword [esp + 0x10], 0xc03b08cf
mov dword [esp + 0x14], 0xd13a0fdd
mov dword [esp + 0x18], 0xc12c14df
mov dword [esp + 0x1c], 0xd72c109a
mov dword [esp + 0x20], 0xcb260fc9
mov dword [esp + 0x24], 0xcb28059a
mov dword [esp + 0x28], 0xc927099a
mov dword [esp + 0x2c], 0xd72a46c3
mov dword [esp + 0x30], 0xc03d07df
mov dword [esp + 0x34], 0x853b099a
mov dword [esp + 0x38], 0xd12002df
mov dword [esp + 0x3c], 0xc021129a
mov dword [esp + 0x40], 0xc920009a
mov dword [esp + 0x44], 0xcd3e46df
mov dword [esp + 0x48], 0x852105d3
mov dword [esp + 0x4c], 0xd62c09de
mov dword [esp + 0x50], 0xd126089a
mov dword [esp + 0x54], 0xc631039a
mov dword [esp + 0x58], 0x852d03df
mov dword [esp + 0x5c], 0x852c0ece
mov dword [esp + 0x60], 0xc0330fc9
mov dword [esp + 0x64], 0x852f099a
mov dword [esp + 0x68], 0xe8795689
mov dword [esp + 0x6c], 0xca1d4694
mov dword [esp + 0x70], 0xc82c149a
mov dword [esp + 0x74], 0x852c10d5
mov dword [esp + 0x78], 0xd6200ece
mov dword [esp + 0x7c], 0xc8200a9a
mov dword [esp + 0x80], 0xd12812d3
mov dword [esp + 0x84], 0x892709d3
mov dword [esp + 0x88], 0xc025169a
mov dword [esp + 0x8c], 0x852c15db
mov dword [esp + 0x90], 0xcc2e03c8
mov dword [esp + 0x94], 0xd72c12c9
mov dword [esp + 0x98], 0xa5496694
rep stosd dword es:[edi], eax
mov edx, dword [esp + eax + 0xc]
add eax, 4
xor edx, 0xa54966ba
cmp eax, 0x90
mov dword [esp + eax + 0x98], edx
jl 0x4227c0
mov eax, dword [0x548c7c]
push 0x40000
push 0
push eax
lea ecx, [esp + 0xa8]
push 0xffffffffffffffff
push ecx
call fcn.00420f90
mov edx, dword [0x548c7c]
push 0x10
push edx
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
add esp, 0x34
mov edx, dword [esp + 0xac4]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x29c]
rep stosd dword es:[edi], eax
mov eax, dword [str.CD001]
mov cx, word [0x511790]
mov dword [esp + 0x29d], eax
mov eax, dword [esp + 0xac0]
mov word [esp + 0x2a1], cx
mov ecx, dword [esp + 0xabc]
push ebx
push edx
mov edx, dword [esp + 0xac0]
push eax
mov eax, dword [esp + 0xac0]
push ecx
mov ecx, dword [esp + 0xac0]
push edx
mov edx, dword [esp + 0xac0]
push eax
push ecx
mov ecx, dword [0x550c90]
push edx
mov edx, dword [esp + 0xac0]
push esi
lea eax, [esp + 0x2c0]
push 1
push eax
push ecx
push edx
mov byte [esp + 0x2d0], 0xff
mov byte [esp + 0x2d6], 1
call fcn.00416ed0
add esp, 0x34
cmp eax, 1
pop edi
pop esi
pop ebx
je 0x4228d0
or eax, 0xffffffff
add esp, 0xa90
ret
mov edx, dword [0x550c90]
mov eax, dword [esp + 0xa98]
inc edx
push 0
test eax, eax
mov dword [0x550c90], edx
push 0x800
je 0x4228fe
call dword [eax + 4]
add esp, 8
xor eax, eax
add esp, 0xa90
ret
call fcn.00474a20
add esp, 8
xor eax, eax
add esp, 0xa90
ret