Function at 0x401e40
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push esi
push edi
xor edi, edi
xor esi, esi
call ebx
cdq
mov ecx, 3
idiv ecx
mov eax, edx
add al, 1
mov dword [ebp - 8], eax
call ebx
and eax, 0x80000003
jns 0x401e72
dec eax
or eax, 0xfffffffc
inc eax
mov bl, byte [ebp - 8]
lea ecx, [esi + 1]
push 0x401ab0
add al, 1
mov edx, 0x406660
push ecx
mov bh, al
mov dword [ebp - 0xc], eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add bh, 0x30
add bl, 0x30
call fcn.00401570
add esp, 4
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___int_]
mov edx, 0x406654
mov ecx, eax
call fcn.00401570
mov dl, bl
mov ecx, eax
call fcn.00401790
mov edx, 0x406648
mov ecx, eax
call fcn.00401570
push ecx
mov dl, bh
mov ecx, eax
call fcn.00401790
add esp, 4
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 ebx, dword [ebp - 0xc]
mov dl, bl
mov cl, byte [ebp - 8]
call fcn.004023b0
mov cl, byte [ebp - 8]
mov dl, bl
mov byte [ebp - 2], al
call fcn.00402a00
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov bh, al
mov edx, 0x4062ec
call fcn.00401570
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea edx, [ebp - 1]
call fcn.004019c0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
jne 0x401f61
mov bl, byte [ebp - 1]
cmp bl, 0x31
jl 0x401f3d
movsx ecx, bh
add ecx, 0x30
movsx eax, bl
cmp eax, ecx
jle 0x401fb7
cmp bl, 0x41
jl 0x401f4f
movsx ecx, bh
add ecx, 0x40
movsx eax, bl
cmp eax, ecx
jle 0x401fb7
cmp bl, 0x61
jl 0x401f61
movsx ecx, bh
add ecx, 0x60
movsx eax, bl
cmp eax, ecx
jle 0x401fb7
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0xa
push 0
push 0x7fff
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__::ignore_long_long___int64___int_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov bl, bh
mov edx, 0x4062f8
add bl, 0x40
call fcn.00401570
mov dl, bl
mov ecx, eax
call fcn.00401790
mov edx, 0x406294
mov ecx, eax
jmp 0x401f04
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0xa
push 0
push 0x7fff
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__::ignore_long_long___int64___int_]
mov bh, byte [ebp - 2]
movsx ecx, bh
movsx edx, bl
lea eax, [ecx + 0x40]
cmp edx, eax
je 0x402040
lea eax, [ecx + 0x30]
cmp edx, eax
je 0x402040
lea eax, [ecx + 0x60]
cmp edx, eax
je 0x402040
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x406330
push 0x401ab0
add bh, 0x40
call fcn.00401570
push ecx
mov dl, bh
mov ecx, eax
call fcn.00401790
add esp, 4
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 0x1f4
push 0xc8
call dword [sym.imp.KERNEL32.dll_Beep]
jmp 0x402072
push 0x1f4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Beep]
push 0x401ab0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40631c
call fcn.00401570
add esp, 4
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_____]
inc edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40635c
call fcn.00401570
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
push 0x406298
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc esi
add esp, 4
cmp esi, 5
jl 0x401e53
push 0x401ab0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x406388
call fcn.00401570
add esp, 4
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 0x401ab0
push 5
push edi
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40639c
call fcn.00401570
add esp, 4
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___int_]
mov edx, 0x406394
mov ecx, eax
call fcn.00401570
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___int_]
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, 0x4063b4
call fcn.00401570
mov eax, 5
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.e_41m
movd xmm0, eax
mov eax, str.e_42m
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x406778]
mulss xmm1, dword [0x40677c]
comiss xmm0, xmm1
movss dword [ebp - 0xc], xmm1
cmovbe edx, eax
call fcn.00401570
movss xmm0, dword [ebp - 0xc]
push 0x401ab0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movss dword [esp], xmm0
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___float_]
push ecx
mov edx, str._e_0m
mov ecx, eax
call fcn.00401570
add esp, 4
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_____]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret