Function at 0x46e2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4fd140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00470280
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
push 0x40
lea ecx, [ebp - 0x50]
call fcn.00409880
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x46e44c
lea ecx, [ebp - 0x50]
call fcn.00409880
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
call fcn.0046f800
mov dword [ebp - 0x18], eax
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x46e3c9
push str._OK__Memory_patch_at
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.00424ca0
add esp, 8
mov dword [ebp - 0x1c], eax
push 0x470260
mov ecx, dword [ebp - 0x1c]
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::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x20]
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___void_const__]
push str._successful.
push eax
call fcn.00424ca0
add esp, 8
mov dword [ebp - 0x24], eax
push 0x4261a0
mov ecx, dword [ebp - 0x24]
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_____]
nop
jmp 0x46e41e
push str.Failed_to_write_process_memory_at
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push edx
call fcn.00424ca0
add esp, 8
mov dword [ebp - 0x28], eax
push 0x470260
mov ecx, dword [ebp - 0x28]
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::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
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___void_const__]
push 0x4e141c
push eax
call fcn.00424ca0
add esp, 8
mov dword [ebp - 0x30], eax
push 0x4261a0
mov ecx, dword [ebp - 0x30]
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_____]
nop
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x50]
call fcn.00409880
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
jmp 0x46e4a1
push str.Failed_to_change_memory_protection_at
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
call fcn.00424ca0
add esp, 8
mov dword [ebp - 0x3c], eax
push 0x470260
mov ecx, dword [ebp - 0x3c]
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::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x40]
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___void_const__]
push 0x4e1444
push eax
call fcn.00424ca0
add esp, 8
mov dword [ebp - 0x44], eax
push 0x4261a0
mov ecx, dword [ebp - 0x44]
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_____]
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00406360
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret