Function at 0x140001980
Capabilities:
Log keystrokes via polling
Set console window title

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x17], rax
lea rcx, str.KOPANIE_AFK_BIND_F6_AUTOR:_EXTERNAL
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor r15b, r15b
xor r12d, r12d
mov byte [rbp - 1], r15b
mov r14d, r12d
call fcn.140001540
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.chcesz_repair_buczqu___jesli_tak_to_wpisz_liczbe_1__a_jesli_nie_chcesz_repair__to_wklepujesz_0__
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.repair:_1
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.bez_repair:_0
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rbp - 1]
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___bool____ptr64____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Wybrano:
call fcn.1400030c0
cmp byte [rbp - 1], r12b
lea rcx, str.Kopanko_z_repair
lea rdx, str.Kopanko_bez_repair
cmovne rdx, rcx
mov rcx, rax
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.BIND_NA_KOPANIE_TO_F6
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.przycisk_END_konczy_WYLACZA__program_jak_cos_ok_ok
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea ecx, [r12 + 0x23]
mov esi, r12d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140001f08
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], rdi
movabs rdi, 0x7fffffffffffffff
mov qword [rsp + 0xd0], r13
movabs r13, 0x311cdad160000
movaps xmmword [rsp + 0x80], xmm6
movsd xmm6, qword [0x140005bc0]
nop word [rax + rax]
mov ecx, 0x75
movzx ebx, r15b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001b6c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140005a44]
test r15b, r15b
sete r15b
test bl, bl
je 0x140001b54
lea rdx, [0x140005a48]
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r14d, r12d
test r15b, r15b
je 0x140001dca
cmp r14d, 0x32
jne 0x140001ca1
test esi, esi
jne 0x140001bd7
lea ecx, [rsi + 0x40]
mov qword [rbp - 0x21], r12
call fcn.140003770
movups xmm0, xmmword [str.PROGRAM_NA_KOPANIE_JABLEK_AFK_NA_KANALE_EXTERNAL]
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], 0x30
movups xmmword [rax], xmm0
mov qword [rbp - 0x11], 0x3f
movups xmm1, xmmword [0x140005a60]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140005a70]
movups xmmword [rax + 0x20], xmm0
mov byte [rax + 0x30], sil
call fcn.140001290
inc esi
jmp 0x140001d17
cmp esi, 1
jne 0x140001c48
lea ecx, [rsi + 0x3f]
mov qword [rbp - 0x21], r12
call fcn.140003770
movups xmm0, xmmword [str.PROGRAM_NA_KOPANIE_JABLEK_AFK_NA_KANALE_YT_EXTERNAL]
mov rdx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], 0x33
movups xmmword [rax], xmm0
mov qword [rbp - 0x11], 0x3f
movups xmm1, xmmword [0x140005a98]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140005aa8]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x140005ab8]
mov word [rax + 0x30], cx
lea rcx, [rbp - 0x29]
movzx eax, byte [0x140005aba]
mov byte [rdx + 0x32], al
mov byte [rdx + 0x33], 0
call fcn.140001290
inc esi
jmp 0x140001d17
cmp esi, 2
jne 0x140001c9d
lea ecx, [rsi + 0x3e]
mov qword [rbp - 0x21], r12
call fcn.140003770
movups xmm0, xmmword [str.DARMOWY_PROGRAM_NA_KOPANIE_JABLEK_KANAL_EXTERNAL]
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], 0x30
movups xmmword [rax], xmm0
mov qword [rbp - 0x11], 0x3f
movups xmm1, xmmword [0x140005ad0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140005ae0]
movups xmmword [rax + 0x20], xmm0
mov byte [rax + 0x30], 0
call fcn.140001290
mov esi, r12d
inc esi
jmp 0x140001d17
cmp r14d, 0x64
jne 0x140001d17
cmp byte [rbp - 1], 0
je 0x140001d17
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, r14d
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, str.naprawianie...
call fcn.1400030c0
lea rdx, [0x140003290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [str.REPAIR]
lea rcx, [rbp - 0x29]
xorps xmm0, xmm0
mov qword [rbp - 0x19], 6
movups xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x29], eax
movzx eax, word [0x140005b0c]
mov word [rbp - 0x25], ax
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x23], 0
call fcn.1400013d0
mov r14d, r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x31
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 0x31
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x32
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 0x32
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 8]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_mouse_event]
inc r14d
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140001de8
imul rax, rax, 0x64
jmp 0x140001e06
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffffffe795e
cmp rax, rcx
jg 0x140001e1c
lea rdi, [rax + 0x186a0]
movabs r12, 0x112e0be826d694b3
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140001e44
imul rbx, rax, 0x64
jmp 0x140001e65
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
cmp rdi, rbx
je 0x140001ec4
jl 0x140001ec4
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rcx, rax, 0x64
xorps xmm0, xmm0
mov rax, rdi
sub rax, rbx
cvtsi2sd xmm0, rax
comisd xmm0, xmm6
jbe 0x140001e8f
add rcx, r13
jmp 0x140001e92
add rcx, rax
mov rax, r12
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
mov qword [rbp + 7], rdx
sub ecx, eax
mov dword [rbp + 0xf], ecx
lea rcx, [rbp + 7]
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x140001e26
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movabs rdi, 0x7fffffffffffffff
mov r12d, 0
test ax, ax
je 0x140001b20
movaps xmm6, xmmword [rsp + 0x80]
mov r13, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xc0]
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140003750
add rsp, 0x90
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret