Function at 0x140045e98
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 0x140045eed
test byte [rcx + 0x1c], r14b
je 0x140045eed
cmp byte [rcx + 0x19], 5
jb 0x140045eed
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083a78]
mov edx, 0x39
call fcn.140001024
xor r9d, r9d
xor ecx, ecx
mov r8d, 0xffffffff
lea edx, [r9 + 0x14]
call fcn.140054e4c
xor ebp, ebp
lea r13, [0x1400828c0]
lea r12d, [rbp + 2]
test eax, eax
jne 0x140045f4d
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045f76
test byte [rcx + 0x1c], r14b
je 0x140045f54
cmp byte [rcx + 0x19], r12b
jb 0x140045f54
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.140001048
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045f76
test byte [rcx + 0x1c], r14b
je 0x140045f76
cmp byte [rcx + 0x19], 5
jb 0x140045f76
mov rcx, qword [rcx + 0x10]
mov edx, 0x69
mov r8, r13
call fcn.140001024
xor ecx, ecx
mov ebx, ebp
call qword [sym.imp.RPCRT4.dll_RpcMgmtStopServerListening]
mov edi, eax
test eax, eax
je 0x140045fb4
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140045fb2
test byte [rcx + 0x1c], r14b
je 0x140045fb2
cmp byte [rcx + 0x19], r12b
jb 0x140045fb2
mov rcx, qword [rcx + 0x10]
mov edx, 0x6a
mov r9d, eax
mov r8, r13
call fcn.140001048
mov ebx, edi
mov rcx, qword [0x140098390]
test rcx, rcx
je 0x14004605e
lea rdx, str.Waiting_for_RPC_listning_thread_to_terminate.
call fcn.1400466b8
test eax, eax
jne 0x14004600d
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004600d
test byte [rax + 0x1c], r14b
je 0x14004600d
cmp byte [rax + 0x19], r12b
jb 0x14004600d
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.140001048
mov rcx, qword [0x140098390]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140046057
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140046057
test byte [rax + 0x1c], r14b
je 0x140046057
cmp byte [rax + 0x19], r12b
jb 0x140046057
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.140001048
mov qword [0x140098390], rbp
xor r8d, r8d
lea rcx, [0x14007e770]
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIfEx]
mov edi, eax
test eax, eax
je 0x1400460a2
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400460a9
test byte [rcx + 0x1c], r14b
je 0x1400460a9
cmp byte [rcx + 0x19], r12b
jb 0x1400460a9
mov rcx, qword [rcx + 0x10]
mov edx, 0x6d
mov r9d, eax
mov r8, r13
call fcn.140001048
mov rcx, qword [str.___t_]
test ebx, ebx
cmove ebx, edi
test ebx, ebx
je 0x1400460e2
cmp rcx, r15
je 0x1400460e2
test byte [rcx + 0x1c], r14b
je 0x1400460e2
cmp byte [rcx + 0x19], r12b
jb 0x1400460e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083a78]
mov edx, 0x3b
mov r9d, ebx
call fcn.140001048
mov rcx, qword [str.___t_]
mov ebx, ebp
cmp rcx, r15
je 0x140046106
test byte [rcx + 0x1c], r14b
je 0x140046106
cmp byte [rcx + 0x19], 5
jb 0x140046106
mov rcx, qword [rcx + 0x10]
mov edx, 0x3f
mov r8, r13
call fcn.140001024
mov qword [rsp + 0x28], rbp
lea r8, [0x140022ee0]
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 0x14004615c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400461e9
test byte [rcx + 0x1c], r14b
je 0x1400461e9
cmp byte [rcx + 0x19], r12b
jb 0x1400461e9
lea edx, [rdi + 0x40]
jmp 0x1400461da
lea rdx, str.Waiting_for_SetServiceIsDownFlagThread_to_terminate.
mov rcx, rdi
call fcn.1400466b8
test eax, eax
jne 0x1400461a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400461a3
test byte [rcx + 0x1c], r14b
je 0x1400461a3
cmp byte [rcx + 0x19], r12b
jb 0x1400461a3
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, eax
mov r8, r13
call fcn.140001048
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400461e9
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400461e9
test byte [rax + 0x1c], r14b
je 0x1400461e9
cmp byte [rax + 0x19], r12b
jb 0x1400461e9
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.140001048
test ebx, ebx
je 0x140046232
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140046232
test byte [rax + 0x1c], r14b
je 0x140046232
cmp byte [rax + 0x19], r12b
jb 0x140046232
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.140001048
call fcn.140045abc
test eax, eax
jne 0x140046266
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140046266
test byte [rcx + 0x1c], r14b
je 0x140046266
cmp byte [rcx + 0x19], r12b
jb 0x140046266
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140083a78]
call fcn.140001024
call fcn.140046830
test eax, eax
jne 0x14004629a
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004629a
test byte [rcx + 0x1c], r14b
je 0x14004629a
cmp byte [rcx + 0x19], r12b
jb 0x14004629a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3e]
lea r8, [0x140083a78]
call fcn.140001024
mov rcx, qword [0x140098380]
test rcx, rcx
je 0x14004631d
lea rdx, str.Waiting_for_all_threads__except_TapiWorkerThread__to_terminate.
call fcn.1400466b8
test eax, eax
jne 0x1400462f3
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400462f3
test byte [rax + 0x1c], r14b
je 0x1400462f3
cmp byte [rax + 0x19], r12b
jb 0x1400462f3
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.140001048
mov ecx, 3
mov r8d, 0x1770
call fcn.14002323c
lea rcx, [0x1400982b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400982b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x1400983b8]
test rbx, rbx
je 0x140046390
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 0x140046390
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140046390
test byte [rax + 0x1c], r14b
je 0x140046390
cmp byte [rax + 0x19], r12b
jb 0x140046390
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.140001048
mov rcx, qword [0x140098410]
test rcx, rcx
je 0x1400463e9
lea rdx, str.Waiting_for_TapiWorkerThread_to_terminate.
call fcn.1400466b8
test eax, eax
jne 0x1400463e9
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400463e9
test byte [rax + 0x1c], r14b
je 0x1400463e9
cmp byte [rax + 0x19], r12b
jb 0x1400463e9
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.140001048
call fcn.140045ce4
test eax, eax
jne 0x14004642f
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004642f
test byte [rax + 0x1c], r14b
je 0x14004642f
cmp byte [rax + 0x19], r12b
jb 0x14004642f
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.140001048
mov rdi, qword [0x140097fd0]
lea r13, [0x140097fd0]
jmp 0x1400464b8
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 0x140046487
test byte [rcx + 0x1c], r14b
je 0x140046487
cmp byte [rcx + 0x19], 5
jb 0x140046487
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081e20]
mov edx, 0xa
call fcn.140001024
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140046496
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x868]
test rcx, rcx
je 0x1400464b0
cmp dword [rbx + 0x8c8], ebp
jne 0x1400464b0
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, rbx
call fcn.1400634d4
cmp rdi, r13
jne 0x14004643f
mov rdi, qword [0x140098200]
lea r13, [0x140098200]
jmp 0x14004650f
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.1400634d4
mov rcx, qword [rbx + 0x38]
call fcn.1400634d4
mov rcx, qword [rbx + 0x48]
call fcn.1400634d4
mov rcx, rbx
call fcn.1400634d4
cmp rdi, r13
jne 0x1400464cd
mov rdi, qword [0x1400981c8]
lea r13, [0x1400981c8]
jmp 0x14004659d
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 0x14004656c
test byte [rcx + 0x1c], r14b
je 0x14004656c
cmp byte [rcx + 0x19], 5
jb 0x14004656c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400837c0]
mov edx, 0xb
call fcn.140001024
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004657b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x650]
test rcx, rcx
je 0x140046595
cmp dword [rbx + 0x658], ebp
jne 0x140046595
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, rbx
call fcn.1400634d4
cmp rdi, r13
jne 0x140046524
mov rbx, qword [0x1400980e0]
lea rdi, [0x1400980e0]
jmp 0x1400465bd
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14002b5e0
cmp rbx, rdi
jne 0x1400465b2
mov rbx, qword [0x1400983c0]
lea rdi, [0x1400983c0]
jmp 0x1400465f2
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.140047814
cmp rbx, rdi
jne 0x1400465d2
mov rbx, qword [0x140098400]
lea rdi, [0x140098400]
jmp 0x140046627
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.140047814
cmp rbx, rdi
jne 0x140046607
mov rbx, qword [0x140098170]
lea rdi, [0x140098170]
jmp 0x14004667c
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 0x140046664
call fcn.14003a410
jmp 0x14004667c
cmp dword [rcx + 0x24], r12d
jne 0x140046671
call fcn.14003a550
jmp 0x14004667c
cmp dword [rcx + 0x24], 8
jne 0x14004667c
call fcn.14003aa04
cmp rbx, rdi
jne 0x14004663c
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.140063864