Function at 0x1400522e0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
push r15
lea rbp, [r11 - 0x58]
sub rsp, 0x138
mov rax, qword [0x14026eff8]
xor rax, rsp
mov qword [rbp + 0x10], rax
movzx r12d, r8b
mov r15, rdx
mov rsi, rcx
test rcx, rcx
je 0x140052599
test rdx, rdx
je 0x140052599
mov qword [r11 + 0x18], rbx
xor ecx, ecx
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x30], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, qword [sym.imp.USER32.dll_DefWindowProcW]
lea rbx, str.test_d3d_swapchain_classname
xor r13d, r13d
mov qword [rsp + 0x78], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x70], 0x50
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x78], rax
mov rdi, rax
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x68], r13
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x48], r13
call qword [sym.imp.USER32.dll_RegisterClassExW]
cmp r13w, ax
jne 0x140052396
lea rcx, str._lv_detect_:__failed_to_register_class_for_swapchain
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x14005240c
mov qword [rsp + 0x58], r13
lea r8, str.test_d3d_swapchain_winname
mov qword [rsp + 0x50], rdi
xor r9d, r9d
mov qword [rsp + 0x48], r13
mov rdx, rbx
mov qword [rsp + 0x40], r13
xor ecx, ecx
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x120], r14
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r14, rax
test rax, rax
jne 0x14005243e
lea rcx, str._lv_detect_:__failed_to_create_window_for_swapchain
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
mov r14, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x170]
mov r13, qword [rsp + 0x128]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140102140
add rsp, 0x138
pop r15
pop r12
pop rsi
pop rbp
ret
mov ebx, 1
test r12b, r12b
je 0x1400524e7
mov rax, qword [rsi]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
lea r9, [rbp - 0x40]
mov qword [rsp + 0x28], r13
mov rcx, rsi
mov r8, r14
mov qword [rsp + 0x20], r13
mov rdx, r15
mov qword [rbp - 0x38], 0x1c
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x1c], 4
mov dword [rbp - 0x40], 0x64
mov dword [rbp - 0x3c], 0x64
mov dword [rbp - 0x28], 0x20
mov qword [rbp - 0x24], 2
mov dword [rbp - 0x14], r13d
mov qword [rsp + 0x60], r13
call qword [rax + 0x78]
test eax, eax
js 0x1400524d5
cmp qword [rsp + 0x60], r13
je 0x1400524d5
lea rcx, str._lv_detect_:__create_FlipDiscard_swapchain_success
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140052579
lea rcx, str._lv_detect_:__create_FlipDiscard_swapchain_failed
mov qword [rsp + 0x60], r13
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rsi]
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x40]
mov qword [rbp - 0x2c], r13
mov rdx, r15
mov qword [rbp - 0x24], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp], r13
mov dword [rbp - 0x40], 0x64
mov dword [rbp - 0x3c], 0x64
mov dword [rbp - 0x38], 0x3c
mov dword [rbp - 0x34], ebx
mov dword [rbp - 0x30], 0x1c
mov dword [rbp - 0x1c], 0x20
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], rbx
mov qword [rsp + 0x60], r13
call qword [rax + 0x50]
test eax, eax
js 0x140052569
cmp qword [rsp + 0x60], r13
je 0x140052569
lea rcx, str._lv_detect_:__create_no_FlipDiscard_swapchain_success
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, 2
jmp 0x140052579
lea rcx, str._lv_detect_:__failed_to_create_swapchain
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, r13d
mov rcx, r14
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, rdi
lea rcx, str.test_d3d_swapchain_classname
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, ebx
jmp 0x140052404
lea rcx, str._lv_detect_:__dxgiFactorydev_nullptr_for_swapchain
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x140052424