Function at 0x140004b10
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
movdqa xmm1, xmmword [0x14000d490]
movdqu xmmword [rbp + 0x2f], xmm1
mov byte [rbp + 0x1f], 0
movups xmmword [rbp - 1], xmm0
xor r15d, r15d
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov ecx, 0x20
call fcn.1400097a8
mov qword [rbp - 1], rax
mov qword [rbp + 0xf], 0x11
mov qword [rbp + 0x17], 0x1f
movups xmm0, xmmword [str.Amount_of_mines:]
movups xmmword [rax], xmm0
movzx ecx, byte [0x14000d330]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], r15b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [rbp - 0xf]
movsx eax, word [rbp - 0xb]
sub eax, ecx
inc eax
sub eax, dword [rbp + 0xf]
cdq
sub eax, edx
sar eax, 1
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movsxd rdx, eax
mov r8b, 0x20
lea rcx, [rbp - 0x49]
call fcn.140006680
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140004bec
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140007b60
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
mov rcx, rax
call fcn.140007b60
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140004c50
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rbp - 0x21]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xorps xmm1, xmm1
cmp dword [rbp - 0x21], 0x18
jg 0x140004f1f
movdqu xmmword [rbp - 0x19], xmm1
mov qword [rbp - 9], r15
lea rcx, [rbp - 0x19]
call fcn.140003580
mov esi, dword [rbp - 0x21]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, r15d
test esi, esi
jle 0x140004db7
lea r14, [0x14000ce6c]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edi, eax
mov eax, 0x66666667
imul edi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
sub edi, ecx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x66666667
imul r9d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
sub r9d, ecx
movsxd rax, edi
lea rcx, [rax + rax*2]
mov r10, qword [rbp - 0x19]
movsxd r8, r9d
shl r8, 5
add r8, qword [r10 + rcx*8]
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 7
jbe 0x140004d38
mov r8, qword [r8]
cmp rax, 2
jne 0x140004d66
mov rdx, rax
mov rax, r14
sub r8, r14
nop word [rax + rax]
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x140004d66
add rax, 2
sub rdx, 1
jne 0x140004d50
jmp 0x140004daf
movsxd rax, edi
lea rcx, [rax + rax*2]
movsxd rax, r9d
shl rax, 5
add rax, qword [r10 + rcx*8]
mov rdx, qword [rax + 0x18]
mov rcx, rax
cmp rdx, 2
jb 0x140004da3
cmp rdx, 7
jbe 0x140004d8e
mov rcx, qword [rax]
mov qword [rax + 0x10], 2
mov dword [rcx], 0xdca3d83d
mov word [rcx + 4], r15w
jmp 0x140004dad
mov edx, 2
call fcn.140007510
inc ebx
cmp ebx, esi
jl 0x140004cd7
lea rdx, [0x14000d334]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006ee0
mov qword [rbp - 0x29], 2
lea rcx, [rbp - 0x29]
call fcn.1400070c0
lea rcx, [rbp - 0x19]
call fcn.140003790
lea rdx, [0x14000d334]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006ee0
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
mov ecx, 0x20
call fcn.1400097a8
mov qword [rbp - 0x49], rax
movdqa xmm0, xmmword [0x14000d5a0]
movdqu xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [str.Press_any_key_to_continue...]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14000d348]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x14000d350]
mov dword [rax + 0x18], ecx
mov byte [rax + 0x1c], 0
lea rcx, [rbp - 0x49]
call fcn.140003280
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140004e8d
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
lea rcx, [0x14000ce60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140003dc0
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140004fe2
mov rdx, qword [rbp - 0x11]
call fcn.140007480
mov rcx, qword [rbp - 9]
mov r8, qword [rbp - 0x19]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x140004f12
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1400097a0
jmp 0x140004fe2
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
movdqu xmmword [rbp - 0x39], xmm1
mov ecx, 0x40
call fcn.1400097a8
mov rcx, rax
mov qword [rbp - 0x49], rax
movdqa xmm0, xmmword [0x14000d5b0]
movdqu xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [str.Impossible_value_of_mines__now_going_back_to_menu.._n]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000d368]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14000d378]
movups xmmword [rax + 0x20], xmm0
mov eax, dword [0x14000d388]
mov dword [rcx + 0x30], eax
mov byte [rcx + 0x34], 0
lea rcx, [rbp - 0x49]
call fcn.140003280
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140004fbe
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
mov qword [rbp - 0x29], 2
lea rcx, [rbp - 0x29]
call fcn.1400070c0
lea rcx, [0x14000ce60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140003dc0
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x140005021
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000501b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000501b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400097a0
nop
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140009780
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret