Function at 0x140049584
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7e8]
sub rsp, 0x8b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140132008]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r12, r9
mov rdi, r8
mov qword [rsp + 0x40], rdx
mov r14, rcx
mov r15, qword [rbp + 0x810]
mov r13, qword [rbp + 0x818]
xor ebx, ebx
test r8, r8
jne 0x1400495eb
mov eax, 0x80070057
jmp 0x14004a053
test r9, r9
je 0x1400495e1
test r15, r15
je 0x1400495e1
test r13, r13
je 0x1400495e1
lea rcx, [rsp + 0x48]
call fcn.14000ff98
nop
mov qword [rsp + 0x58], rbx
lea r9, str.get_FrameProviderInfo__
mov r8, r15
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call fcn.1400103e8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.14001e4e0
nop
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x14004965e
mov qword [rsp + 0x58], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rsi
call rbx
mov rax, qword [r13]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.140009410]
lea rdx, [rsp + 0x58]
mov rcx, r13
call rbx
mov dword [rsp + 0x20], eax
xor esi, esi
test eax, eax
jns 0x1400496d3
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
xor r12d, r12d
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a084
mov esi, dword [rsp + 0x20]
cmp byte [rbp - 0x78], r12b
je 0x14004a008
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
call fcn.140010574
jmp 0x14004a008
cmp byte [rbp - 0x78], sil
je 0x1400496e5
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
call fcn.140010574
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call fcn.14004d434
mov dword [rsp + 0x20], eax
test eax, eax
jns 0x140049734
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
xor r12d, r12d
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a158
mov esi, dword [rsp + 0x20]
jmp 0x14004a008
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x10], rax
cmp qword [r14 + 0x18], rdi
je 0x14004977a
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rdi
call rbx
mov rbx, qword [r14 + 0x18]
mov qword [r14 + 0x18], rdi
test rbx, rbx
je 0x14004977a
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009410]
mov rcx, rbx
call rdi
cmp qword [r14 + 0x20], r12
je 0x1400497b8
mov rax, qword [r12]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, r12
call rbx
mov rbx, qword [r14 + 0x20]
mov qword [r14 + 0x20], r12
test rbx, rbx
je 0x1400497b8
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009410]
mov rcx, rbx
call rdi
cmp qword [r14 + 0x28], r15
je 0x1400497f5
mov rax, qword [r15]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, r15
call rbx
mov rbx, qword [r14 + 0x28]
mov qword [r14 + 0x28], r15
test rbx, rbx
je 0x1400497f5
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009410]
mov rcx, rbx
call rdi
cmp qword [r14 + 0x30], r13
je 0x140049833
mov rax, qword [r13]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, r13
call rbx
mov rbx, qword [r14 + 0x30]
mov qword [r14 + 0x30], r13
test rbx, rbx
je 0x140049833
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009410]
mov rcx, rbx
call rdi
mov qword [rsp + 0x50], rsi
lea r9, str.get_Properties__
mov r8, r15
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call fcn.1400103e8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.14001e4e0
nop
mov rsi, qword [r14 + 0x30]
mov rdi, qword [rsp + 0x50]
xor ecx, ecx
test rdi, rdi
je 0x140049892
mov qword [rsp + 0x50], rcx
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rdi
call rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call qword [fcn.140009410]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call rbx
mov dword [rsp + 0x20], eax
xor edi, edi
test eax, eax
jns 0x140049906
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
xor r12d, r12d
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a22c
mov esi, dword [rsp + 0x20]
cmp byte [rbp - 0x78], r12b
je 0x140049fe3
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
call fcn.140010574
jmp 0x140049fe3
cmp byte [rbp - 0x78], dil
je 0x140049918
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
call fcn.140010574
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x1400499cf
xor r12d, r12d
mov qword [rsp + 0x40], r12
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rsp + 0x40], r12
mov rax, qword [r15]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call qword [fcn.140009410]
lea rdx, [rsp + 0x40]
mov rcx, r15
call rbx
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14004998b
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x68]
call fcn.14004a300
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a3d4
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov esi, 0x80004005
jmp 0x140049fe3
mov qword [rsp + 0x60], rdi
mov rax, qword [rbx]
mov rdi, qword [rax]
mov rcx, rdi
call qword [fcn.140009410]
lea r8, [rsp + 0x60]
lea rdx, [0x1400f2b38]
mov rcx, rbx
call rdi
mov dword [rsp + 0x20], eax
xor ebx, ebx
test eax, eax
jns 0x140049a30
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a500
jmp 0x140049d45
mov rsi, qword [r14 + 0x28]
lea rdi, [r14 + 0x48]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rdi], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.140009410]
mov rdx, rdi
mov rcx, rsi
call rbx
mov dword [rsp + 0x20], eax
xor ebx, ebx
test eax, eax
jns 0x140049a98
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a5d4
jmp 0x140049d45
mov rsi, qword [r14 + 0x28]
lea rdi, [r14 + 0x50]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rdi], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call qword [fcn.140009410]
mov rdx, rdi
mov rcx, rsi
call rbx
mov dword [rsp + 0x20], eax
xor ebx, ebx
test eax, eax
jns 0x140049b00
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a6a8
jmp 0x140049d45
mov rsi, qword [r14 + 0x28]
lea rdi, [r14 + 0x58]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rdi], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x50]
mov rcx, rbx
call qword [fcn.140009410]
mov rdx, rdi
mov rcx, rsi
call rbx
mov dword [rsp + 0x20], eax
xor ebx, ebx
test eax, eax
jns 0x140049b68
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a77c
jmp 0x140049d45
mov rsi, qword [r14 + 0x28]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x70]
mov rcx, rdi
call qword [fcn.140009410]
lea rdx, [r14 + 0x40]
mov rcx, rsi
call rdi
mov dword [rsp + 0x20], eax
test eax, eax
jns 0x140049bbf
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a850
jmp 0x140049d45
mov rdi, qword [r14 + 0x28]
lea rsi, [r14 + 0x38]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rsi], rbx
mov rax, qword [rdi]
mov rbx, qword [rax + 0x60]
mov rcx, rbx
call qword [fcn.140009410]
mov rdx, rsi
mov rcx, rdi
call rbx
mov dword [rsp + 0x20], eax
xor ebx, ebx
test eax, eax
jns 0x140049c27
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004a924
jmp 0x140049d45
mov edi, 0xbad
mov dword [rsp + 0x68], edi
lea rcx, [rbp - 0x80]
call fcn.140053180
lea r8, [rsp + 0x68]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCompareStringOrdinal]
mov dword [rsp + 0x20], eax
test eax, eax
jns 0x140049c83
lea rax, [rsp + 0x20]
mov qword [rbp - 0x80], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14004a9f8
jmp 0x140049d45
cmp dword [rsp + 0x68], ebx
sete al
mov byte [r14 + 0xb0], al
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x80]
call fcn.140053108
lea r8, [rsp + 0x40]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCompareStringOrdinal]
mov dword [rsp + 0x20], eax
test eax, eax
jns 0x140049ce5
lea rax, [rsp + 0x20]
mov qword [rbp - 0x80], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14004aacc
jmp 0x140049d45
cmp dword [rsp + 0x40], ebx
sete al
mov byte [r14 + 0xb1], al
mov dword [rsp + 0x30], edi
lea rcx, [rbp - 0x80]
call fcn.140053090
lea r8, [rsp + 0x30]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCompareStringOrdinal]
mov dword [rsp + 0x20], eax
test eax, eax
jns 0x140049d4b
lea rax, [rsp + 0x20]
mov qword [rbp - 0x80], rax
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14004aba0
mov esi, dword [rsp + 0x20]
jmp 0x140049d92
cmp dword [rsp + 0x30], ebx
sete al
mov byte [r14 + 0xb2], al
cmp byte [r14 + 0xb0], bl
jne 0x140049d9a
cmp byte [r14 + 0xb1], bl
jne 0x140049d9a
test al, al
jne 0x140049d9a
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
call fcn.14004ac74
mov esi, 0x80070057
xor r12d, r12d
jmp 0x140049fbe
lea rax, [0x14004e6e0]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], ebx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.1400520f4
nop
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rcx, rsi
call qword [fcn.140009410]
lea r8, [r14 + 0x60]
mov rdi, qword [rbp - 0x80]
mov rdx, rdi
mov rcx, rbx
call rsi
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140049e25
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
xor r12d, r12d
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14004ad44
jmp 0x140049f81
lea r9, str.get_Available__
mov r8, r15
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call fcn.1400103e8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14001e4e0
nop
mov rax, qword [r13]
mov rsi, qword [rax + 0x38]
mov rcx, rsi
call qword [fcn.140009410]
lea rdx, [r14 + 0xa0]
mov rcx, r13
call rsi
mov dword [rsp + 0x30], eax
xor r12d, r12d
test eax, eax
jns 0x140049ecd
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.14004ae18
mov esi, dword [rsp + 0x30]
cmp byte [rsp + 0x70], r12b
je 0x140049fa3
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140010574
jmp 0x140049fa3
cmp byte [rsp + 0x70], r12b
je 0x140049ee1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140010574
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov rbx, qword [r14 + 0x90]
mov qword [r14 + 0x90], rax
test rbx, rbx
je 0x140049f13
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.140009410]
mov rcx, rbx
call rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], r12
mov rbx, qword [r14 + 0x98]
mov qword [r14 + 0x98], rax
test rbx, rbx
je 0x140049f45
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.140009410]
mov rcx, rbx
call rsi
mov rcx, r14
call fcn.14004ed18
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140049f87
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14004aeec
mov esi, dword [rsp + 0x30]
jmp 0x140049fa3
mov rcx, r14
call fcn.14004fd88
test eax, eax
jns 0x140049fa0
lea rcx, str.Detected_an_invalid_VideoProfile_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
mov esi, r12d
test rdi, rdi
je 0x140049fbe
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rdi
call rbx
nop
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140049fe3
mov qword [rsp + 0x60], r12
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rdi
call rbx
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14004a008
mov qword [rsp + 0x50], r12
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rdi
call rbx
nop
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x14004a02d
mov qword [rsp + 0x58], r12
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rdi
call rbx
nop
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14004a051
mov qword [rsp + 0x48], r12
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x10]
mov rcx, rbx
call qword [fcn.140009410]
mov rcx, rdi
call rbx
mov eax, esi
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400cb2a0
mov rbx, qword [rsp + 0x8f8]
add rsp, 0x8b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret