Function at 0x1400518f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r12d, r9d
mov r13, r8
mov rbx, rcx
xor r8d, r8d
test r13, r13
je 0x140051b9a
cmp qword [rbp + 0x60], r8
je 0x140051b9a
cmp qword [rbp + 0x78], r8
je 0x140051b9a
mov rax, qword [rcx]
test rax, rax
je 0x1400519d0
mov r15d, r8d
cmp dword [rax + 8], r8d
jle 0x1400519d0
mov edi, r8d
or r14, 0xffffffffffffffff
test rdi, rdi
js 0x140051bb7
cmp r15d, dword [rax + 8]
jge 0x140051bb7
mov rsi, qword [rax]
cmp rdx, qword [rdi + rsi]
jne 0x1400519c0
mov rcx, r14
inc rcx
cmp word [r13 + rcx*2], r8w
jne 0x140051974
mov rdx, qword [rdi + rsi + 0x30]
mov rax, r14
inc rax
cmp word [rdx + rax*2], r8w
jne 0x140051987
cmp rcx, rax
jb 0x1400519bc
movsxd r8, dword [rdx - 0x10]
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
xor r8d, r8d
test eax, eax
jne 0x1400519bc
mov rax, qword [rdi + rsi + 0x18]
test rax, rax
je 0x1400519da
call rax
xor r8d, r8d
test al, al
jne 0x1400519da
mov rdx, qword [rbp + 0x48]
inc r15d
add rdi, 0x48
mov rax, qword [rbx]
cmp r15d, dword [rax + 8]
jl 0x140051955
mov eax, 1
jmp 0x140051b9f
cmp byte [rbx + 9], r8b
jne 0x1400519f1
cmp byte [rbx + 8], r8b
jne 0x1400519f1
cmp byte [rdi + rsi + 0x40], r8b
je 0x140051af0
call fcn.140002dfc
mov rcx, rax
xor r15d, r15d
test rax, rax
je 0x140051bc7
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x50], rax
mov rdx, r13
lea rcx, [rbp - 0x10]
call fcn.140009580
nop
mov r9, qword [rbp - 0x10]
lea r8, str.UNICODE
lea rdx, str.VsDetour:_matched___s_:__s_r_n
lea rcx, [rbp + 0x50]
call fcn.14000a5cc
cmp byte [rbx + 8], r15b
jne 0x140051a48
cmp byte [rdi + rsi + 0x40], r15b
je 0x140051aad
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x140051bd2
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x70], rax
mov r9, qword [rbp + 0x50]
lea r8, str.VisualStudio
lea rdx, str.Error:__s:__s_n
lea rcx, [rbp + 0x70]
call fcn.14000a5cc
mov rbx, qword [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140051aad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140051ace
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140051af3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140051af3
xor r15d, r15d
mov edx, 0x208
mov qword [rbp + 0x50], rdx
mov rcx, qword [rbp + 0x68]
mov qword [rbp - 0x10], rcx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
mov r8, qword [rdi + rsi + 0x38]
call fcn.14000f7bc
mov r9d, eax
test eax, eax
js 0x140051b95
inc r14
cmp word [r13 + r14*2], r15w
jne 0x140051b22
mov rax, qword [rdi + rsi + 0x30]
movsxd rcx, dword [rax - 0x10]
movsxd rax, r14d
cmp rax, rcx
jbe 0x140051b59
lea r8, [rcx*2]
add r8, r13
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp - 0x10]
call fcn.1400232b8
mov r9d, eax
test r9d, r9d
js 0x140051b95
mov rax, qword [rdi + rsi + 8]
mov rcx, qword [rbp + 0x60]
mov qword [rcx], rax
mov rax, qword [rbp + 0x78]
mov dword [rax], r12d
cmp byte [rdi + rsi + 0x10], r15b
je 0x140051b7f
or r12d, 1
mov dword [rax], r12d
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140051b91
mov al, byte [rdi + rsi + 0x11]
mov byte [rcx], al
xor eax, eax
jmp 0x140051b9f
mov eax, r9d
jmp 0x140051b9f
mov eax, 0x80070057
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 1
mov ecx, 0xc000008c
call fcn.140002f94
int3
mov ecx, 0x80004005
call fcn.140002fa4
nop
mov ecx, 0x80004005
call fcn.140002fa4
int3