Function at 0x1800015e0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180005040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [0x180007720], 0
je 0x1800018fe
cmp qword [0x180007718], 0
je 0x1800018fe
cmp qword [0x180007710], 0
je 0x1800018fe
mov qword [rsp + 0x70], rbx
xor ecx, ecx
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x60], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r14d, r14d
cmp rax, 0x78000000
lea rdi, [rax - 0x78000000]
cmovb rdi, r14
lea rbx, [rax - 1]
cmp qword [0x180007770], r14
jne 0x180001722
nop dword [rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800018cd
cmp dword [rsp + 0x40], 0x10000
jne 0x1800016fc
mov rcx, qword [rsp + 0x38]
cmp rcx, 0x400
jb 0x1800016fc
mov rbx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffc00
add rbx, rcx
mov edx, 0x400
mov rcx, rbx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180007770], rax
test rax, rax
je 0x1800016de
mov qword [0x180007778], 0x400
mov qword [0x180007780], r14
jmp 0x180001703
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x400
lea rcx, str.trampoline_alloc__016I64Xx_016I64X_failed___08X_
mov r9d, eax
mov rdx, rbx
call fcn.180001060
mov rax, qword [0x180007770]
test rax, rax
jne 0x180001710
mov rbx, qword [rsp + 0x20]
dec rbx
cmp rbx, rdi
jb 0x1800018bf
test rax, rax
je 0x180001660
mov rbx, qword [0x180007708]
lea r9, [rsp + 0x50]
add rbx, qword [0x180007720]
mov edx, 3
mov rcx, rbx
mov qword [rsp + 0x78], rbp
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [0x1800050c4]
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov edx, 3
mov word [rbx], ax
mov rcx, rbx
movzx eax, byte [0x1800050c6]
mov byte [rbx + 2], al
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.Hook_installed_
call fcn.180001060
mov rbx, qword [0x180007718]
add rbx, qword [0x180007708]
mov rdi, qword [0x180007710]
add rdi, qword [0x180007708]
mov rax, qword [0x180007770]
movsxd rbp, dword [rbx + 0xd]
test rax, rax
je 0x180001937
cmp qword [0x180007788], r14
jne 0x180001950
mov rcx, qword [0x180007780]
mov qword [rsp + 0x80], rsi
lea rsi, [rcx + rax]
mov qword [0x180007788], rsi
test rsi, rsi
je 0x180001969
mov rax, qword [0x180007778]
sub rax, rcx
cmp rax, 0x11
jb 0x18000191e
add rcx, 0x11
mov qword [0x180007788], r14
mov qword [0x180007780], rcx
lea r9, [rsp + 0x50]
mov rcx, rsi
mov edx, 0xc
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsd xmm0, qword [0x1800050b8]
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov edx, 0xc
movsd qword [rsi], xmm0
mov rcx, rsi
mov eax, dword [0x1800050c0]
mov dword [rsi + 8], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [rbx + 0x11]
mov r8b, 0xe9
add rdx, rbp
lea rcx, [rsi + 0xc]
call fcn.180001520
mov r8b, 0xe8
lea rcx, [rbx + 0xc]
mov rdx, rsi
call fcn.180001520
mov r8b, 0xe8
mov rdx, rsi
mov rcx, rdi
call fcn.180001520
lea rcx, str.Hook_installed_
call fcn.180001060
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180001e60
add rsp, 0x68
ret
lea rcx, str.couldnt_allocate_trampoline__no_free_space_before_image
call fcn.180001060
jmp 0x1800018e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualQuery_failed:__08X
call fcn.180001060
cmp qword [0x180007770], r14
jne 0x180001722
lea rcx, str.couldnt_create_codegen_buffer._this_is_fatal._skipping_remainder_of_init_process.
call fcn.180001060
xor eax, eax
jmp 0x18000189b
lea rcx, str.Hook_addr_not_set_
call fcn.180001060
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180001e60
add rsp, 0x68
ret
lea r8, str.len___Remain__
mov edx, 0x6e
lea rcx, str.C:GamesVSStarFieldCommonBranchTrampoline.cpp
call fcn.1800014a0
int3
lea r8, str.m_base
mov edx, 0x60
lea rcx, str.C:GamesVSStarFieldCommonBranchTrampoline.cpp
call fcn.1800014a0
int3
lea r8, str._m_curAlloc
mov edx, 0x61
lea rcx, str.C:GamesVSStarFieldCommonBranchTrampoline.cpp
call fcn.1800014a0
int3
lea r8, str.m_curAlloc
mov edx, 0x6b
lea rcx, str.C:GamesVSStarFieldCommonBranchTrampoline.cpp
call fcn.1800014a0
int3