Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
push 0x401660
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Searching_for_stubborn_ProProctor_window..
call fcn.00401420
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.Chrome_WidgetWin_0
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_FindWindowW]
push 0x401660
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Success_finding_Proproctor_stubborn_window__
mov esi, eax
call fcn.00401420
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_____]
test esi, esi
jne 0x401095
cmp dword [ebp + 8], 1
jle 0x40108a
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [esp + 4], eax
jmp 0x4010a5
mov eax, 0x3240
mov dword [esp + 4], eax
jmp 0x4010a5
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
push eax
push 0
push 0x1fffff
mov dword [0x405384], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 4]
mov esi, eax
call fcn.004012b0
mov ecx, dword [0x405018]
add ecx, eax
mov dword [0x405388], eax
lea eax, [esp + 0xc]
mov dword [0x405018], ecx
push eax
push 0x40
push 4
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
setne al
mov byte [0x40538d], al
test al, al
jne 0x40115d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x401660
push dword [esp + 8]
mov edx, str.error:
mov dword [0x405384], eax
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401420
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___unsigned_long_int_]
mov edx, str._while_unprotecting_process_memory_._PID:
mov ecx, eax
call fcn.00401420
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___unsigned_long_int_]
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_____]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 0x401660
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Success_unprotecting_process_memory_
call fcn.00401420
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 0
push 4
lea eax, [esp + 0x10]
push eax
push dword [0x405018]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne al
mov byte [0x40538e], al
test al, al
jne 0x4011dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x401660
push dword [esp + 8]
mov edx, str.error:
mov dword [0x405384], eax
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401420
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___unsigned_long_int_]
mov edx, str._while_writing_process_memory_._PID:
jmp 0x401138
push 0x401660
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Success_writing_process_memory_
call fcn.00401420
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_____]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 4
push dword [0x405018]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
setne al
mov byte [0x40538c], al
test al, al
jne 0x40125f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x401660
push dword [esp + 8]
mov edx, str.error:
mov dword [0x405384], eax
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401420
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___unsigned_long_int_]
mov edx, str._while_reprotecting_process_memory_._PID:
jmp 0x401138
push 0x401660
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Success_reprotecting_process_memory_
call fcn.00401420
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 0x401660
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_any_key_to_exit_this_console...
call fcn.00401420
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_____]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret