Function at 0x4228f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x5c1a00]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 1
mov dword [esp + 0x18], ebx
call fcn.004096f2
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x422931
xorps xmm0, xmm0
lea ecx, [ebx + 0xf]
movups xmmword [esp + 0x18], xmm0
mov word [esp + 0x18], 0x43
lea ebx, [ecx - 0xe]
jmp 0x422939
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
test bl, 1
je 0x422970
cmp ecx, 0xf
jbe 0x422970
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422966
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422b7a
push ecx
push edx
call fcn.00409722
add esp, 8
xor esi, esi
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
xor ebx, ebx
nop word [eax + eax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x4236e8]
movss dword [esp + 0x10], xmm0
cmp esi, edi
je 0x4229b6
movss dword [esi], xmm0
add esi, 4
mov dword [esp + 0x1c], esi
jmp 0x4229cd
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00401d60
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc ebx
cmp ebx, 0xa
jl 0x422990
mov ebp, dword [esp + 0x18]
xor ebx, ebx
sub esi, ebp
xor eax, eax
mov ecx, esi
sar ecx, 2
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x422a5d
cmp ecx, 0x3fffffff
ja 0x422b70
lea ebx, [ecx*4]
cmp ebx, 0x1000
jb 0x422a30
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x422b75
push eax
call fcn.004096f2
add esp, 4
test eax, eax
je 0x422b7a
mov ecx, dword [esp + 0x10]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x422a47
test ebx, ebx
je 0x422a45
push ebx
call fcn.004096f2
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
jmp 0x422a47
xor ebx, ebx
push esi
lea eax, [ebx + ecx*4]
push ebp
push ebx
mov dword [esp + 0x1c], eax
call fcn.0040a8d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
sub eax, ebx
sar eax, 2
mov dword [esp + 0x10], eax
test eax, eax
je 0x422af3
xor esi, esi
movzx eax, byte [esi + 0x5c1420]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push 0x5c36c8
mov byte [esi + 0x5c1420], al
call fcn.00401660
push eax
call fcn.00402010
movzx eax, byte [esi + 0x5c1420]
add al, 0x4e
xor al, 0xdc
push str.Earth
push 0x5c36c8
mov byte [esi + 0x5c1420], al
call fcn.00401660
push eax
call fcn.00402010
movzx eax, byte [esi + 0x5c1420]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x423568
mov byte [esi + 0x5c1420], al
call fcn.0040eb0e
xor byte [esi + 0x5c1420], al
add esp, 0x1c
inc esi
cmp esi, 0x4ac
jb 0x422a70
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x422b22
lea ecx, [eax*4]
cmp ecx, 0x1000
jb 0x422b18
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x422b7a
mov ebx, edx
push ecx
push ebx
call fcn.00409722
add esp, 8
push 1
push dword [esp + 0x18]
call fcn.00409722
add esp, 8
test ebp, ebp
je 0x422b5d
sub edi, ebp
mov eax, ebp
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x422b53
mov ebp, dword [eax - 4]
add edi, 0x23
sub eax, ebp
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422b7a
push edi
push ebp
call fcn.00409722
add esp, 8
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409a3b
add esp, 0x24
ret
call fcn.004055d0
call fcn.00405360
call fcn.0040e04f
int3