Function at 0x140045410
Capabilities:
Access the windows event log
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov esi, ecx
mov rcx, qword [str.___t_]
lea r15, str.___t_
mov r14b, 4
cmp rcx, r15
je 0x140045465
test byte [rcx + 0x1c], r14b
je 0x140045465
cmp byte [rcx + 0x19], 5
jb 0x140045465
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083a78]
mov edx, 0x39
call fcn.140001010
xor r9d, r9d
xor ecx, ecx
mov r8d, 0xffffffff
lea edx, [r9 + 0x14]
call fcn.140054154
xor ebp, ebp
lea r13, [0x1400828c0]
lea r12d, [rbp + 2]
test eax, eax
jne 0x1400454c5
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400454ee
test byte [rcx + 0x1c], r14b
je 0x1400454cc
cmp byte [rcx + 0x19], r12b
jb 0x1400454cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rbp + 0x3a]
mov r9d, eax
lea r8, [0x140083a78]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400454ee
test byte [rcx + 0x1c], r14b
je 0x1400454ee
cmp byte [rcx + 0x19], 5
jb 0x1400454ee
mov rcx, qword [rcx + 0x10]
mov edx, 0x69
mov r8, r13
call fcn.140001010
xor ecx, ecx
mov ebx, ebp
call qword [sym.imp.RPCRT4.dll_RpcMgmtStopServerListening]
mov edi, eax
test eax, eax
je 0x14004552c
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004552a
test byte [rcx + 0x1c], r14b
je 0x14004552a
cmp byte [rcx + 0x19], r12b
jb 0x14004552a
mov rcx, qword [rcx + 0x10]
mov edx, 0x6a
mov r9d, eax
mov r8, r13
call fcn.140001030
mov ebx, edi
mov rcx, qword [0x14009a390]
test rcx, rcx
je 0x1400455d6
lea rdx, str.Waiting_for_RPC_listning_thread_to_terminate.
call fcn.140045c2c
test eax, eax
jne 0x140045585
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045585
test byte [rax + 0x1c], r14b
je 0x140045585
cmp byte [rax + 0x19], r12b
jb 0x140045585
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x6b
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rcx, qword [0x14009a390]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400455cf
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400455cf
test byte [rax + 0x1c], r14b
je 0x1400455cf
cmp byte [rax + 0x19], r12b
jb 0x1400455cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x6c
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov qword [0x14009a390], rbp
xor r8d, r8d
lea rcx, [0x14007e770]
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIfEx]
mov edi, eax
test eax, eax
je 0x14004561a
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045621
test byte [rcx + 0x1c], r14b
je 0x140045621
cmp byte [rcx + 0x19], r12b
jb 0x140045621
mov rcx, qword [rcx + 0x10]
mov edx, 0x6d
mov r9d, eax
mov r8, r13
call fcn.140001030
mov rcx, qword [str.___t_]
test ebx, ebx
cmove ebx, edi
test ebx, ebx
je 0x14004565a
cmp rcx, r15
je 0x14004565a
test byte [rcx + 0x1c], r14b
je 0x14004565a
cmp byte [rcx + 0x19], r12b
jb 0x14004565a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083a78]
mov edx, 0x3b
mov r9d, ebx
call fcn.140001030
mov rcx, qword [str.___t_]
mov ebx, ebp
cmp rcx, r15
je 0x14004567e
test byte [rcx + 0x1c], r14b
je 0x14004567e
cmp byte [rcx + 0x19], 5
jb 0x14004567e
mov rcx, qword [rcx + 0x10]
mov edx, 0x3f
mov r8, r13
call fcn.140001010
mov qword [rsp + 0x28], rbp
lea r8, [0x140022960]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400456d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045761
test byte [rcx + 0x1c], r14b
je 0x140045761
cmp byte [rcx + 0x19], r12b
jb 0x140045761
lea edx, [rdi + 0x40]
jmp 0x140045752
lea rdx, str.Waiting_for_SetServiceIsDownFlagThread_to_terminate.
mov rcx, rdi
call fcn.140045c2c
test eax, eax
jne 0x14004571b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004571b
test byte [rcx + 0x1c], r14b
je 0x14004571b
cmp byte [rcx + 0x19], r12b
jb 0x14004571b
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, eax
mov r8, r13
call fcn.140001030
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140045761
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045761
test byte [rax + 0x1c], r14b
je 0x140045761
cmp byte [rax + 0x19], r12b
jb 0x140045761
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001030
test ebx, ebx
je 0x1400457aa
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400457aa
test byte [rax + 0x1c], r14b
je 0x1400457aa
cmp byte [rax + 0x19], r12b
jb 0x1400457aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140083a78]
mov r9d, eax
mov edx, 0x3c
mov rcx, qword [rcx + 0x10]
call fcn.140001030
call fcn.140045040
test eax, eax
jne 0x1400457de
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400457de
test byte [rcx + 0x1c], r14b
je 0x1400457de
cmp byte [rcx + 0x19], r12b
jb 0x1400457de
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140083a78]
call fcn.140001010
call fcn.140045d9c
test eax, eax
jne 0x140045812
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045812
test byte [rcx + 0x1c], r14b
je 0x140045812
cmp byte [rcx + 0x19], r12b
jb 0x140045812
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3e]
lea r8, [0x140083a78]
call fcn.140001010
mov rcx, qword [0x14009a380]
test rcx, rcx
je 0x140045895
lea rdx, str.Waiting_for_all_threads__except_TapiWorkerThread__to_terminate.
call fcn.140045c2c
test eax, eax
jne 0x14004586b
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004586b
test byte [rax + 0x1c], r14b
je 0x14004586b
cmp byte [rax + 0x19], r12b
jb 0x14004586b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140083a78]
mov r9d, eax
mov edx, 0x3f
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov ecx, 3
mov r8d, 0x1770
call fcn.140022cb8
lea rcx, [0x14009a2b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14009a2b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x14009a3b8]
test rbx, rbx
je 0x140045908
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x30]
xor edx, edx
mov r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140045908
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045908
test byte [rax + 0x1c], r14b
je 0x140045908
cmp byte [rax + 0x19], r12b
jb 0x140045908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140083a78]
mov r9d, eax
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rcx, qword [0x14009a410]
test rcx, rcx
je 0x140045961
lea rdx, str.Waiting_for_TapiWorkerThread_to_terminate.
call fcn.140045c2c
test eax, eax
jne 0x140045961
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045961
test byte [rax + 0x1c], r14b
je 0x140045961
cmp byte [rax + 0x19], r12b
jb 0x140045961
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140083a78]
mov r9d, eax
mov edx, 0x41
mov rcx, qword [rcx + 0x10]
call fcn.140001030
call fcn.140045264
test eax, eax
jne 0x1400459a7
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400459a7
test byte [rax + 0x1c], r14b
je 0x1400459a7
cmp byte [rax + 0x19], r12b
jb 0x1400459a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140083a78]
mov r9d, eax
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rdi, qword [0x140099fd0]
lea r13, [0x140099fd0]
jmp 0x140045a30
mov rcx, qword [rdi]
mov rbx, rdi
mov rdi, rcx
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400459ff
test byte [rcx + 0x1c], r14b
je 0x1400459ff
cmp byte [rcx + 0x19], 5
jb 0x1400459ff
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081e20]
mov edx, 0xa
call fcn.140001010
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140045a0e
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x868]
test rcx, rcx
je 0x140045a28
cmp dword [rbx + 0x8c8], ebp
jne 0x140045a28
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, rbx
call fcn.14006264c
cmp rdi, r13
jne 0x1400459b7
mov rdi, qword [0x14009a200]
lea r13, [0x14009a200]
jmp 0x140045a87
mov rdx, qword [rdi]
lea rbx, [rdi - 0x10]
mov rax, qword [rbx + 0x18]
lea r8, [rdi]
mov rdi, rdx
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov rcx, qword [rbx + 0x40]
mov qword [r8], rbp
mov qword [rbx + 0x18], rbp
call fcn.14006264c
mov rcx, qword [rbx + 0x38]
call fcn.14006264c
mov rcx, qword [rbx + 0x48]
call fcn.14006264c
mov rcx, rbx
call fcn.14006264c
cmp rdi, r13
jne 0x140045a45
mov rdi, qword [0x14009a1c8]
lea r13, [0x14009a1c8]
jmp 0x140045b15
mov rcx, qword [rdi]
mov rbx, rdi
mov rdi, rcx
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045ae4
test byte [rcx + 0x1c], r14b
je 0x140045ae4
cmp byte [rcx + 0x19], 5
jb 0x140045ae4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400837c0]
mov edx, VariantTimeToDosDateTime
call fcn.140001010
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140045af3
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x650]
test rcx, rcx
je 0x140045b0d
cmp dword [rbx + 0x658], ebp
jne 0x140045b0d
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, rbx
call fcn.14006264c
cmp rdi, r13
jne 0x140045a9c
mov rbx, qword [0x14009a0e0]
lea rdi, [0x14009a0e0]
jmp 0x140045b35
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14002ae80
cmp rbx, rdi
jne 0x140045b2a
mov rbx, qword [0x14009a3c0]
lea rdi, [0x14009a3c0]
jmp 0x140045b6a
mov rdx, qword [rbx]
mov rcx, rbx
mov rbx, rdx
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
call fcn.140046d34
cmp rbx, rdi
jne 0x140045b4a
mov rbx, qword [0x14009a400]
lea rdi, [0x14009a400]
jmp 0x140045b9f
mov rdx, qword [rbx]
mov rcx, rbx
mov rbx, rdx
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
call fcn.140046d34
cmp rbx, rdi
jne 0x140045b7f
mov rbx, qword [0x14009a170]
lea rdi, [0x14009a170]
jmp 0x140045bf4
mov rdx, qword [rbx]
mov rcx, rbx
mov rbx, rdx
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rdx + 8], rax
cmp dword [rcx + 0x24], 0x20
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
jne 0x140045bdc
call fcn.140039ae8
jmp 0x140045bf4
cmp dword [rcx + 0x24], r12d
jne 0x140045be9
call fcn.140039c20
jmp 0x140045bf4
cmp dword [rcx + 0x24], 8
jne 0x140045bf4
call fcn.14003a0c4
cmp rbx, rdi
jne 0x140045bb4
xor r8d, r8d
mov r9d, 0x40007d12
mov edx, esi
lea ecx, [r8 + 1]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.1400629d0