Function at 0x42bf90
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 0x42c1ae
test bl, 1
je 0x42c1ae
mov al, byte [esp + 0xac0]
mov cl, byte [esp + 0xaab]
shr al, 1
and al, 2
and cl, 2
xor al, cl
je 0x42c1ae
cmp dword [0x613fec], 0x78f3
je 0x42c1ae
mov eax, dword [0x6c7d78]
test eax, eax
jne 0x42c1ae
mov edx, ebx
and edx, 0xf
cmp dl, 1
jne 0x42c1ae
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 ecx, dword [esp + eax + 0xc]
add eax, 4
xor ecx, 0x2a60df88
cmp eax, 0x90
mov dword [esp + eax + 0x98], ecx
jl 0x42c145
mov edx, dword [0x683854]
push 0x40000
push 0
push edx
lea eax, [esp + 0xa8]
push 0xffffffffffffffff
push eax
call fcn.0042a3e0
mov ecx, dword [0x683854]
push 0x10
push ecx
call fcn.004b4a10
push 0
push 0
push 0x612700
call fcn.004b7620
or eax, 0x80000000
push 0
push eax
push 0x612700
call fcn.004b7850
add esp, 0x34
mov edx, dword [str.CD001]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x29c]
rep stosd dword es:[edi], eax
mov ax, word [0x6124e8]
mov ecx, dword [esp + 0xac4]
mov dword [esp + 0x29d], edx
mov edx, dword [esp + 0xac0]
mov word [esp + 0x2a1], ax
mov eax, dword [esp + 0xabc]
push ebx
push ecx
mov ecx, dword [esp + 0xac0]
push edx
mov edx, dword [esp + 0xac0]
push eax
mov eax, dword [esp + 0xac0]
push ecx
mov ecx, dword [esp + 0xac0]
push edx
push eax
mov eax, dword [0x68b868]
push ecx
mov ecx, dword [esp + 0xac0]
push esi
lea edx, [esp + 0x2c0]
push 1
push edx
push 0
push eax
push ecx
mov byte [esp + 0x2d4], 0xff
mov byte [esp + 0x2da], 1
call fcn.0041b910
add esp, 0x38
cmp eax, 1
pop edi
pop esi
pop ebx
je 0x42c257
or eax, 0xffffffff
add esp, 0xa90
ret
mov edx, dword [0x68b868]
mov eax, dword [esp + 0xa98]
inc edx
test eax, eax
mov dword [0x68b868], edx
je 0x42c28b
mov eax, dword [eax + 4]
test eax, eax
je 0x42c28b
push 0
push 0x800
call eax
add esp, 8
xor eax, eax
add esp, 0xa90
ret
push 0
push 0x800
call fcn.004f4f40
add esp, 8
xor eax, eax
add esp, 0xa90
ret