Function at 0x402540
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403df8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
call fcn.00402320
call fcn.004024a0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.welcome_to_2019_sctf
push 0x402ac0
call fcn.00402870
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.please_input_your_ticket:
call fcn.00402870
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea edx, [ebp - 0x40]
call fcn.00402af0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x58], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4025d2
sub ecx, edx
lea eax, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00401d30
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004020d0
mov edx, str._pvfqYc_4tTc2UxRmlJ_sBFh4Ck2:CFOb4ErhtIcoLo
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x402602
sub edx, esi
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x402615
mov ecx, dword [eax]
mov ebx, dword [eax + 0x10]
mov edi, str._pvfqYc_4tTc2UxRmlJ_sBFh4Ck2:CFOb4ErhtIcoLo
cmp edx, ebx
mov esi, ebx
cmovb esi, edx
sub esi, 4
jb 0x402641
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x402646
add ecx, 4
add edi, 4
sub esi, 4
jae 0x402630
cmp esi, 0xfffffffc
je 0x40267a
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x402673
cmp esi, 0xfffffffd
je 0x40267a
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x402673
cmp esi, 0xfffffffe
je 0x40267a
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x402673
cmp esi, 0xffffffff
je 0x40267a
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x40267a
sbb esi, esi
or esi, 1
jmp 0x40267c
xor esi, esi
test esi, esi
jne 0x40268d
cmp edx, ebx
jbe 0x402689
or esi, 0xffffffff
jmp 0x40268d
sbb esi, esi
neg esi
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x4026c3
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4026b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4026b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00402f05
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x402712
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402708
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00402f05
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Have_fun_
push 0x402ac0
test esi, esi
je 0x40272b
mov edx, str.A_forged_ticket__
call fcn.00402870
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_____]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402ef4
mov esp, ebp
pop ebp
ret