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 [0x5077a8]
xor ebx, ebx
mov dword [eax + 0x20], ebx
call fcn.0040734d
call fcn.004097f2
cmp dword [0x5078a0], 0xf
mov ecx, 0x50788c
push 0x80e2
cmova ecx, dword [0x50788c]
xor edx, edx
call fcn.00433e6f
pop ecx
mov ecx, str.Nickelodeon_All_Star_Brawl_2.exe
call fcn.0041befc
test al, al
je 0x40f185
mov eax, dword [0x5077a8]
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.0043660c
mov esi, eax
call fcn.0042fb89
call fcn.0042fba6
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 [0x47d7f8]
addss xmm2, xmm0
addss xmm1, xmm0
movaps xmm0, xmmword [0x47da60]
movups xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [0x47da80]
movups xmmword [esp + 0x30], xmm0
movaps xmm0, xmmword [0x47da90]
movups xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [0x47da60]
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x1c], xmm1
movups xmmword [esp + 0x50], xmm0
call fcn.0042ca00
push eax
lea ecx, [esp + 0x34]
call fcn.0042ca00
push eax
lea ecx, [esp + 0x48]
call fcn.0042ca00
push eax
lea ecx, [esp + 0x5c]
call fcn.0042ca00
push eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004476eb
call fcn.00406a15
movss xmm1, dword [0x47d6a0]
xor ecx, ecx
call fcn.0042d9c4
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.004318e2
add esp, 0xc
mov edi, 0x5091c0
push 3
pop ebp
test al, al
je 0x40ed2e
movss xmm0, dword [0x47d790]
call fcn.004388c3
push edi
mov ecx, 0x506988
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 + 0x507d2c], al
inc ecx
cmp ecx, ebp
jb 0x40ead5
push ecx
lea edx, [esp + 0x14]
mov byte [0x507d2f], bl
mov ecx, 0x507d2c
call fcn.0045019c
pop ecx
test al, al
je 0x40eb06
mov dword [0x485370], esi
movss xmm1, dword [0x47d848]
xorps xmm0, xmm0
call fcn.004387e2
push edi
mov ecx, 0x506988
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 + 0x507c74], al
inc ecx
cmp ecx, ebp
jb 0x40eb5c
push ecx
lea edx, [esp + 0x14]
mov byte [0x507c77], bl
mov ecx, 0x507c74
call fcn.0045019c
pop ecx
test al, al
je 0x40eb91
mov dword [0x485370], 2
movss xmm1, dword [0x47d848]
xorps xmm0, xmm0
call fcn.004387e2
push edi
mov ecx, 0x506988
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 + 0x507db4], al
inc ecx
cmp ecx, ebp
jb 0x40ebe7
push ecx
lea edx, [esp + 0x14]
mov byte [0x507db7], bl
mov ecx, 0x507db4
call fcn.0045019c
pop ecx
test al, al
je 0x40ec18
mov dword [0x485370], ebp
movss xmm1, dword [0x47d848]
xorps xmm0, xmm0
call fcn.004387e2
push edi
mov ecx, 0x506988
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 + 0x509180], al
inc ecx
cmp ecx, ebp
jb 0x40ec6e
push ecx
lea edx, [esp + 0x14]
mov byte [0x509183], bl
mov ecx, 0x509180
call fcn.0045019c
pop ecx
test al, al
je 0x40eca3
mov dword [0x485370], 4
movss xmm1, dword [0x47d848]
xorps xmm0, xmm0
call fcn.004387e2
push edi
mov ecx, 0x506988
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 + 0x50a5cc], al
inc ecx
cmp ecx, ebp
jb 0x40ecf9
push ecx
lea edx, [esp + 0x14]
mov byte [0x50a5cf], bl
mov ecx, 0x50a5cc
call fcn.0045019c
pop ecx
test al, al
je 0x40ed2e
mov dword [0x485370], 5
call fcn.00431af5
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.004318e2
add esp, 0xc
test al, al
je 0x40f070
xorps xmm0, xmm0
call fcn.00438931
mov eax, dword [0x485370]
cmp eax, esi
jne 0x40ed79
call fcn.004194dc
jmp 0x40f070
cmp eax, 2
jne 0x40f01b
mov ecx, 0x474424
call fcn.00451f4c
push 0x506670
push str.Bot_Script
call fcn.0045ff3a
mov esi, 0x472d3e
cmp byte [0x506670], bl
je 0x40f017
push ecx
push 0x19
push 0x506690
push fcn.004525f0
mov edx, 0x5079d8
mov ecx, 0x474350
call fcn.00452650
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 0x506534
call fcn.004537a9
add esp, 0x14
mov ecx, esi
call fcn.00451f4c
movss xmm3, dword [0x47d6b0]
lea eax, [esp + 0x18]
and dword [esp + 0x10], 0
mov esi, 0x474354
push 0xc
pop ebx
push ecx
push esi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ebx
push eax
push 0x5076a8
push 4
pop edx
mov ecx, str.Hours
call fcn.004530f6
movss xmm3, dword [0x47d6b0]
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 0x507698
push 4
pop edx
call fcn.004530f6
mov eax, dword [0x5076a8]
cmp eax, ebx
mov ecx, eax
cmovg ecx, ebx
xor edx, edx
test eax, eax
mov eax, dword [0x507698]
cmovs ecx, edx
cmp eax, edi
mov dword [0x5076a8], 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 [0x507698], ecx
lea edx, [esp + 0x1c]
mov ecx, str.Run_Time
call fcn.0045019c
pop ecx
test al, al
je 0x40eeeb
imul eax, dword [0x5076a8], 0x3c
add eax, dword [0x507698]
imul eax, eax, 0x3c
test eax, eax
jle 0x40eeeb
lea ecx, [esp + 0x18]
mov byte [0x507590], 1
call fcn.00401dfc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x507700], ecx
mov dword [0x507704], eax
movss xmm1, dword [0x47d848]
xorps xmm0, xmm0
call fcn.004387e2
cmp byte [0x507590], 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.0045019c
pop ecx
test al, al
je 0x40ef2f
xor al, al
mov byte [0x507590], al
jmp 0x40ef34
mov al, byte [0x507590]
test al, al
je 0x40efbf
lea ecx, [esp + 0x18]
call fcn.00401dfc
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x507700]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x507704]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.0046f600
mov dword [esp + 0x1c], edx
imul edx, dword [0x5076a8], 0x3c
add edx, dword [0x507698]
imul edi, edx, 0x3c
sub edi, eax
test edi, edi
jg 0x40ef94
mov ecx, str.Nickelodeon_All_Star_Brawl_2.exe
mov byte [0x507590], 0
call fcn.00409075
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.0044fad4
add esp, 0x10
call fcn.004361ce
mov esi, 0x472d3e
mov ecx, esi
call fcn.00451f4c
push 0x5079ed
push str.Run_Script
call fcn.0045ff3a
xor ebx, ebx
cmp byte [0x5079ed], bl
je 0x40efef
mov byte [0x5079e4], bl
push 0x5079e4
push str.Run_Bot
call fcn.0045ff3a
cmp byte [0x5079e4], 0
je 0x40f00d
mov byte [0x5079ed], bl
call fcn.00436222
mov edi, 0x5091c0
mov ecx, esi
jmp 0x40f053
cmp eax, ebp
jne 0x40f05a
mov ecx, str.CAMPAING
call fcn.00451f4c
call fcn.004361ce
mov esi, 0x5079dd
push esi
push str.Godmode
call fcn.0045ff3a
push esi
push str.Super_Damage
call fcn.0045ff3a
call fcn.00436222
mov ecx, 0x472d3e
call fcn.00451f4c
jmp 0x40f070
cmp eax, 4
jne 0x40f066
call fcn.004186b8
jmp 0x40f070
cmp eax, 5
jne 0x40f070
call fcn.0041875e
call fcn.00431af5
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.004318e2
add esp, 0xc
test al, al
je 0x40f174
lea ecx, [esp + 0x18]
call fcn.00438bc0
movss xmm1, dword [eax + 4]
mov eax, dword [0x5077a8]
subss xmm1, dword [0x47d794]
mov eax, dword [eax + 0x3e48]
mulss xmm1, dword [0x47d660]
movss xmm0, dword [eax + 0xf4]
subss xmm0, dword [eax + 0x18]
addss xmm0, dword [eax + 0x7c]
addss xmm0, xmm1
call fcn.004388fa
call fcn.00409129
call fcn.0045186e
push edi
mov ecx, 0x506988
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 + 0x507cfc], al
inc ecx
cmp ecx, ebp
jb 0x40f134
push ecx
lea edx, [esp + 0x14]
mov byte [0x507cff], bl
mov ecx, 0x507cfc
call fcn.0045019c
pop ecx
test al, al
jne 0x40f185
movss xmm1, dword [0x47d848]
xorps xmm0, xmm0
call fcn.004387e2
call fcn.00407ea7
call fcn.00431af5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
jmp fcn.00435c46
call fcn.00409048
int3