Function at 0x42d540
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 0x42d76d
test bl, 1
je 0x42d76d
mov dl, byte [esp + 0x2c2]
mov cl, al
xor cl, dl
test cl, 2
je 0x42d76d
cmp dword [0x747fe0], 0x229a
je 0x42d76d
mov ecx, dword [0x78ca5c]
test ecx, ecx
jne 0x42d76d
mov edx, ebx
and edx, 0xf
cmp dl, 5
jne 0x42d76d
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 0x42d6ee
mov edx, dword [0x748004]
push 0x40000
push 0
push edx
lea eax, [esp + 0xac]
push 0xffffffffffffffff
push eax
call fcn.0042b5a0
mov eax, dword [0x78ca5c]
add esp, 0x14
test eax, eax
jne 0x42d743
mov ecx, dword [0x748004]
push 0x10
push ecx
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
mov eax, dword [esp + 0x2c4]
add esp, 0x18
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 [0x750010]
push edx
mov edx, dword [0x750018]
push eax
mov eax, dword [0x7378ac]
push eax
mov eax, dword [esp + 0x2cc]
push ecx
push 0
push edx
push eax
call fcn.0041c4c0
mov ecx, dword [0x7378ac]
add esp, 0x38
cmp eax, ecx
je 0x42d7e5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x290
ret
mov edx, dword [esp + 0x2cc]
mov eax, dword [0x750018]
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 [0x750014]
xor esi, esi
push ecx
push esi
push eax
push edx
mov dword [0x750018], eax
call fcn.0041c4c0
mov ecx, dword [0x7378ac]
add esp, 0x38
cmp eax, ecx
je 0x42d851
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x290
ret
mov eax, dword [0x750018]
add eax, ecx
mov dword [0x750018], eax
mov eax, dword [0x750010]
push eax
call fcn.004f5720
mov ecx, dword [0x750014]
push ecx
call fcn.004f5720
mov eax, dword [esp + 0x2b0]
add esp, 8
cmp eax, esi
mov dword [0x750010], esi
mov dword [0x750014], esi
je 0x42d8b2
mov eax, dword [eax + 4]
cmp eax, esi
je 0x42d8b2
mov edx, dword [0x7378ac]
push esi
shl edx, 0xc
push edx
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret
mov eax, dword [0x7378ac]
push esi
shl eax, 0xc
push eax
call fcn.004a88c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret