Function at 0x140045000
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 0x140045055
test byte [rcx + 0x1c], r14b
je 0x140045055
cmp byte [rcx + 0x19], 5
jb 0x140045055
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082a68]
mov edx, 0x39
call fcn.140001010
xor r9d, r9d
xor ecx, ecx
mov r8d, 0xffffffff
lea edx, [r9 + 0x14]
call fcn.140053e0c
xor ebp, ebp
lea r13, str._Z
lea r12d, [rbp + 2]
test eax, eax
jne 0x1400450b5
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400450de
test byte [rcx + 0x1c], r14b
je 0x1400450bc
cmp byte [rcx + 0x19], r12b
jb 0x1400450bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rbp + 0x3a]
mov r9d, eax
lea r8, [0x140082a68]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400450de
test byte [rcx + 0x1c], r14b
je 0x1400450de
cmp byte [rcx + 0x19], 5
jb 0x1400450de
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 0x14004511c
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004511a
test byte [rcx + 0x1c], r14b
je 0x14004511a
cmp byte [rcx + 0x19], r12b
jb 0x14004511a
mov rcx, qword [rcx + 0x10]
mov edx, 0x6a
mov r9d, eax
mov r8, r13
call fcn.140001030
mov ebx, edi
mov rcx, qword [0x1400983b0]
test rcx, rcx
je 0x1400451c6
lea rdx, str.Waiting_for_RPC_listning_thread_to_terminate.
call fcn.140045818
test eax, eax
jne 0x140045175
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045175
test byte [rax + 0x1c], r14b
je 0x140045175
cmp byte [rax + 0x19], r12b
jb 0x140045175
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 [0x1400983b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400451bf
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400451bf
test byte [rax + 0x1c], r14b
je 0x1400451bf
cmp byte [rax + 0x19], r12b
jb 0x1400451bf
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 [0x1400983b0], rbp
xor r8d, r8d
lea rcx, [0x14007d770]
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIfEx]
mov edi, eax
test eax, eax
je 0x14004520a
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045211
test byte [rcx + 0x1c], r14b
je 0x140045211
cmp byte [rcx + 0x19], r12b
jb 0x140045211
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 0x14004524a
cmp rcx, r15
je 0x14004524a
test byte [rcx + 0x1c], r14b
je 0x14004524a
cmp byte [rcx + 0x19], r12b
jb 0x14004524a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082a68]
mov edx, 0x3b
mov r9d, ebx
call fcn.140001030
mov rcx, qword [str.___t_]
mov ebx, ebp
cmp rcx, r15
je 0x14004526e
test byte [rcx + 0x1c], r14b
je 0x14004526e
cmp byte [rcx + 0x19], 5
jb 0x14004526e
mov rcx, qword [rcx + 0x10]
mov edx, 0x3f
mov r8, r13
call fcn.140001010
mov qword [rsp + 0x28], rbp
lea r8, [0x140022710]
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 0x1400452c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045351
test byte [rcx + 0x1c], r14b
je 0x140045351
cmp byte [rcx + 0x19], r12b
jb 0x140045351
lea edx, [rdi + 0x40]
jmp 0x140045342
lea rdx, str.Waiting_for_SetServiceIsDownFlagThread_to_terminate.
mov rcx, rdi
call fcn.140045818
test eax, eax
jne 0x14004530b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004530b
test byte [rcx + 0x1c], r14b
je 0x14004530b
cmp byte [rcx + 0x19], r12b
jb 0x14004530b
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 0x140045351
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045351
test byte [rax + 0x1c], r14b
je 0x140045351
cmp byte [rax + 0x19], r12b
jb 0x140045351
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 0x14004539a
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004539a
test byte [rax + 0x1c], r14b
je 0x14004539a
cmp byte [rax + 0x19], r12b
jb 0x14004539a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082a68]
mov r9d, eax
mov edx, 0x3c
mov rcx, qword [rcx + 0x10]
call fcn.140001030
call fcn.140044c30
test eax, eax
jne 0x1400453ce
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400453ce
test byte [rcx + 0x1c], r14b
je 0x1400453ce
cmp byte [rcx + 0x19], r12b
jb 0x1400453ce
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140082a68]
call fcn.140001010
call fcn.140045988
test eax, eax
jne 0x140045402
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045402
test byte [rcx + 0x1c], r14b
je 0x140045402
cmp byte [rcx + 0x19], r12b
jb 0x140045402
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3e]
lea r8, [0x140082a68]
call fcn.140001010
mov rcx, qword [0x1400983a0]
test rcx, rcx
je 0x140045485
lea rdx, str.Waiting_for_all_threads__except_TapiWorkerThread__to_terminate.
call fcn.140045818
test eax, eax
jne 0x14004545b
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004545b
test byte [rax + 0x1c], r14b
je 0x14004545b
cmp byte [rax + 0x19], r12b
jb 0x14004545b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082a68]
mov r9d, eax
mov edx, 0x3f
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov ecx, 3
mov r8d, 0x1770
call fcn.140022a68
lea rcx, [0x1400982d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400982d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x1400983e8]
test rbx, rbx
je 0x1400454f8
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 0x1400454f8
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400454f8
test byte [rax + 0x1c], r14b
je 0x1400454f8
cmp byte [rax + 0x19], r12b
jb 0x1400454f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082a68]
mov r9d, eax
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rcx, qword [0x140098430]
test rcx, rcx
je 0x140045551
lea rdx, str.Waiting_for_TapiWorkerThread_to_terminate.
call fcn.140045818
test eax, eax
jne 0x140045551
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045551
test byte [rax + 0x1c], r14b
je 0x140045551
cmp byte [rax + 0x19], r12b
jb 0x140045551
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082a68]
mov r9d, eax
mov edx, 0x41
mov rcx, qword [rcx + 0x10]
call fcn.140001030
call fcn.140044e54
test eax, eax
jne 0x140045597
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140045597
test byte [rax + 0x1c], r14b
je 0x140045597
cmp byte [rax + 0x19], r12b
jb 0x140045597
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140082a68]
mov r9d, eax
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rdi, qword [0x140097ff0]
lea r13, [0x140097ff0]
jmp 0x140045620
mov rbx, rdi
mov rdi, qword [rdi]
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
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 0x1400455ef
test byte [rcx + 0x1c], r14b
je 0x1400455ef
cmp byte [rcx + 0x19], 5
jb 0x1400455ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x140080e10]
mov edx, 0xa
call fcn.140001010
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400455fe
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x868]
test rcx, rcx
je 0x140045618
cmp dword [rbx + 0x8c8], ebp
jne 0x140045618
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, rbx
call fcn.140062654
cmp rdi, r13
jne 0x1400455a7
mov rdi, qword [0x140098220]
lea r13, [0x140098220]
jmp 0x140045673
lea rbx, [rdi - 0x10]
mov rax, qword [rbx + 0x18]
mov rdi, qword [rbx + 0x10]
mov qword [rax], rdi
mov qword [rdi + 8], rax
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
call fcn.140062654
mov rcx, qword [rbx + 0x38]
call fcn.140062654
mov rcx, qword [rbx + 0x48]
call fcn.140062654
mov rcx, rbx
call fcn.140062654
cmp rdi, r13
jne 0x140045635
mov rdi, qword [0x1400981e8]
lea r13, [0x1400981e8]
jmp 0x140045701
mov rbx, rdi
mov rdi, qword [rdi]
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
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 0x1400456d0
test byte [rcx + 0x1c], r14b
je 0x1400456d0
cmp byte [rcx + 0x19], 5
jb 0x1400456d0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400827b0]
mov edx, 0xb
call fcn.140001010
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400456df
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x650]
test rcx, rcx
je 0x1400456f9
cmp dword [rbx + 0x658], ebp
jne 0x1400456f9
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, rbx
call fcn.140062654
cmp rdi, r13
jne 0x140045688
mov rbx, qword [0x140098100]
lea rdi, [0x140098100]
jmp 0x140045721
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14002ac40
cmp rbx, rdi
jne 0x140045716
mov rbx, qword [0x1400983d8]
lea rdi, [0x1400983d8]
jmp 0x140045756
mov rcx, rbx
mov rbx, qword [rbx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
call fcn.140046924
cmp rbx, rdi
jne 0x140045736
mov rbx, qword [0x140098420]
lea rdi, [0x140098420]
jmp 0x14004578b
mov rcx, rbx
mov rbx, qword [rbx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov qword [rdx + 8], rax
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
call fcn.140046924
cmp rbx, rdi
jne 0x14004576b
mov rbx, qword [0x140098190]
lea rdi, [0x140098190]
jmp 0x1400457e0
mov rcx, rbx
mov rbx, qword [rbx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov qword [rdx + 8], rax
cmp dword [rcx + 0x24], 0x20
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
jne 0x1400457c8
call fcn.1400397e0
jmp 0x1400457e0
cmp dword [rcx + 0x24], r12d
jne 0x1400457d5
call fcn.14003990c
jmp 0x1400457e0
cmp dword [rcx + 0x24], 8
jne 0x1400457e0
call fcn.140039da8
cmp rbx, rdi
jne 0x1400457a0
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.140062ba4