Function at 0x401000
Capabilities:
Execute command
Log keystrokes via polling
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
push 0x403160
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
push str.AssaultCube
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
test esi, esi
jne 0x401095
nop
push 0x4031bc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov edx, str.Assault_Cube_isnt_currently_running_on_this_device__Run_it_or_close_me_
push 0x4017d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401590
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.AssaultCube
push 0
call ebx
push 0xbb8
mov esi, eax
call edi
test esi, esi
je 0x401050
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ebx, eax
push 0x4031bc
call esi
add esp, 4
mov dword [0x405388], 0
mov edx, str.NOTE:_This_triggerbot_works_best_for_1024_by_768_window_resolution_
mov dword [0x405398], 2
mov dword [0x4053a4], 0
mov dword [0x4053b4], 4
push 0x4017d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401590
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Enter_width_of_window:
call fcn.00401590
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Enter_hight_of_window:
call fcn.00401590
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
push 0x4031bc
call esi
movd xmm1, dword [esp + 0x48]
add esp, 4
cvtdq2pd xmm1, xmm1
movaps xmm0, xmm1
mulsd xmm0, qword [0x4032d0]
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x4032c0]
mov dword [esp + 0xc], eax
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x4032c8]
mov dword [esp + 0x24], eax
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x4032d8]
mov dword [esp + 0x2c], eax
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x4032e8]
mov dword [esp + 0x14], eax
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm1, qword [0x4032f0]
mov dword [esp + 0x34], eax
mulsd xmm0, qword [0x4032e0]
cvttsd2si eax, xmm0
mov dword [esp + 0x38], eax
cvttsd2si eax, xmm1
movd xmm1, dword [esp + 0x48]
cvtdq2pd xmm1, xmm1
mov dword [esp + 0x40], eax
movaps xmm0, xmm1
mulsd xmm0, qword [0x403318]
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x403328]
mov dword [esp + 0x1c], eax
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x403308]
mov dword [esp + 0x20], eax
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x403310]
mov dword [esp + 0x28], eax
cvttsd2si eax, xmm0
mov edx, str.Running_triggerbot...
push 0x4017d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movaps xmm0, xmm1
mulsd xmm0, qword [0x403320]
mov dword [esp + 0x18], eax
cvttsd2si eax, xmm0
movaps xmm0, xmm1
mulsd xmm1, qword [0x403300]
mov dword [esp + 0x38], eax
mulsd xmm0, qword [0x4032f8]
cvttsd2si eax, xmm0
mov dword [esp + 0x20], eax
cvttsd2si eax, xmm1
mov dword [esp + 0x44], eax
call fcn.00401590
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4017d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Press_F_to_activate_the_triggerbot
call fcn.00401590
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [sym.imp.USER32.dll_SendInput]
push 0x46
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x40155f
push 0x2a7
push dword [esp + 0x10]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x4012d9
cmp eax, 0xf9fa03
je 0x4012d9
cmp eax, 0xf8f8f8
jne 0x4012f3
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x1c]
push dword [esp + 0x10]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x401317
cmp eax, 0xf9f9f9
je 0x401317
cmp eax, 0xf8f8f8
jne 0x401331
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x401355
cmp eax, 0xf9f9f9
je 0x401355
cmp eax, 0xf8f8f8
jne 0x40136f
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x28]
push dword [esp + 0x30]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x401393
cmp eax, 0xf9f9f9
je 0x401393
cmp eax, 0xf8f8f8
jne 0x4013ad
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x4013d1
cmp eax, 0xf9f9f9
je 0x4013d1
cmp eax, 0xf8f8f8
jne 0x4013eb
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x40140f
cmp eax, 0xf9f9f9
je 0x40140f
cmp eax, 0xf8f8f8
jne 0x401429
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x30]
push dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x40144d
cmp eax, 0xf9f9f9
je 0x40144d
cmp eax, 0xf8f8f8
jne 0x401467
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x10]
push dword [esp + 0x38]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xfafafa
je 0x40148b
cmp eax, 0xf9f9f9
je 0x40148b
cmp eax, 0xf8f8f8
jne 0x4014a5
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xf4f4f4
je 0x4014c9
cmp eax, 0xf9f9f9
je 0x4014c9
cmp eax, 0xf8f8f8
jne 0x4014e3
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x18]
push dword [esp + 0x3c]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xf4f4f4
je 0x401507
cmp eax, 0xf9f9f9
je 0x401507
cmp eax, 0xf8f8f8
jne 0x401521
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push dword [esp + 0x3c]
push dword [esp + 0x44]
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xf4f4f4
je 0x401545
cmp eax, 0xf9f9f9
je 0x401545
cmp eax, 0xf8f8f8
jne 0x40155f
push 0x1c
push 0x405388
push 1
call esi
push 1
call edi
push 0x1c
push 0x4053a4
push 1
call esi
push 0x61
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x4012a3
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004018ba
mov esp, ebp
pop ebp
ret