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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov esi, ecx
mov rcx, qword [0x14009b028]
lea r15, [0x14009b028]
lea rbx, [0x140089c28]
mov r14b, 4
cmp rcx, r15
je 0x140048e61
test byte [rcx + 0x1c], r14b
je 0x140048e61
cmp byte [rcx + 0x19], 5
jb 0x140048e61
mov rcx, qword [rcx + 0x10]
mov edx, 0x39
mov r8, rbx
call fcn.140001024
xor r9d, r9d
xor ecx, ecx
mov r8d, 0xffffffff
lea edx, [r9 + 0x14]
call fcn.140058468
xor ebp, ebp
test eax, eax
jne 0x140048eb8
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140048eb8
test byte [rax + 0x1c], r14b
je 0x140048eb8
cmp byte [rax + 0x19], 2
jb 0x140048eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rbp + 0x3a]
mov r9d, eax
mov r8, rbx
mov rcx, qword [rcx + 0x10]
call fcn.140001050
call fcn.1400250cc
test eax, eax
je 0x140048eed
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048ef4
test byte [rcx + 0x1c], r14b
je 0x140048ef4
cmp byte [rcx + 0x19], 2
jb 0x140048ef4
mov rcx, qword [rcx + 0x10]
mov edx, 0x3b
mov r9d, eax
mov r8, rbx
call fcn.140001050
mov rcx, qword [0x14009b028]
mov ebx, ebp
lea r12, str._j_
cmp rcx, r15
je 0x140048f1f
test byte [rcx + 0x1c], r14b
je 0x140048f1f
cmp byte [rcx + 0x19], 5
jb 0x140048f1f
mov rcx, qword [rcx + 0x10]
mov edx, 0x3f
mov r8, r12
call fcn.140001024
mov qword [rsp + 0x28], rbp
lea r8, [0x140024230]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140048f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140049023
test byte [rcx + 0x1c], r14b
je 0x140049023
cmp byte [rcx + 0x19], 2
jb 0x140049023
lea edx, [rdi + 0x40]
jmp 0x140049014
lea rdx, str.Waiting_for_SetServiceIsDownFlagThread_to_terminate.
mov rcx, rdi
call fcn.140049550
test eax, eax
jne 0x140048fd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048fd1
test byte [rcx + 0x1c], r14b
je 0x140048fd1
cmp byte [rcx + 0x19], 2
jb 0x140048fd1
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, eax
mov r8, r12
call fcn.140001050
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140049023
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049023
test byte [rax + 0x1c], r14b
je 0x140049023
cmp byte [rax + 0x19], 2
jb 0x140049023
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.140001050
test ebx, ebx
je 0x140049078
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049078
test byte [rax + 0x1c], r14b
je 0x140049078
cmp byte [rax + 0x19], 2
jb 0x140049078
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c28]
mov r9d, eax
mov edx, 0x3c
mov rcx, qword [rcx + 0x10]
call fcn.140001050
call fcn.1400489b4
test eax, eax
jne 0x1400490ac
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x1400490ac
test byte [rcx + 0x1c], r14b
je 0x1400490ac
cmp byte [rcx + 0x19], 2
jb 0x1400490ac
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140089c28]
call fcn.140001024
call fcn.1400496dc
test eax, eax
jne 0x1400490e0
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x1400490e0
test byte [rcx + 0x1c], r14b
je 0x1400490e0
cmp byte [rcx + 0x19], 2
jb 0x1400490e0
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3e]
lea r8, [0x140089c28]
call fcn.140001024
mov rcx, qword [0x14009f380]
test rcx, rcx
je 0x140049179
lea rdx, str.Waiting_for_all_threads__except_TapiWorkerThread__to_terminate.
call fcn.140049550
test eax, eax
jne 0x140049143
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049143
test byte [rax + 0x1c], r14b
je 0x140049143
cmp byte [rax + 0x19], 2
jb 0x140049143
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c28]
mov r9d, eax
mov edx, 0x3f
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov ecx, 3
mov r8d, 0x1770
call fcn.1400245c0
lea rcx, [0x14009f2b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
lea rcx, [0x14009f2b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [0x14009f3c8]
test rcx, rcx
je 0x1400491f2
xorps xmm0, xmm0
lea r9, [rsp + 0x30]
xor edx, edx
mov r8d, 0xffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
nop dword [rax + rax]
test eax, eax
jne 0x1400491f2
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x1400491f2
test byte [rax + 0x1c], r14b
je 0x1400491f2
cmp byte [rax + 0x19], 2
jb 0x1400491f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c28]
mov r9d, eax
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rcx, qword [0x14009f410]
test rcx, rcx
je 0x140049251
lea rdx, str.Waiting_for_TapiWorkerThread_to_terminate.
call fcn.140049550
test eax, eax
jne 0x140049251
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049251
test byte [rax + 0x1c], r14b
je 0x140049251
cmp byte [rax + 0x19], 2
jb 0x140049251
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c28]
mov r9d, eax
mov edx, 0x41
mov rcx, qword [rcx + 0x10]
call fcn.140001050
call fcn.140048c18
test eax, eax
jne 0x14004929d
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x14004929d
test byte [rax + 0x1c], r14b
je 0x14004929d
cmp byte [rax + 0x19], 2
jb 0x14004929d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c28]
mov r9d, eax
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rdi, qword [0x14009efd0]
lea r12, [0x14009efd0]
jmp 0x140049335
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 [0x14009b028]
cmp rcx, r15
je 0x1400492f8
test byte [rcx + 0x1c], r14b
je 0x1400492f8
cmp byte [rcx + 0x19], 5
jb 0x1400492f8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140087fd0]
mov edx, 0xa
call fcn.140001024
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14004930d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x868]
test rcx, rcx
je 0x14004932d
cmp dword [rbx + 0x8c8], ebp
jne 0x14004932d
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400670c4
cmp rdi, r12
jne 0x1400492b0
mov rdi, qword [0x14009f200]
lea r12, [0x14009f200]
jmp 0x140049390
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.1400670c4
mov rcx, qword [rbx + 0x38]
call fcn.1400670c4
mov rcx, qword [rbx + 0x48]
call fcn.1400670c4
mov rcx, rbx
call fcn.1400670c4
cmp rdi, r12
jne 0x14004934e
mov rdi, qword [0x14009f1c8]
lea r12, [0x14009f1c8]
jmp 0x14004942d
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 [0x14009b028]
cmp rcx, r15
je 0x1400493f0
test byte [rcx + 0x1c], r14b
je 0x1400493f0
cmp byte [rcx + 0x19], 5
jb 0x1400493f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089970]
mov edx, VariantTimeToDosDateTime
call fcn.140001024
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140049405
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x650]
test rcx, rcx
je 0x140049425
cmp dword [rbx + 0x658], ebp
jne 0x140049425
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400670c4
cmp rdi, r12
jne 0x1400493a8
mov rbx, qword [0x14009f0e0]
lea rdi, [0x14009f0e0]
jmp 0x140049451
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14002cd38
cmp rbx, rdi
jne 0x140049446
mov rbx, qword [0x14009f3b8]
lea rdi, [0x14009f3b8]
jmp 0x140049486
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.14004a7a0
cmp rbx, rdi
jne 0x140049466
mov rbx, qword [0x14009f400]
lea rdi, [0x14009f400]
jmp 0x1400494bb
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.14004a7a0
cmp rbx, rdi
jne 0x14004949b
mov rbx, qword [0x14009f170]
lea rdi, [0x14009f170]
jmp 0x140049510
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 0x1400494f8
call fcn.14003c8a4
jmp 0x140049510
cmp dword [rcx + 0x24], 2
jne 0x140049505
call fcn.14003c9f0
jmp 0x140049510
cmp dword [rcx + 0x24], 8
jne 0x140049510
call fcn.14003cef8
cmp rbx, rdi
jne 0x1400494d0
xor r8d, r8d
mov r9d, 0x40007d12
mov edx, esi
lea ecx, [r8 + 1]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
jmp fcn.140067490