Function at 0x1400499e0
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 [0x14009b020]
lea r15, [0x14009b020]
lea rbx, [0x14008d138]
mov r14b, 4
cmp rcx, r15
je 0x140049a39
test byte [rcx + 0x1c], r14b
je 0x140049a39
cmp byte [rcx + 0x19], 5
jb 0x140049a39
mov rcx, qword [rcx + 0x10]
mov edx, 0x39
mov r8, rbx
call fcn.1400042fc
xor r9d, r9d
xor ecx, ecx
mov r8d, 0xffffffff
lea edx, [r9 + 0x14]
call fcn.140059108
xor ebp, ebp
test eax, eax
jne 0x140049a90
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140049a90
test byte [rax + 0x1c], r14b
je 0x140049a90
cmp byte [rax + 0x19], 2
jb 0x140049a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea edx, [rbp + 0x3a]
mov r9d, eax
mov r8, rbx
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
call fcn.1400269f0
test eax, eax
je 0x140049ac5
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140049acc
test byte [rcx + 0x1c], r14b
je 0x140049acc
cmp byte [rcx + 0x19], 2
jb 0x140049acc
mov rcx, qword [rcx + 0x10]
mov edx, 0x3b
mov r9d, eax
mov r8, rbx
call fcn.1400046fc
mov rcx, qword [0x14009b020]
mov ebx, ebp
lea r12, str._j_
cmp rcx, r15
je 0x140049af7
test byte [rcx + 0x1c], r14b
je 0x140049af7
cmp byte [rcx + 0x19], 5
jb 0x140049af7
mov rcx, qword [rcx + 0x10]
mov edx, 0x3f
mov r8, r12
call fcn.1400042fc
mov qword [rsp + 0x28], rbp
lea r8, [0x1400265c0]
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 0x140049b5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140049bfb
test byte [rcx + 0x1c], r14b
je 0x140049bfb
cmp byte [rcx + 0x19], 2
jb 0x140049bfb
lea edx, [rdi + 0x40]
jmp 0x140049bec
lea rdx, str.Waiting_for_SetServiceIsDownFlagThread_to_terminate.
mov rcx, rdi
call fcn.14004befc
test eax, eax
jne 0x140049ba9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140049ba9
test byte [rcx + 0x1c], r14b
je 0x140049ba9
cmp byte [rcx + 0x19], 2
jb 0x140049ba9
mov rcx, qword [rcx + 0x10]
mov edx, 0x41
mov r9d, eax
mov r8, r12
call fcn.1400046fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140049bfb
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140049bfb
test byte [rax + 0x1c], r14b
je 0x140049bfb
cmp byte [rax + 0x19], 2
jb 0x140049bfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.1400046fc
test ebx, ebx
je 0x140049c50
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140049c50
test byte [rax + 0x1c], r14b
je 0x140049c50
cmp byte [rax + 0x19], 2
jb 0x140049c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008d138]
mov edx, 0x3c
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
call fcn.14004ae14
test eax, eax
jne 0x140049c84
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140049c84
test byte [rcx + 0x1c], r14b
je 0x140049c84
cmp byte [rcx + 0x19], 2
jb 0x140049c84
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x14008d138]
call fcn.1400042fc
call fcn.14004bb68
test eax, eax
jne 0x140049cb8
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140049cb8
test byte [rcx + 0x1c], r14b
je 0x140049cb8
cmp byte [rcx + 0x19], 2
jb 0x140049cb8
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3e]
lea r8, [0x14008d138]
call fcn.1400042fc
mov rcx, qword [0x14009f480]
test rcx, rcx
je 0x140049d51
lea rdx, str.Waiting_for_all_threads__except_TapiWorkerThread__to_terminate.
call fcn.14004befc
test eax, eax
jne 0x140049d1b
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140049d1b
test byte [rax + 0x1c], r14b
je 0x140049d1b
cmp byte [rax + 0x19], 2
jb 0x140049d1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008d138]
mov edx, 0x3f
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
mov ecx, 3
mov r8d, 0x1770
call fcn.140026128
lea rcx, [0x14009f3b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
lea rcx, [0x14009f3b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [0x14009f4c8]
test rcx, rcx
je 0x140049dca
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 0x140049dca
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140049dca
test byte [rax + 0x1c], r14b
je 0x140049dca
cmp byte [rax + 0x19], 2
jb 0x140049dca
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008d138]
mov edx, 0x40
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
mov rcx, qword [0x14009f510]
test rcx, rcx
je 0x140049e29
lea rdx, str.Waiting_for_TapiWorkerThread_to_terminate.
call fcn.14004befc
test eax, eax
jne 0x140049e29
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140049e29
test byte [rax + 0x1c], r14b
je 0x140049e29
cmp byte [rax + 0x19], 2
jb 0x140049e29
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008d138]
mov edx, 0x41
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
call fcn.14004bd0c
test eax, eax
jne 0x140049e75
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140049e75
test byte [rax + 0x1c], r14b
je 0x140049e75
cmp byte [rax + 0x19], 2
jb 0x140049e75
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008d138]
mov edx, 0x42
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
mov rdi, qword [0x14009f0d0]
lea r12, [0x14009f0d0]
jmp 0x140049f0d
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 [0x14009b020]
cmp rcx, r15
je 0x140049ed0
test byte [rcx + 0x1c], r14b
je 0x140049ed0
cmp byte [rcx + 0x19], 5
jb 0x140049ed0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b4e0]
mov edx, 0xa
call fcn.1400042fc
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140049ee5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x868]
test rcx, rcx
je 0x140049f05
cmp dword [rbx + 0x8c8], ebp
jne 0x140049f05
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140069d30
cmp rdi, r12
jne 0x140049e88
mov rdi, qword [0x14009f300]
lea r12, [0x14009f300]
jmp 0x140049f68
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.140069d30
mov rcx, qword [rbx + 0x38]
call fcn.140069d30
mov rcx, qword [rbx + 0x48]
call fcn.140069d30
mov rcx, rbx
call fcn.140069d30
cmp rdi, r12
jne 0x140049f26
mov rdi, qword [0x14009f2c8]
lea r12, [0x14009f2c8]
jmp 0x14004a005
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 [0x14009b020]
cmp rcx, r15
je 0x140049fc8
test byte [rcx + 0x1c], r14b
je 0x140049fc8
cmp byte [rcx + 0x19], 5
jb 0x140049fc8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ce80]
mov edx, 0xb
call fcn.1400042fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140049fdd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x650]
test rcx, rcx
je 0x140049ffd
cmp dword [rbx + 0x658], ebp
jne 0x140049ffd
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140069d30
cmp rdi, r12
jne 0x140049f80
mov rbx, qword [0x14009f1e0]
lea rdi, [0x14009f1e0]
jmp 0x14004a029
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14002dcc8
cmp rbx, rdi
jne 0x14004a01e
mov rbx, qword [0x14009f4b8]
lea rdi, [0x14009f4b8]
jmp 0x14004a05e
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.14004d4d4
cmp rbx, rdi
jne 0x14004a03e
mov rbx, qword [0x14009f500]
lea rdi, [0x14009f500]
jmp 0x14004a093
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.14004d4d4
cmp rbx, rdi
jne 0x14004a073
mov rbx, qword [0x14009f270]
lea rdi, [0x14009f270]
jmp 0x14004a0e8
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 0x14004a0d0
call fcn.14003a518
jmp 0x14004a0e8
cmp dword [rcx + 0x24], 2
jne 0x14004a0dd
call fcn.14003a944
jmp 0x14004a0e8
cmp dword [rcx + 0x24], 8
jne 0x14004a0e8
call fcn.14003a658
cmp rbx, rdi
jne 0x14004a0a8
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.140069d80