Function at 0x180030460
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x18016f040]
xor rax, rsp
mov qword [rbp + 0x10], rax
nop word [rax + rax]
lea rcx, str.dxgi.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, 0x64
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x180030490
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [0x18002c570]
mov dword [rbp - 0x50], 0x50
xor edi, edi
mov qword [rbp - 0x48], rax
xor ecx, ecx
mov dword [rbp - 0x4c], 0x40
mov qword [rbp - 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [rbp - 8], rdi
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm0
lea rbx, [0x180150034]
movdqa xmmword [rbp - 0x20], xmm1
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x10], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rbp - 0x38]
mov r9d, 0xcf0000
mov qword [rsp + 0x58], rdi
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rdx, rbx
mov qword [rsp + 0x48], rdi
xor ecx, ecx
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x12c
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, 0xfffffff0
mov dword [rbp + 8], 0xb000
mov rcx, rax
mov dword [rbp + 0xc], 0xa100
mov rbx, rax
mov dword [rbp - 0x80], edi
mov qword [rbp - 0x78], 1
mov qword [rbp - 0x60], 2
mov qword [rsp + 0x70], 0x1c
mov dword [rsp + 0x78], edi
mov dword [rbp - 0x7c], 0x20
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x7c], 1
mov dword [rbp - 0x64], edi
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
xor r9d, r9d
mov dword [rsp + 0x60], 1
shr rax, 0x1f
xor r8d, r8d
not al
mov qword [rsp + 0x64], 1
and eax, 1
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x68], eax
mov edx, 1
lea rax, [0x180218e50]
xor ecx, ecx
mov qword [rsp + 0x58], rax
lea rax, [rbp]
mov qword [rsp + 0x50], rax
lea rax, [0x180218e80]
mov qword [rsp + 0x48], rax
lea rax, [0x180218e88]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 8]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jns 0x180030659
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_create_directX_device_and_swapchain_
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [0x180218e88]
mov rcx, qword [rax]
mov rax, qword [0x180218e50]
mov qword [0x180218e68], rcx
mov rcx, qword [rax]
mov rax, qword [0x180218e80]
mov qword [0x180218e78], rcx
mov rcx, qword [rax]
mov qword [0x180218e70], rcx
call fcn.180076ae0
test eax, eax
jne 0x180030748
mov rcx, qword [0x180218e68]
lea r8, [0x180218e60]
lea rdx, [0x18002c580]
mov rcx, qword [rcx + 0x40]
call fcn.180076b70
test eax, eax
jne 0x180030748
mov rax, qword [0x180218e68]
mov edx, 1
mov rcx, qword [rax + 0x40]
call fcn.180076e60
test eax, eax
jne 0x180030748
mov rcx, qword [0x180218e68]
lea r8, [0x180218e58]
lea rdx, [0x1800303f0]
mov rcx, qword [rcx + 0x68]
call fcn.180076b70
test eax, eax
jne 0x180030748
mov rax, qword [0x180218e68]
mov edx, 1
mov rcx, qword [rax + 0x40]
call fcn.180076e60
test eax, eax
jne 0x180030748
mov rax, qword [0x180218e78]
mov edx, 1
mov rcx, qword [rax + 0x60]
call fcn.180076e60
test eax, eax
jne 0x180030748
mov rcx, qword [0x180218e60]
lea r9, [rbp + 4]
mov edx, 2
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1800e9960
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret