Function at 0x40e90b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x5657a8]
xor ebx, ebx
mov dword [eax + 0x20], ebx
call fcn.0040734a
call fcn.004097ef
cmp dword [0x5658a0], 0xf
mov ecx, 0x56588c
push 0x80e2
cmova ecx, dword [0x56588c]
xor edx, edx
call fcn.00434882
pop ecx
mov ecx, str.Nickelodeon_All_Star_Brawl_2.exe
call fcn.0041c46c
test al, al
je 0x40f185
mov eax, dword [0x5657a8]
mov eax, dword [eax + 0x3e48]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call fcn.0043701f
mov esi, eax
call fcn.00430599
call fcn.004305b6
movss xmm2, dword [esp + 0x18]
lea ecx, [esp + 0x20]
movss xmm1, dword [esp + 0x1c]
movaps xmm0, xmm2
xorps xmm3, xmm3
addss xmm0, xmm3
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0x14], xmm0
movss xmm0, dword [0x4db238]
addss xmm2, xmm0
addss xmm1, xmm0
movaps xmm0, xmmword [0x4db4a0]
movups xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [0x4db4c0]
movups xmmword [esp + 0x30], xmm0
movaps xmm0, xmmword [0x4db4d0]
movups xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [0x4db4a0]
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x1c], xmm1
movups xmmword [esp + 0x50], xmm0
call fcn.0042d410
push eax
lea ecx, [esp + 0x34]
call fcn.0042d410
push eax
lea ecx, [esp + 0x48]
call fcn.0042d410
push eax
lea ecx, [esp + 0x5c]
call fcn.0042d410
push eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004480fb
call fcn.00406a12
movss xmm1, dword [0x4db0e0]
xor ecx, ecx
call fcn.0042e3d4
push ebx
push ecx
xor esi, esi
mov dword [esp + 0x20], 0x43eb0000
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0x43c80000
inc esi
xor ecx, ecx
push eax
mov edx, esi
call fcn.004322f2
add esp, 0xc
mov edi, 0x5671c0
push 3
pop ebp
test al, al
je 0x40ed2e
movss xmm0, dword [0x4db1d0]
call fcn.004392d6
push edi
mov ecx, 0x564988
mov dword [esp + 0x14], 0x428c0000
mov dword [esp + 0x18], 0x420c0000
call fcn.0041614b
xor edx, edx
mov byte [esp + 0x1c], bl
push 0x7e
pop ecx
div ecx
mov ecx, ebx
inc dl
mov al, dl
mov byte [esp + 0x18], dl
xor al, 0xef
mov byte [esp + 0x19], al
mov al, dl
xor al, 0x8e
mov byte [esp + 0x1a], al
mov al, dl
xor al, 0x92
mov byte [esp + 0x1b], al
mov al, byte [esp + ecx + 0x19]
xor al, dl
mov byte [ecx + 0x565d2c], al
inc ecx
cmp ecx, ebp
jb 0x40ead5
push ecx
lea edx, [esp + 0x14]
mov byte [0x565d2f], bl
mov ecx, 0x565d2c
call fcn.00450bac
pop ecx
test al, al
je 0x40eb06
mov dword [0x4e3370], esi
movss xmm1, dword [0x4db288]
xorps xmm0, xmm0
call fcn.004391f5
push edi
mov ecx, 0x564988
mov dword [esp + 0x14], 0x428c0000
mov dword [esp + 0x18], 0x420c0000
call fcn.0041614b
xor edx, edx
mov byte [esp + 0x1c], bl
push 0x7e
pop ecx
div ecx
mov ecx, ebx
inc dl
mov al, dl
mov byte [esp + 0x18], dl
xor al, 0xef
mov byte [esp + 0x19], al
mov al, dl
xor al, 0x95
mov byte [esp + 0x1a], al
mov al, dl
xor al, 0x84
mov byte [esp + 0x1b], al
mov al, byte [esp + ecx + 0x19]
xor al, dl
mov byte [ecx + 0x565c74], al
inc ecx
cmp ecx, ebp
jb 0x40eb5c
push ecx
lea edx, [esp + 0x14]
mov byte [0x565c77], bl
mov ecx, 0x565c74
call fcn.00450bac
pop ecx
test al, al
je 0x40eb91
mov dword [0x4e3370], 2
movss xmm1, dword [0x4db288]
xorps xmm0, xmm0
call fcn.004391f5
push edi
mov ecx, 0x564988
mov dword [esp + 0x14], 0x428c0000
mov dword [esp + 0x18], 0x420c0000
call fcn.0041614b
xor edx, edx
mov byte [esp + 0x1c], bl
push 0x7e
pop ecx
div ecx
mov ecx, ebx
inc dl
mov al, dl
mov byte [esp + 0x18], dl
xor al, 0xef
mov byte [esp + 0x19], al
mov al, dl
xor al, 0x9b
mov byte [esp + 0x1a], al
mov al, dl
xor al, 0xba
mov byte [esp + 0x1b], al
mov al, byte [esp + ecx + 0x19]
xor al, dl
mov byte [ecx + 0x565db4], al
inc ecx
cmp ecx, ebp
jb 0x40ebe7
push ecx
lea edx, [esp + 0x14]
mov byte [0x565db7], bl
mov ecx, 0x565db4
call fcn.00450bac
pop ecx
test al, al
je 0x40ec18
mov dword [0x4e3370], ebp
movss xmm1, dword [0x4db288]
xorps xmm0, xmm0
call fcn.004391f5
push edi
mov ecx, 0x564988
mov dword [esp + 0x14], 0x428c0000
mov dword [esp + 0x18], 0x420c0000
call fcn.0041614b
xor edx, edx
mov byte [esp + 0x1c], bl
push 0x7e
pop ecx
div ecx
mov ecx, ebx
inc dl
mov al, dl
mov byte [esp + 0x18], dl
xor al, 0xef
mov byte [esp + 0x19], al
mov al, dl
xor al, 0x84
mov byte [esp + 0x1a], al
mov al, dl
xor al, 0x9b
mov byte [esp + 0x1b], al
mov al, byte [esp + ecx + 0x19]
xor al, dl
mov byte [ecx + 0x567180], al
inc ecx
cmp ecx, ebp
jb 0x40ec6e
push ecx
lea edx, [esp + 0x14]
mov byte [0x567183], bl
mov ecx, 0x567180
call fcn.00450bac
pop ecx
test al, al
je 0x40eca3
mov dword [0x4e3370], 4
movss xmm1, dword [0x4db288]
xorps xmm0, xmm0
call fcn.004391f5
push edi
mov ecx, 0x564988
mov dword [esp + 0x14], 0x428c0000
mov dword [esp + 0x18], 0x420c0000
call fcn.0041614b
xor edx, edx
mov byte [esp + 0x1c], bl
push 0x7e
pop ecx
div ecx
mov ecx, ebx
inc dl
mov al, dl
mov byte [esp + 0x18], dl
xor al, 0xef
mov byte [esp + 0x19], al
mov al, dl
xor al, 0x80
mov byte [esp + 0x1a], al
mov al, dl
xor al, 0x93
mov byte [esp + 0x1b], al
mov al, byte [esp + ecx + 0x19]
xor al, dl
mov byte [ecx + 0x5685cc], al
inc ecx
cmp ecx, ebp
jb 0x40ecf9
push ecx
lea edx, [esp + 0x14]
mov byte [0x5685cf], bl
mov ecx, 0x5685cc
call fcn.00450bac
pop ecx
test al, al
je 0x40ed2e
mov dword [0x4e3370], 5
call fcn.00432505
push ebx
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x43eb0000
push eax
mov edx, esi
mov dword [esp + 0x28], 0x43c80000
xor ecx, ecx
call fcn.004322f2
add esp, 0xc
test al, al
je 0x40f070
xorps xmm0, xmm0
call fcn.00439344
mov eax, dword [0x4e3370]
cmp eax, esi
jne 0x40ed79
call fcn.004194dc
jmp 0x40f070
cmp eax, 2
jne 0x40f01b
mov ecx, 0x475464
call fcn.0045295c
push 0x564670
push str.Bot_Script
call fcn.0046094a
mov esi, 0x473d7e
cmp byte [0x564670], bl
je 0x40f017
push ecx
push 0x19
push 0x564690
push fcn.00453000
mov edx, 0x5659d8
mov ecx, 0x475390
call fcn.00453060
add esp, 8
mov dword [esp + 0x18], 0x50
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0xa
mov ecx, str.Delay
push eax
lea eax, [esp + 0x24]
push eax
push 0x564534
call fcn.004541b9
add esp, 0x14
mov ecx, esi
call fcn.0045295c
movss xmm3, dword [0x4db0f0]
lea eax, [esp + 0x18]
and dword [esp + 0x10], 0
mov esi, 0x475394
push 0xc
pop ebx
push ecx
push esi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ebx
push eax
push 0x5656a8
push 4
pop edx
mov ecx, str.Hours
call fcn.00453b06
movss xmm3, dword [0x4db0f0]
lea eax, [esp + 0x2c]
and dword [esp + 0x24], 0
mov ecx, str.Minutes
push 0x37
pop edi
add esp, 0x10
mov dword [esp + 0x1c], edi
push esi
push eax
lea eax, [esp + 0x1c]
push eax
push 0x565698
push 4
pop edx
call fcn.00453b06
mov eax, dword [0x5656a8]
cmp eax, ebx
mov ecx, eax
cmovg ecx, ebx
xor edx, edx
test eax, eax
mov eax, dword [0x565698]
cmovs ecx, edx
cmp eax, edi
mov dword [0x5656a8], ecx
mov ecx, eax
cmovg ecx, edi
test eax, eax
cmovs ecx, edx
and dword [esp + 0x2c], edx
and dword [esp + 0x30], edx
add esp, 0x10
mov dword [0x565698], ecx
lea edx, [esp + 0x1c]
mov ecx, str.Run_Time
call fcn.00450bac
pop ecx
test al, al
je 0x40eeeb
imul eax, dword [0x5656a8], 0x3c
add eax, dword [0x565698]
imul eax, eax, 0x3c
test eax, eax
jle 0x40eeeb
lea ecx, [esp + 0x18]
mov byte [0x565590], 1
call fcn.00401dfc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x565700], ecx
mov dword [0x565704], eax
movss xmm1, dword [0x4db288]
xorps xmm0, xmm0
call fcn.004391f5
cmp byte [0x565590], 0
je 0x40efbf
and dword [esp + 0x18], 0
lea edx, [esp + 0x18]
and dword [esp + 0x1c], 0
push ecx
mov ecx, str.Cancel_Time
call fcn.00450bac
pop ecx
test al, al
je 0x40ef2f
xor al, al
mov byte [0x565590], al
jmp 0x40ef34
mov al, byte [0x565590]
test al, al
je 0x40efbf
lea ecx, [esp + 0x18]
call fcn.00401dfc
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x565700]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x565704]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.00470010
mov dword [esp + 0x1c], edx
imul edx, dword [0x5656a8], 0x3c
add edx, dword [0x565698]
imul edi, edx, 0x3c
sub edi, eax
test edi, edi
jg 0x40ef94
mov ecx, str.Nickelodeon_All_Star_Brawl_2.exe
mov byte [0x565590], 0
call fcn.00409072
jmp 0x40efbf
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
push 0x3c
mov esi, eax
mov ecx, edx
mov eax, edi
pop edi
cdq
idiv edi
mov eax, ecx
push edx
cdq
idiv edi
push eax
push esi
push str.Remaining_Time_To_Close:__02d:_02d:_02d
call fcn.004504e4
add esp, 0x10
call fcn.00436be1
mov esi, 0x473d7e
mov ecx, esi
call fcn.0045295c
push 0x5659ed
push str.Run_Script
call fcn.0046094a
xor ebx, ebx
cmp byte [0x5659ed], bl
je 0x40efef
mov byte [0x5659e4], bl
push 0x5659e4
push str.Run_Bot
call fcn.0046094a
cmp byte [0x5659e4], 0
je 0x40f00d
mov byte [0x5659ed], bl
call fcn.00436c35
mov edi, 0x5671c0
mov ecx, esi
jmp 0x40f053
cmp eax, ebp
jne 0x40f05a
mov ecx, str.CAMPAING
call fcn.0045295c
call fcn.00436be1
mov esi, 0x5659dd
push esi
push str.Godmode
call fcn.0046094a
push esi
push str.Super_Damage
call fcn.0046094a
call fcn.00436c35
mov ecx, 0x473d7e
call fcn.0045295c
jmp 0x40f070
cmp eax, 4
jne 0x40f066
call fcn.004186b8
jmp 0x40f070
cmp eax, 5
jne 0x40f070
call fcn.0041875e
call fcn.00432505
push ebx
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x43eb0000
push eax
mov edx, ebp
mov dword [esp + 0x28], 0x42a00000
xor ecx, ecx
call fcn.004322f2
add esp, 0xc
test al, al
je 0x40f174
lea ecx, [esp + 0x18]
call fcn.004395d3
movss xmm1, dword [eax + 4]
mov eax, dword [0x5657a8]
subss xmm1, dword [0x4db1d4]
mov eax, dword [eax + 0x3e48]
mulss xmm1, dword [0x4db0a0]
movss xmm0, dword [eax + 0xf4]
subss xmm0, dword [eax + 0x18]
addss xmm0, dword [eax + 0x7c]
addss xmm0, xmm1
call fcn.0043930d
call fcn.00409126
call fcn.0045227e
push edi
mov ecx, 0x564988
mov dword [esp + 0x14], 0x42200000
mov dword [esp + 0x18], 0x41f00000
call fcn.0041614b
xor edx, edx
mov byte [esp + 0x1c], bl
push 0x7e
pop ecx
div ecx
mov ecx, ebx
inc dl
mov al, dl
mov byte [esp + 0x18], dl
xor al, 0xef
mov byte [esp + 0x19], al
mov al, dl
xor al, 0x80
mov byte [esp + 0x1a], al
mov al, dl
xor al, 0x91
mov byte [esp + 0x1b], al
mov al, byte [esp + ecx + 0x19]
xor al, dl
mov byte [ecx + 0x565cfc], al
inc ecx
cmp ecx, ebp
jb 0x40f134
push ecx
lea edx, [esp + 0x14]
mov byte [0x565cff], bl
mov ecx, 0x565cfc
call fcn.00450bac
pop ecx
test al, al
jne 0x40f185
movss xmm1, dword [0x4db288]
xorps xmm0, xmm0
call fcn.004391f5
call fcn.00407ea4
call fcn.00432505
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
jmp fcn.00436659
call fcn.00409045
int3