Function at 0x408800
Capabilities:
Execute command
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417f9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
lea edi, [ebp - 0x194]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.00415080
push eax
call fcn.00409490
add esp, 4
movzx eax, al
test eax, eax
jne 0x408885
push str.Please_Run_Program_as_Administrator_n
mov eax, dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push eax
call fcn.00401230
add esp, 8
mov esi, esp
push 0x3e8
push 0
call dword [sym.imp.KERNEL32.dll_Beep]
cmp esi, esp
call fcn.00415080
mov eax, 1
jmp 0x408b92
mov esi, esp
push str.Insomnia
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp esi, esp
call fcn.00415080
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403720
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00407a40
add eax, 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406e10
push 1
push 0x40
push 0x24
push str.Insomnia.dll
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.004016d0
add esp, 0xc
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0xec]
call fcn.00403530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x200]
call fcn.00404340
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xec]
mov esi, esp
call dword [sym.imp.MSVCP140D.dll_public:_bool___thiscall_std::ios_base::good_void_const]
cmp esi, esp
call fcn.00415080
movzx edx, al
test edx, edx
jne 0x408954
push 0
call fcn.00404d50
add esp, 4
lea ecx, [ebp - 0x209]
call fcn.004034b0
mov dword [ebp - 0x24c], eax
mov byte [ebp - 0x215], 0
mov esi, esp
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140D.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
cmp esi, esp
call fcn.00415080
mov ecx, eax
call fcn.004048f0
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x215]
push edx
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x104]
call fcn.00403b30
mov byte [ebp - 4], 4
mov esi, esp
push 0
push 0
push 0
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
cmp esi, esp
call fcn.00415080
lea ecx, [ebp - 0x104]
call fcn.00407df0
xor ecx, ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], ecx
lea ecx, [ebp - 0x104]
call fcn.00406a80
mov dword [ebp - 0x254], eax
mov esi, esp
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
cmp esi, esp
call fcn.00415080
lea ecx, [ebp - 0xec]
call fcn.00406940
mov dword [ebp - 0x110], 0
push str.Waiting_Grand_Chase____
mov eax, dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.00401230
add esp, 8
mov dword [ebp - 0x24c], eax
mov esi, esp
push 0x402f50
mov ecx, dword [ebp - 0x24c]
call dword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp esi, esp
call fcn.00415080
mov eax, 1
test eax, eax
je 0x408b10
push str.GrandChase.exe
call fcn.00409320
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x408afa
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00409490
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x408afa
mov esi, esp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00415080
mov eax, dword [ebp - 0x11c]
push eax
call fcn.0040b520
add esp, 4
test eax, eax
je 0x408afa
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00409490
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x408afa
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x110], eax
jmp 0x408b10
mov esi, esp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00415080
jmp 0x408a70
push 0
lea ecx, [ebp - 0x104]
call fcn.00406a80
push eax
mov eax, dword [ebp - 0x110]
push eax
call fcn.0040bd60
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x408b3e
push 6
call fcn.00404d50
add esp, 4
mov esi, esp
push str.pause
call dword [sym.imp.ucrtbased.dll_system]
add esp, 4
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x104]
call fcn.00404460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xec]
call fcn.00404aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404340
mov eax, dword [ebp - 0x244]
push edx
mov ecx, ebp
push eax
lea edx, [0x408bc4]
call fcn.00415020
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x254
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret