Function at 0x140041aa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400f0028]
xor rax, rsp
mov qword [rbp + 8], rax
mov rdi, rcx
xor esi, esi
mov rbx, qword [0x1400f1be8]
mov qword [rsp + 0x74], rsi
mov qword [rbp - 0x78], 2
mov qword [rbp - 0x60], 2
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x70], 0x1c
mov dword [rsp + 0x68], 0x3c
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x7c], 0x20
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x7c], 1
mov qword [rbp - 0x68], 1
mov dword [rbp], 0xb000
mov dword [rbp + 4], 0xa000
lea rax, [0x1400f1a88]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rax, [0x1400f1ab8]
mov qword [rsp + 0x48], rax
lea rax, [0x1400f1ae0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x140041d48
call fcn.140042470
test al, al
je 0x140041d48
mov rdx, rbx
mov rcx, rdi
call fcn.140042500
call fcn.140020c10
lea rcx, [rbp - 0x20]
call fcn.140021310
mov rdx, rax
mov rcx, rdi
call fcn.140006810
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140041c0a
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041c05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041c05
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov ecx, 0x28
call fcn.1400a482c
mov rbx, rax
mov qword [rbp - 0x20], rax
mov rdx, rdi
mov rcx, rax
call fcn.140027980
lea rax, [0x1400409e0]
mov qword [rbx + 0x20], rax
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140050d90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140041d39
cmp dword [rbp - 0x38], 0
jne 0x140041c75
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140041c95
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov ecx, 8
call fcn.1400a482c
lea rcx, [0x140029210]
mov qword [rax], rcx
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14004c330]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140041d2a
cmp dword [rbp - 0x28], 0
jne 0x140041cf1
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140041d11
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
cmp dword [rbp - 0x38], 0
je 0x140041d26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov al, 1
jmp 0x140041d4a
mov dword [rbp - 0x28], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor al, al
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400a4570
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret