Function at 0x18002d170
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0xa0
mov rax, qword [0x180068008]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rcx, str.CryAction.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x18006a088], rax
test rax, rax
je 0x18002d40e
lea rcx, str.CrySystem.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x18006a090], rax
test rax, rax
je 0x18002d40e
lea rcx, str.CryRenderD3D9.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.CryRenderD3D10.dll
mov qword [0x18006a098], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x18006a0a0], rax
test rax, rax
jne 0x18002d1ff
cmp qword [0x18006a098], rax
je 0x18002d40e
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
test rax, rax
je 0x18002d40e
cmp qword [0x18006a0a0], 0
je 0x18002d40a
mov qword [rsp + 0xb0], rbx
mov ecx, 0x3b8
mov qword [rsp + 0xb8], rsi
call fcn.18002f63c
xor edx, edx
mov qword [rsp + 0x90], rax
mov r8d, 0x3b8
mov rcx, rax
mov rbx, rax
call fcn.180030e20
xor eax, eax
mov qword [rsp + 0x38], rbx
lea rsi, [rbx + 8]
mov qword [rbx], rax
mov qword [rsi], rax
mov r9d, 2
mov byte [rbx + 0x20], al
xor r8d, r8d
mov qword [rsp + 0x54], rax
xor edx, edx
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1d
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x80], 2
mov dword [rsp + 0x50], 0x1c
mov dword [rsp + 0x48], 0x3c
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x64], 0x20
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x5c], 1
mov qword [rsp + 0x78], 1
call qword [sym.imp.d3d10.dll_D3D10CreateDeviceAndSwapChain]
test eax, eax
jne 0x18002d383
mov rax, qword [rsi]
xorps xmm0, xmm0
mov rcx, qword [rax]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov rcx, qword [rax]
lea rax, [rbx + 0xb0]
mov qword [rbx + 0x18], rcx
mov ecx, 6
nop dword [rax]
nop word [rax + rax]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x18002d320
movups xmmword [rax], xmm0
xorps xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm0
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
movups xmmword [rbx + 0x78], xmm0
movups xmmword [rbx + 0x88], xmm0
movups xmmword [rbx + 0x98], xmm0
movups xmmword [rbx + 0xa8], xmm0
mov byte [rbx + 0x20], 1
cmp byte [rbx + 0x20], 0
mov rsi, qword [rsp + 0xb8]
mov qword [0x18006a0f0], rbx
jne 0x18002d3a4
mov rbx, qword [rsp + 0xb0]
xor al, al
jmp 0x18002d410
cmp qword [rbx + 0x68], 0
jne 0x18002d3fe
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x90]
mov edx, 8
add rcx, 0x40
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
mov rax, qword [rcx + 0x40]
lea edx, [r9 + 8]
mov qword [rbx + 0x68], rax
lea rax, [0x18002e1a0]
mov qword [rcx + 0x40], rax
mov rcx, qword [rbx + 0x10]
mov r8d, dword [rsp + 0x90]
add rcx, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0xb0]
mov al, 1
jmp 0x18002d410
mov al, 1
jmp 0x18002d410
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.18002edc0
add rsp, 0xa0
pop rdi
ret