Function at 0x140165850
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1050]
mov eax, 0x1150
call fcn.140169460
sub rsp, rax
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov qword [rbp - 0x70], rcx
lea rax, [rbp + 0x40]
lea rcx, [rbp - 0x68]
xor edi, edi
mov r15, rdx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x80], rax
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov r9, qword [r15 + 0x20]
test r9, r9
je 0x1401658c5
lea r8, [0x1400173d8]
lea edx, [rdi + 0x10]
lea rcx, [rbp - 0x58]
call fcn.1400284c0
jmp 0x1401658c9
mov word [rbp - 0x58], di
movzx edi, word [rbp - 0x5a]
movzx esi, word [rbp - 0x5c]
movzx r14d, word [rbp - 0x5e]
movzx r15d, word [rbp - 0x60]
movzx r12d, word [rbp - 0x62]
movzx r13d, word [rbp - 0x66]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [rbp - 0x78]
lea r8, [0x140017460]
mov rcx, qword [rdx + 0x28]
mov qword [rsp + 0x78], rcx
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x70], rcx
mov ecx, dword [rdx + 0x18]
mov dword [rsp + 0x68], ecx
mov rcx, qword [rdx + 8]
mov rdx, qword [rbp - 0x70]
mov r9d, dword [rdx + 0x24]
mov qword [rsp + 0x60], rcx
mov ecx, dword [rdx]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r12d
lea rcx, [rbp + 0x40]
mov edx, 0x788
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.1400284c0
cmp eax, 0x8007007a
jne 0x140165a1c
mov ecx, 0x10182
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
jne 0x140165985
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rbx, rax
movzx edi, word [rbp - 0x5a]
movzx esi, word [rbp - 0x5c]
movzx r14d, word [rbp - 0x5e]
movzx r15d, word [rbp - 0x60]
movzx r12d, word [rbp - 0x62]
movzx r13d, word [rbp - 0x66]
mov qword [rbp - 0x80], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rdx + 0x28]
lea r8, [0x140017460]
mov qword [rsp + 0x78], rcx
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x70], rcx
mov ecx, dword [rdx + 0x18]
mov dword [rsp + 0x68], ecx
mov rcx, qword [rdx + 8]
mov rdx, qword [rbp - 0x70]
mov r9d, dword [rdx + 0x24]
mov qword [rsp + 0x60], rcx
mov ecx, dword [rdx]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r12d
mov r12d, 0x80c1
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov edx, r12d
mov dword [rsp + 0x20], eax
call fcn.1400284c0
jmp 0x140165a22
mov r12d, 0x800
mov r15, qword [rbp - 0x78]
lea rcx, [0x14000ab48]
mov rax, qword [r15 + 0x38]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x140165a47
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x140165a47
xor eax, eax
jmp 0x140165a4c
sbb eax, eax
sbb eax, reloc.ADVAPI32.dll_TraceEvent
test eax, eax
je 0x140165ae4
mov r15, qword [r15 + 0x38]
movzx ecx, byte [r15 + 0xe]
movzx edx, byte [r15 + 0xd]
movzx r8d, byte [r15 + 0xc]
movzx r9d, byte [r15 + 9]
movzx eax, byte [r15 + 0xf]
movzx r10d, byte [r15 + 0xb]
movzx r11d, byte [r15 + 0xa]
movzx edi, byte [r15 + 8]
movzx esi, word [r15 + 6]
movzx r14d, word [r15 + 4]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], r9d
mov r9d, dword [r15]
mov dword [rsp + 0x30], edi
lea r8, [0x1400174e0]
lea rcx, [rbp - 0x30]
mov edx, 0x32
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r14d
call fcn.1400284c0
mov rdi, qword [rbp - 0x80]
lea r8, [rbp - 0x30]
mov rcx, rdi
mov rdx, r12
call fcn.14006892c
jmp 0x140165ae8
mov rdi, qword [rbp - 0x80]
lea r8, reloc.ole32.dll_CoCreateInstance
mov rdx, r12
mov rcx, rdi
call fcn.14006892c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x140165b31
mov eax, dword [0x14017f740]
test al, 1
jne 0x140165b1b
or eax, 1
mov dword [0x14017f740], eax
test al, 2
jne 0x140165b28
or eax, 2
mov dword [0x14017f740], eax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x11a0]
add rsp, 0x1150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret