Function at 0x140005180
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 [0x14000d510]
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.140009e18
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 [0x14000d3b0]
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.140006cf0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000525c
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400081d0
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
mov rcx, rax
call fcn.1400081d0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x1400052c0
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009e10
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 0x14000558f
movdqu xmmword [rbp - 0x19], xmm1
mov qword [rbp - 9], r15
lea rcx, [rbp - 0x19]
call fcn.140003bf0
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 0x140005427
lea r14, [0x14000ceec]
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 0x1400053a8
mov r8, qword [r8]
cmp rax, 2
jne 0x1400053d6
mov rdx, rax
mov rax, r14
sub r8, r14
nop word [rax + rax]
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x1400053d6
add rax, 2
sub rdx, 1
jne 0x1400053c0
jmp 0x14000541f
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 0x140005413
cmp rdx, 7
jbe 0x1400053fe
mov rcx, qword [rax]
mov qword [rax + 0x10], 2
mov dword [rcx], 0xdca3d83d
mov word [rcx + 4], r15w
jmp 0x14000541d
mov edx, 2
call fcn.140007b80
inc ebx
cmp ebx, esi
jl 0x140005347
lea rdx, [0x14000d3b4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007550
mov qword [rbp - 0x29], 2
lea rcx, [rbp - 0x29]
call fcn.140007730
lea rcx, [rbp - 0x19]
call fcn.140003e00
lea rdx, [0x14000d3b4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007550
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
mov ecx, 0x20
call fcn.140009e18
mov qword [rbp - 0x49], rax
movdqa xmm0, xmmword [0x14000d620]
movdqu xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [str.Press_any_key_to_continue...]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14000d3c8]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x14000d3d0]
mov dword [rax + 0x18], ecx
mov byte [rax + 0x1c], 0
lea rcx, [rbp - 0x49]
call fcn.1400038f0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x1400054fd
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009e10
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
lea rcx, [0x14000cee0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140004430
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140005652
mov rdx, qword [rbp - 0x11]
call fcn.140007af0
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 0x140005582
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005582
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140009e10
jmp 0x140005652
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
movdqu xmmword [rbp - 0x39], xmm1
mov ecx, 0x40
call fcn.140009e18
mov rcx, rax
mov qword [rbp - 0x49], rax
movdqa xmm0, xmmword [0x14000d630]
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 [0x14000d3e8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14000d3f8]
movups xmmword [rax + 0x20], xmm0
mov eax, dword [0x14000d408]
mov dword [rcx + 0x30], eax
mov byte [rcx + 0x34], 0
lea rcx, [rbp - 0x49]
call fcn.1400038f0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x14000562e
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005629
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005629
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009e10
mov qword [rbp - 0x29], 2
lea rcx, [rbp - 0x29]
call fcn.140007730
lea rcx, [0x14000cee0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140004430
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x140005691
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000568b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000568b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009e10
nop
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140009df0
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