Function at 0x18003dcac
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1800e0010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [rcx]
lea r9, [rbp - 0x29]
and qword [rbp - 0x29], 0
lea r8, [0x1800d6df8]
xor edx, edx
mov rbx, rcx
call qword [rax + 0x48]
cmp qword [rbp - 0x29], 0
je 0x18003d136
mov rax, qword [rbx]
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [rax + 0x60]
and qword [rbp - 0x19], 0
lea rbx, [0x1800e3ca0]
and dword [rbp - 0x11], 0
lea r8, [rbp - 0x21]
cmp dword [rbp + 7], 0x1d
mov eax, 0x1c
mov rcx, qword [0x1800e3ce0]
mov r9, rbx
cmovne eax, dword [rbp + 7]
mov rdx, qword [rbp - 0x29]
mov dword [rbp - 0x21], eax
mov dword [rbp - 0x1d], 6
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x18003d12c
lea rcx, str.CreateRenderTarget__:_Falling_back_to_D3D11_RTV_DIMENSION_TEXTURE2D._n
call fcn.180006624
mov rcx, qword [0x1800e3ce0]
lea r8, [rbp - 0x21]
mov rdx, qword [rbp - 0x29]
mov r9, rbx
mov dword [rbp - 0x1d], 4
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x18003d12c
mov rcx, qword [0x1800e3ce0]
mov r9, rbx
mov rdx, qword [rbp - 0x29]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x18003d12c
lea rcx, str.Severe_error_in_CreateRenderTarget__._n
call fcn.180006624
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.18009b850
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rbp
ret
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e3b80]
mov rbx, rcx
test rax, rax
je 0x18003de33
cmp byte [0x1800e3f08], 0
jne 0x18003de33
cmp qword [rax + 0xa0], 0
jne 0x18003dd1c
mov rax, qword [rcx]
lea r8, [0x1800e3ce0]
lea rdx, [0x1800d6de8]
call qword [rax + 0x38]
test eax, eax
js 0x18003dd15
mov rcx, qword [0x1800e3ce0]
lea rdx, [0x1800e3cf0]
mov rax, qword [rcx]
call qword [rax + 0x140]
call fcn.180026c90
call fcn.18003cc30
mov rax, qword [0x1800e3b80]
cmp qword [0x1800e3ca0], 0
jne 0x18003dd33
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp 0x18003d040
test rax, rax
je 0x18003dd41
mov rcx, qword [rax + 0xa0]
jmp 0x18003dd43
xor ecx, ecx
cmp qword [rcx + 0x48], 0
jne 0x18003dd4f
call fcn.1800267c0
call fcn.1800274c4
call fcn.18000bd88
xor r8d, r8d
xor edx, edx
mov ecx, 0x208
call fcn.180013c38
test al, al
je 0x18003dd9d
and qword [rsp + 0x28], 0
lea r9, [0x180000000]
and dword [rsp + 0x20], 0
lea r8, [0x180036608]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18003dd9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.180036f40
mov rbx, qword [0x1800e3b80]
xor r8d, r8d
xor edx, edx
mov ecx, 0x209
mov dword [rbx + 8], 0x20
call fcn.180013c38
test al, al
je 0x18003ddd2
cmp byte [0x1800e3b98], 0
sete cl
call fcn.180038f98
cmp byte [0x1800e3b98], 0
je 0x18003ddec
and dword [rbx + 8], 0
xor ecx, ecx
call qword [0x1800e3ea0]
call fcn.180039030
call fcn.18000dc48
mov rcx, qword [0x1800e3cf0]
lea r8, [0x1800e3ca0]
xor r9d, r9d
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rax, qword [0x1800e3b80]
mov rcx, qword [rax + 0x1ba0]
mov rdx, qword [rcx]
add rdx, 0x48
mov al, byte [rdx]
neg al
sbb rcx, rcx
and rcx, rdx
call fcn.180025bd0
add rsp, 0x30
pop rbx
ret