Function at 0x401d28
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
nop
mov eax, 0
push eax
call sub.msvcrt.dll_time
add esp, 4
push eax
call sub.msvcrt.dll_srand
add esp, 4
call sub.msvcrt.dll_rand
mov ecx, 0xd
cdq
idiv ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, 0xd
jle 0x401d6d
mov eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x401d87
mov eax, 0x404158
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 2
jne 0x401da1
mov eax, 0x404161
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 3
jne 0x401dbb
mov eax, str.color_ce
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 4
jne 0x401dd5
mov eax, str.color_a2
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 5
jne 0x401def
mov eax, str.color_2b
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 6
jne 0x401e09
mov eax, 0x404185
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 7
jne 0x401e23
mov eax, str.color_e3
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 8
jne 0x401e3d
mov eax, str.color_a4
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 9
jne 0x401e57
mov eax, str.color_f4
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 0xa
jne 0x401e71
mov eax, str.color_b4
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 0xb
jne 0x401e8b
mov eax, 0x4041b2
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 0xc
jne 0x401ea5
mov eax, 0x4041bb
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 0xd
jne 0x401ebf
mov eax, str.color_e1
push eax
call sub.msvcrt.dll_system
add esp, 4
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x1f4
jge 0x4020ea
jmp 0x401ee8
mov eax, dword [ebp - 0x14]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x401ec7
call sub.msvcrt.dll_rand
mov ecx, 0x6e
cdq
idiv ecx
sub edx, 3
mov dword [ebp - 8], edx
call sub.msvcrt.dll_rand
mov ecx, 0x28
cdq
idiv ecx
sub edx, 3
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040101a
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xbf
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xda
push eax
mov eax, 0x4041cd
push eax
call sub.msvcrt.dll_printf
add esp, 0x28
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xb3
push eax
mov eax, 0x4041e0
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xb3
push eax
mov eax, 0x4041e3
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 0xc]
add eax, 3
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xb3
push eax
mov eax, 0x4041e6
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 8]
add eax, 8
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xb3
push eax
mov eax, 0x4041e9
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 8]
add eax, 8
mov ecx, dword [ebp - 0xc]
add ecx, 2
push ecx
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xb3
push eax
mov eax, 0x4041ec
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 8]
add eax, 8
mov ecx, dword [ebp - 0xc]
add ecx, 3
push ecx
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xb3
push eax
mov eax, 0x4041ef
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040101a
add esp, 8
mov eax, 0xd9
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc4
push eax
mov eax, 0xc0
push eax
mov eax, 0x4041f2
push eax
call sub.msvcrt.dll_printf
add esp, 0x28
mov eax, 0xa
push eax
call sub.msvcrt.dll__sleep
add esp, 4
call sub.msvcrt.dll__kbhit
test eax, eax
je 0x4020e5
mov eax, 0
push eax
call sub.msvcrt.dll_exit
add esp, 4
jmp 0x401edb
call fcn.00401000
leave
ret