Function at 0x42d120
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 0x42d347
test bl, 1
je 0x42d347
mov al, byte [esp + 0xaab]
mov dl, byte [esp + 0xac0]
xor al, dl
test al, 2
je 0x42d347
cmp dword [0x747fdc], 0x78f3
je 0x42d347
mov eax, dword [0x78ca5c]
test eax, eax
jne 0x42d347
mov ecx, ebx
and ecx, 7
cmp cl, 3
jne 0x42d347
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 0x42d2d0
mov eax, dword [0x748004]
push 0x40000
push 0
push eax
lea ecx, [esp + 0xa8]
push 0xffffffffffffffff
push ecx
call fcn.0042b5a0
mov eax, dword [0x78ca5c]
add esp, 0x14
test eax, eax
jne 0x42d324
mov edx, dword [0x748004]
push 0x10
push edx
call fcn.004f3450
add esp, 8
push 0
push 0
push 0x671120
call fcn.004f6430
or eax, 0x80000000
push 0
push eax
push 0x671120
call fcn.004f6640
add esp, 0x18
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 [0x670f38]
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 [0x750018]
push edx
mov edx, dword [esp + 0xac0]
push esi
lea eax, [esp + 0x2c0]
push 1
push eax
push 0
push ecx
push edx
mov byte [esp + 0x2d4], 0xff
mov byte [esp + 0x2da], 1
call fcn.0041c4c0
add esp, 0x38
cmp eax, 1
pop edi
pop esi
pop ebx
je 0x42d3f1
or eax, 0xffffffff
add esp, 0xa90
ret
mov edx, dword [0x750018]
mov eax, dword [esp + 0xa98]
inc edx
test eax, eax
mov dword [0x750018], edx
je 0x42d425
mov eax, dword [eax + 4]
test eax, eax
je 0x42d425
push 0
push 0x800
call eax
add esp, 8
xor eax, eax
add esp, 0xa90
ret
push 0
push 0x800
call fcn.004a88c0
add esp, 8
xor eax, eax
add esp, 0xa90
ret