Function at 0x42f4d0
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 0x42f6ee
test bl, 1
je 0x42f6ee
mov al, byte [esp + 0xac0]
mov cl, byte [esp + 0xaab]
shr al, 1
and al, 2
and cl, 2
xor al, cl
je 0x42f6ee
cmp dword [0x68dd8c], 0x78f3
je 0x42f6ee
mov eax, dword [0x75e25c]
test eax, eax
jne 0x42f6ee
mov edx, ebx
and edx, 0xf
cmp dl, 1
jne 0x42f6ee
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 0x42f685
mov edx, dword [0x7150f4]
push 0x40000
push 0
push edx
lea eax, [esp + 0xa8]
push 0xffffffffffffffff
push eax
call fcn.0042d900
mov ecx, dword [0x7150f4]
push 0x10
push ecx
call fcn.004dd630
push 0
push 0
push 0x68c7e8
call fcn.004e04f0
or eax, 0x80000000
push 0
push eax
push 0x68c7e8
call fcn.004e0720
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 [0x68c5e8]
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 [0x71d108]
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.0041e720
add esp, 0x38
cmp eax, 1
pop edi
pop esi
pop ebx
je 0x42f797
or eax, 0xffffffff
add esp, 0xa90
ret
mov edx, dword [0x71d108]
mov eax, dword [esp + 0xa98]
inc edx
test eax, eax
mov dword [0x71d108], edx
je 0x42f7cb
mov eax, dword [eax + 4]
test eax, eax
je 0x42f7cb
push 0
push 0x800
call eax
add esp, 8
xor eax, eax
add esp, 0xa90
ret
push 0
push 0x800
call fcn.004413e0
add esp, 8
xor eax, eax
add esp, 0xa90
ret