Function at 0x404280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e34d
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x24], 0xc7
mov byte [ebp - 0x23], 0x47
mov byte [ebp - 0x22], 0x18
mov ecx, dword [ebp - 0x48]
and ecx, 0xff
mov byte [ebp - 0x21], cl
mov edx, dword [ebp - 0x48]
shr edx, 8
and edx, 0xff
mov byte [ebp - 0x20], dl
mov eax, dword [ebp - 0x48]
shr eax, 0x10
and eax, 0xff
mov byte [ebp - 0x1f], al
mov ecx, dword [ebp - 0x48]
shr ecx, 0x18
and ecx, 0xff
mov byte [ebp - 0x1e], cl
mov byte [ebp - 0x1d], 0xf3
mov byte [ebp - 0x1c], 0xf
mov byte [ebp - 0x1b], 0x10
mov byte [ebp - 0x1a], 0x47
mov byte [ebp - 0x19], 0x18
mov byte [ebp - 0x18], 0xe9
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov edx, dword [ebp + 0xc]
add edx, 0x149e798
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], 0x11
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x404653
cmp dword [0x508c10], 0
jne 0x4043a4
mov ecx, dword [ebp - 0x44]
add ecx, 0xa
mov dword [0x508c2c], ecx
push 0x40
push 0x3000
mov edx, dword [0x508c2c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x508c10], eax
cmp dword [0x508c10], 0
jne 0x4043a4
push 0x46057c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
call fcn.004118c0
add esp, 8
mov dword [ebp - 0x5c], eax
push 0x411d00
mov ecx, dword [ebp - 0x5c]
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 0x40469d
mov edx, dword [0x508c10]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x4c]
add eax, 5
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x4c]
add ecx, 5
mov edx, dword [ebp - 0x58]
sub edx, ecx
mov dword [ebp - 0x3c], edx
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x51]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xc0], edx
mov eax, dword [0x508c2c]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [eax], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x38]
call fcn.004131b0
nop
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [0x5082fc]
mov dword [ecx], edx
mov al, byte [0x508300]
mov byte [ecx + 4], al
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xb4]
add eax, 5
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
lea eax, [edx + ecx + 0xa]
mov ecx, dword [ebp - 0xa8]
sub ecx, eax
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x44]
lea eax, [ecx + edx + 5]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
add edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [edx + 6], eax
mov ecx, dword [0x508c2c]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x9c], edx
mov eax, dword [0x508c10]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403970
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x4045ad
push str.Failed_to_write_trampoline_to_allocated_memory.
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push eax
call fcn.004118c0
add esp, 8
mov dword [ebp - 0xa4], eax
push 0x411d00
mov ecx, dword [ebp - 0xa4]
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 0x8000
push 0
mov ecx, dword [0x508c10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [0x508c10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004101d0
nop
jmp 0x40469d
mov byte [ebp - 0x2c], 0xe9
xor eax, eax
mov dword [ebp - 0x2b], eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x3c]
mov dword [ebp + ecx - 0x2c], edx
push 5
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403970
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x404641
push str.Failed_to_write_jump_to_trampoline_in_the_original_code.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
call fcn.004118c0
add esp, 8
mov dword [ebp - 0xac], eax
push 0x411d00
mov ecx, dword [ebp - 0xac]
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 0x8000
push 0
mov edx, dword [0x508c10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [0x508c10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004101d0
nop
jmp 0x40469d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004101d0
nop
jmp 0x40469d
push 5
push 0x5082fc
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403970
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x40469d
push str.Failed_to_restore_original_bytes.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
call fcn.004118c0
add esp, 8
mov dword [ebp - 0xb0], eax
push 0x411d00
mov ecx, dword [ebp - 0xb0]
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 - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045caa8
mov esp, ebp
pop ebp
ret