Function at 0x140003140
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
movdqa xmm1, xmmword [0x14000ae60]
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.140007df0
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 [0x14000acf0]
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.140004cb0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000321c
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140006190
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
mov rcx, rax
call fcn.140006190
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140003280
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000327b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000327b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007e2c
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 0x14000354f
movdqu xmmword [rbp - 0x19], xmm1
mov qword [rbp - 9], r15
lea rcx, [rbp - 0x19]
call fcn.140001bb0
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 0x1400033e7
lea r14, [0x14000a820]
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 0x140003368
mov r8, qword [r8]
cmp rax, 2
jne 0x140003396
mov rdx, rax
mov rax, r14
sub r8, r14
nop word [rax + rax]
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x140003396
add rax, 2
sub rdx, 1
jne 0x140003380
jmp 0x1400033df
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 0x1400033d3
cmp rdx, 7
jbe 0x1400033be
mov rcx, qword [rax]
mov qword [rax + 0x10], 2
mov dword [rcx], 0xdca3d83d
mov word [rcx + 4], r15w
jmp 0x1400033dd
mov edx, 2
call fcn.140005b40
inc ebx
cmp ebx, esi
jl 0x140003307
lea rdx, [0x14000acf4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
mov qword [rbp - 0x29], 2
lea rcx, [rbp - 0x29]
call fcn.1400056f0
lea rcx, [rbp - 0x19]
call fcn.140001dc0
lea rdx, [0x14000acf4]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
mov ecx, 0x20
call fcn.140007df0
mov qword [rbp - 0x49], rax
movdqa xmm0, xmmword [0x14000ae70]
movdqu xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [str.Press_any_key_to_continue...]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14000ad08]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x14000ad10]
mov dword [rax + 0x18], ecx
mov byte [rax + 0x1c], 0
lea rcx, [rbp - 0x49]
call fcn.1400018b0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x1400034bd
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400034b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400034b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007e2c
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
lea rcx, [0x14000a814]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400023f0
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140003612
mov rdx, qword [rbp - 0x11]
call fcn.140005ab0
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 0x140003542
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003542
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140007e2c
jmp 0x140003612
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
movdqu xmmword [rbp - 0x39], xmm1
mov ecx, 0x40
call fcn.140007df0
mov rcx, rax
mov qword [rbp - 0x49], rax
movdqa xmm0, xmmword [0x14000ae80]
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 [0x14000ad28]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14000ad38]
movups xmmword [rax + 0x20], xmm0
mov eax, dword [0x14000ad48]
mov dword [rcx + 0x30], eax
mov byte [rcx + 0x34], 0
lea rcx, [rbp - 0x49]
call fcn.1400018b0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x1400035ee
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007e2c
mov qword [rbp - 0x29], 2
lea rcx, [rbp - 0x29]
call fcn.1400056f0
lea rcx, [0x14000a814]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400023f0
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x140003651
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000364b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000364b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007e2c
nop
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140007dd0
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