Function at 0x4215b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x290
push ebx
mov ebx, dword [esp + 0x2a0]
push esi
push edi
test ebx, ebx
je 0x4217d6
mov eax, dword [esp + 0x2c8]
test al, 1
je 0x4217d6
mov cl, byte [esp + 0x2b8]
mov dl, bh
shr cl, 4
and cl, 8
and dl, 8
xor cl, dl
je 0x4217d6
cmp word [0x737974], 0x62cc
je 0x4217d6
mov ecx, dword [0x78ca5c]
test ecx, ecx
jne 0x4217d6
and eax, 0x1f
cmp al, 0x19
jne 0x4217d6
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0xc], 0x8303b67d
mov dword [esp + 0x10], 0xc614b05c
mov dword [esp + 0x14], 0xd715b74e
mov dword [esp + 0x18], 0xc703ac4c
mov dword [esp + 0x1c], 0xd103a809
mov dword [esp + 0x20], 0xcd09b75a
mov dword [esp + 0x24], 0xcd07bd09
mov dword [esp + 0x28], 0xcf08b109
mov dword [esp + 0x2c], 0xd105fe50
mov dword [esp + 0x30], 0xc612bf4c
mov dword [esp + 0x34], 0x8314b109
mov dword [esp + 0x38], 0xd70fba4c
mov dword [esp + 0x3c], 0xc60eaa09
mov dword [esp + 0x40], 0xcf0fb809
mov dword [esp + 0x44], 0xcb11fe4c
mov dword [esp + 0x48], 0x830ebd40
mov dword [esp + 0x4c], 0xd003b14d
mov dword [esp + 0x50], 0xd709b009
mov dword [esp + 0x54], 0xc01ebb09
mov dword [esp + 0x58], 0x8302bb4c
mov dword [esp + 0x5c], 0x8303b65d
mov dword [esp + 0x60], 0xc61cb75a
mov dword [esp + 0x64], 0x8300b109
mov dword [esp + 0x68], 0xee56ee1a
mov dword [esp + 0x6c], 0xcc32fe07
mov dword [esp + 0x70], 0xce03ac09
mov dword [esp + 0x74], 0x8303a846
mov dword [esp + 0x78], 0xd00fb65d
mov dword [esp + 0x7c], 0xce0fb209
mov dword [esp + 0x80], 0xd707aa40
mov dword [esp + 0x84], 0x8f08b140
mov dword [esp + 0x88], 0xc60aae09
mov dword [esp + 0x8c], 0x8303ad48
mov dword [esp + 0x90], 0xca01bb5b
mov dword [esp + 0x94], 0xd103aa5a
mov dword [esp + 0x98], 0xa366de07
rep stosd dword es:[edi], eax
mov ecx, dword [esp + eax + 0xc]
add eax, 4
xor ecx, 0xa366de29
cmp eax, 0x90
mov dword [esp + eax + 0x98], ecx
jl 0x42175e
mov edx, dword [0x748004]
push 0x40000
push 0
push edx
lea eax, [esp + 0xa8]
push 0xffffffffffffffff
push eax
call fcn.0042b5a0
mov eax, dword [0x78ca5c]
add esp, 0x14
test eax, eax
jne 0x4217b3
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
add esp, 0x18
mov esi, dword [esp + 0x2a0]
push 0
lea edi, [esi + 0xad8]
push edi
push esi
call fcn.00416f30
mov edx, dword [esp + 0x2d4]
mov eax, dword [esp + 0x2d0]
mov ecx, dword [esp + 0x2cc]
push edx
mov edx, dword [esp + 0x2cc]
push eax
mov eax, dword [esp + 0x2cc]
push ecx
mov ecx, dword [esp + 0x2cc]
push edx
mov edx, dword [esp + 0x2cc]
push eax
mov eax, dword [esp + 0x2cc]
push ecx
mov ecx, dword [0x750018]
push edx
push eax
push ebx
push 1
push edi
push 0
push ecx
push esi
call fcn.0041c4c0
add esp, 0x44
cmp eax, 1
pop edi
pop esi
pop ebx
je 0x421854
or eax, 0xffffffff
add esp, 0x290
ret
mov edx, dword [0x750018]
mov eax, dword [esp + 0x298]
inc edx
test eax, eax
mov dword [0x750018], edx
je 0x421888
mov eax, dword [eax + 4]
test eax, eax
je 0x421888
push 0
push 0x800
call eax
add esp, 8
xor eax, eax
add esp, 0x290
ret
push 0
push 0x800
call fcn.004a88c0
add esp, 8
xor eax, eax
add esp, 0x290
ret