Function at 0x402e40
Capabilities:
Get token membership
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405fad
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Exitbat_by_kripten
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str.Russian
push 0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
add esp, 8
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0x500
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402fb4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x402edf
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402eed
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], 1
jne 0x402fb4
push str.ExitLag.exe
lea ecx, [ebp - 0x34]
call fcn.00403b40
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00401c80
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.1___gen_account
call fcn.004044e0
push 0x404700
mov ecx, eax
call dword [sym.imp.MSVCP140.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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.2___run_exitlag
call fcn.004044e0
push 0x404700
mov ecx, eax
call dword [sym.imp.MSVCP140.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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
cmp dword [ebp - 0x14], 1
jne 0x402f71
call fcn.004027c0
jmp 0x402f76
call fcn.00401e30
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x402fcf
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fa8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402fa8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405099
add esp, 8
jmp 0x402fcf
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40760c
call fcn.004044e0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405056
mov esp, ebp
pop ebp
ret