Function at 0x1400db315
Capabilities:
Set global application hook

Disassembly:
jmp 0x1401417a0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x408
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x428]
lea rcx, [0x140351097]
call fcn.1400e103a
mov r9, qword [rbp + 0x408]
mov r8, qword [rbp + 0x400]
mov edx, dword [rbp + 0x3f8]
mov rcx, qword [rbp + 0x3f0]
call fcn.1400db0c2
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call fcn.1400dc8af
mov rax, qword [rbp + 0x3f0]
add rax, 8
lea rdx, [rbp + 0x48]
mov rcx, rax
call fcn.1400e0e37
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x48]
call fcn.1400dd75f
lea rcx, [rbp + 0x68]
call fcn.1400dc76f
mov rcx, qword [rbp + 0x3f0]
add rcx, 0xa0
mov rdx, rax
call fcn.1400e0301
mov rax, qword [rbp + 0x3f0]
add rax, 8
mov edx, 0x20
mov rcx, rax
call fcn.1400de04c
mov rax, qword [rbp + 0x3f0]
add rax, 8
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x2b8]
mov rcx, rax
call fcn.1400de6af
lea rcx, [rbp + 0x2b8]
call fcn.1400de925
lea rcx, [rbp + 0x88]
call fcn.1400dbbcb
nop
lea rcx, [rbp + 0x88]
call fcn.1400daaaa
test eax, eax
jge 0x14014196e
lea rcx, [0x14032efdc]
call fcn.1400e13af
mov dword [rbp + 0x3b4], eax
mov r8d, 0x3c3
lea rdx, [0x1402bbb70]
lea rcx, [rbp + 0x2d8]
call fcn.1400dca17
lea r9, str.ERROR_:_Unable_to_lock_critical_section_in_CCommandBarCtrlImpl::OnCreate._n
xor r8d, r8d
mov ecx, dword [rbp + 0x3b4]
mov edx, ecx
mov rcx, rax
call fcn.1400db068
xor eax, eax
test eax, eax
jne 0x14014194b
lea rax, [0x1402b91c4]
mov qword [rsp + 0x28], rax
lea rax, [0x1402abb38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3c4
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlctrlw.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x14014194b
int3
mov qword [rbp + 0x308], 0xffffffffffffffff
lea rcx, [rbp + 0x88]
call fcn.1400db351
mov rax, qword [rbp + 0x308]
jmp 0x140141cd7
cmp qword [0x14032f070], 0
jne 0x140141a35
mov ecx, 0x18
call fcn.1400da4ec
mov qword [rbp + 0x3b8], rax
mov rax, qword [rbp + 0x3b8]
mov qword [rbp + 0x348], rax
cmp qword [rbp + 0x348], 0
je 0x1401419c8
mov rcx, qword [rbp + 0x348]
call fcn.1400e0f45
mov qword [rbp + 0x3c0], rax
mov rax, qword [rbp + 0x3c0]
mov qword [rbp + 0x3c8], rax
jmp 0x1401419d3
mov qword [rbp + 0x3c8], 0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x328], rax
mov rax, qword [rbp + 0x328]
mov qword [0x14032f070], rax
jmp 0x1401419f1
cmp qword [0x14032f070], 0
jne 0x140141a35
lea rax, str.this__s_pmapMsgHook___0
mov qword [rsp + 0x28], rax
lea rax, [0x1402abb38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3cb
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlctrlw.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140141a35
int3
cmp qword [0x14032f070], 0
je 0x140141c52
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0xb4], eax
lea rdx, [rbp + 0xb4]
mov rcx, qword [0x14032f070]
call fcn.1400e0fef
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x140141c3c
mov ecx, 0x10
call fcn.1400da4ec
mov qword [rbp + 0x3b8], rax
mov rax, qword [rbp + 0x3b8]
mov qword [rbp + 0x388], rax
cmp qword [rbp + 0x388], 0
je 0x140141ac3
mov rcx, qword [rbp + 0x388]
call fcn.1400df25d
mov qword [rbp + 0x3c0], rax
mov rax, qword [rbp + 0x3c0]
mov qword [rbp + 0x3c8], rax
jmp 0x140141ace
mov qword [rbp + 0x3c8], 0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x368], rax
mov rax, qword [rbp + 0x368]
mov qword [rbp + 0xd8], rax
jmp 0x140141aec
cmp qword [rbp + 0xd8], 0
jne 0x140141b30
lea rax, str.pData___0
mov qword [rsp + 0x28], rax
lea rax, [0x1402abb38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3d5
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlctrlw.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140141b30
int3
call fcn.1400dfa28
mov r9d, dword [rbp + 0xb4]
mov r8, rax
lea rdx, [0x1400da983]
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
jne 0x140141b9c
lea rax, str.hMsgHook___0
mov qword [rsp + 0x28], rax
lea rax, [0x1402abb38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3d7
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlctrlw.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140141b9c
int3
cmp qword [rbp + 0xd8], 0
je 0x140141c3a
cmp qword [rbp + 0xf8], 0
je 0x140141c3a
mov rax, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xf8]
mov qword [rax], rcx
mov rax, qword [rbp + 0xd8]
mov dword [rax + 8], 1
lea r8, [rbp + 0xd8]
lea rdx, [rbp + 0xb4]
mov rcx, qword [0x14032f070]
call fcn.1400dfb7c
mov dword [rbp + 0x114], eax
cmp dword [rbp + 0x114], 0
jne 0x140141c3a
lea rax, str.bRet
mov qword [rsp + 0x28], rax
lea rax, [0x1402abb38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3de
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlctrlw.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140141c3a
int3
jmp 0x140141c52
mov rax, qword [rbp + 0xd8]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rbp + 0xd8]
mov dword [rcx + 8], eax
lea rcx, [rbp + 0x88]
call fcn.1400e0a1d
mov rax, qword [rbp + 0x3f0]
add rax, 8
mov rcx, rax
call fcn.1400df5f0
and eax, 0x400000
test eax, eax
je 0x140141c83
mov byte [rbp + 0x3b4], 1
jmp 0x140141c8a
mov byte [rbp + 0x3b4], 0
movzx eax, byte [rbp + 0x3b4]
and al, 1
shl al, 6
mov rcx, qword [rbp + 0x3f0]
movzx ecx, byte [rcx + 0xf1]
and cl, 0xbf
or cl, al
movzx eax, cl
mov rcx, qword [rbp + 0x3f0]
mov byte [rcx + 0xf1], al
mov rax, qword [rbp + 8]
mov qword [rbp + 0x3a8], rax
lea rcx, [rbp + 0x88]
call fcn.1400db351
mov rax, qword [rbp + 0x3a8]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402b28e0]
call fcn.1400dfc67
mov rax, rdi
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret