Function at 0x140048f08
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, [0x140089c68]
mov r14b, 4
cmp rcx, r15
je 0x140048f61
test byte [rcx + 0x1c], r14b
je 0x140048f61
cmp byte [rcx + 0x19], 5
jb 0x140048f61
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.140058568
xor ebp, ebp
test eax, eax
jne 0x140048fb8
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140048fb8
test byte [rax + 0x1c], r14b
je 0x140048fb8
cmp byte [rax + 0x19], 2
jb 0x140048fb8
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.1400251cc
test eax, eax
je 0x140048fed
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048ff4
test byte [rcx + 0x1c], r14b
je 0x140048ff4
cmp byte [rcx + 0x19], 2
jb 0x140048ff4
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, [0x140088ab0]
cmp rcx, r15
je 0x14004901f
test byte [rcx + 0x1c], r14b
je 0x14004901f
cmp byte [rcx + 0x19], 5
jb 0x14004901f
mov rcx, qword [rcx + 0x10]
mov edx, 0x40
mov r8, r12
call fcn.140001024
mov qword [rsp + 0x28], rbp
lea r8, [0x140024330]
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 0x140049084
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140049123
test byte [rcx + 0x1c], r14b
je 0x140049123
cmp byte [rcx + 0x19], 2
jb 0x140049123
lea edx, [rdi + 0x41]
jmp 0x140049114
lea rdx, str.Waiting_for_SetServiceIsDownFlagThread_to_terminate.
mov rcx, rdi
call fcn.140049650
test eax, eax
jne 0x1400490d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x1400490d1
test byte [rcx + 0x1c], r14b
je 0x1400490d1
cmp byte [rcx + 0x19], 2
jb 0x1400490d1
mov rcx, qword [rcx + 0x10]
mov edx, 0x42
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 0x140049123
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049123
test byte [rax + 0x1c], r14b
je 0x140049123
cmp byte [rax + 0x19], 2
jb 0x140049123
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov edx, 0x43
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.140001050
test ebx, ebx
je 0x140049178
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049178
test byte [rax + 0x1c], r14b
je 0x140049178
cmp byte [rax + 0x19], 2
jb 0x140049178
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c68]
mov r9d, eax
mov edx, 0x3c
mov rcx, qword [rcx + 0x10]
call fcn.140001050
call fcn.140048ab4
test eax, eax
jne 0x1400491ac
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x1400491ac
test byte [rcx + 0x1c], r14b
je 0x1400491ac
cmp byte [rcx + 0x19], 2
jb 0x1400491ac
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140089c68]
call fcn.140001024
call fcn.1400497dc
test eax, eax
jne 0x1400491e0
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x1400491e0
test byte [rcx + 0x1c], r14b
je 0x1400491e0
cmp byte [rcx + 0x19], 2
jb 0x1400491e0
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3e]
lea r8, [0x140089c68]
call fcn.140001024
mov rcx, qword [0x14009f380]
test rcx, rcx
je 0x140049279
lea rdx, str.Waiting_for_all_threads__except_TapiWorkerThread__to_terminate.
call fcn.140049650
test eax, eax
jne 0x140049243
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049243
test byte [rax + 0x1c], r14b
je 0x140049243
cmp byte [rax + 0x19], 2
jb 0x140049243
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c68]
mov r9d, eax
mov edx, 0x3f
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov ecx, 3
mov r8d, 0x1770
call fcn.1400246c0
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 0x1400492f2
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 0x1400492f2
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x1400492f2
test byte [rax + 0x1c], r14b
je 0x1400492f2
cmp byte [rax + 0x19], 2
jb 0x1400492f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c68]
mov r9d, eax
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rcx, qword [0x14009f410]
test rcx, rcx
je 0x140049351
lea rdx, str.Waiting_for_TapiWorkerThread_to_terminate.
call fcn.140049650
test eax, eax
jne 0x140049351
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049351
test byte [rax + 0x1c], r14b
je 0x140049351
cmp byte [rax + 0x19], 2
jb 0x140049351
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c68]
mov r9d, eax
mov edx, 0x41
mov rcx, qword [rcx + 0x10]
call fcn.140001050
call fcn.140048d18
test eax, eax
jne 0x14004939d
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x14004939d
test byte [rax + 0x1c], r14b
je 0x14004939d
cmp byte [rax + 0x19], 2
jb 0x14004939d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089c68]
mov r9d, eax
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rdi, qword [0x14009efd0]
lea r12, [0x14009efd0]
jmp 0x140049435
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 0x1400493f8
test byte [rcx + 0x1c], r14b
je 0x1400493f8
cmp byte [rcx + 0x19], 5
jb 0x1400493f8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140087ff0]
mov edx, 0xa
call fcn.140001024
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14004940d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x868]
test rcx, rcx
je 0x14004942d
cmp dword [rbx + 0x8c8], ebp
jne 0x14004942d
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400671c4
cmp rdi, r12
jne 0x1400493b0
mov rdi, qword [0x14009f200]
lea r12, [0x14009f200]
jmp 0x140049490
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.1400671c4
mov rcx, qword [rbx + 0x38]
call fcn.1400671c4
mov rcx, qword [rbx + 0x48]
call fcn.1400671c4
mov rcx, rbx
call fcn.1400671c4
cmp rdi, r12
jne 0x14004944e
mov rdi, qword [0x14009f1c8]
lea r12, [0x14009f1c8]
jmp 0x14004952d
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 0x1400494f0
test byte [rcx + 0x1c], r14b
je 0x1400494f0
cmp byte [rcx + 0x19], 5
jb 0x1400494f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400899b0]
mov edx, VariantTimeToDosDateTime
call fcn.140001024
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140049505
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x650]
test rcx, rcx
je 0x140049525
cmp dword [rbx + 0x658], ebp
jne 0x140049525
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400671c4
cmp rdi, r12
jne 0x1400494a8
mov rbx, qword [0x14009f0e0]
lea rdi, [0x14009f0e0]
jmp 0x140049551
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14002ce38
cmp rbx, rdi
jne 0x140049546
mov rbx, qword [0x14009f3b8]
lea rdi, [0x14009f3b8]
jmp 0x140049586
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.14004a8a0
cmp rbx, rdi
jne 0x140049566
mov rbx, qword [0x14009f400]
lea rdi, [0x14009f400]
jmp 0x1400495bb
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.14004a8a0
cmp rbx, rdi
jne 0x14004959b
mov rbx, qword [0x14009f170]
lea rdi, [0x14009f170]
jmp 0x140049610
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 0x1400495f8
call fcn.14003c9a4
jmp 0x140049610
cmp dword [rcx + 0x24], 2
jne 0x140049605
call fcn.14003caf0
jmp 0x140049610
cmp dword [rcx + 0x24], 8
jne 0x140049610
call fcn.14003cff8
cmp rbx, rdi
jne 0x1400495d0
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.140067590