Function at 0x140048c68
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, [0x140089a98]
mov r14b, 4
cmp rcx, r15
je 0x140048cc1
test byte [rcx + 0x1c], r14b
je 0x140048cc1
cmp byte [rcx + 0x19], 5
jb 0x140048cc1
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.1400582c8
xor ebp, ebp
test eax, eax
jne 0x140048d18
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140048d18
test byte [rax + 0x1c], r14b
je 0x140048d18
cmp byte [rax + 0x19], 2
jb 0x140048d18
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.140024f2c
test eax, eax
je 0x140048d4d
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048d54
test byte [rcx + 0x1c], r14b
je 0x140048d54
cmp byte [rcx + 0x19], 2
jb 0x140048d54
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 0x140048d7f
test byte [rcx + 0x1c], r14b
je 0x140048d7f
cmp byte [rcx + 0x19], 5
jb 0x140048d7f
mov rcx, qword [rcx + 0x10]
mov edx, 0x3f
mov r8, r12
call fcn.140001024
mov qword [rsp + 0x28], rbp
lea r8, [0x140024090]
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 0x140048de4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048e83
test byte [rcx + 0x1c], r14b
je 0x140048e83
cmp byte [rcx + 0x19], 2
jb 0x140048e83
lea edx, [rdi + 0x40]
jmp 0x140048e74
lea rdx, str.Waiting_for_SetServiceIsDownFlagThread_to_terminate.
mov rcx, rdi
call fcn.1400493b0
test eax, eax
jne 0x140048e31
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048e31
test byte [rcx + 0x1c], r14b
je 0x140048e31
cmp byte [rcx + 0x19], 2
jb 0x140048e31
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 0x140048e83
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140048e83
test byte [rax + 0x1c], r14b
je 0x140048e83
cmp byte [rax + 0x19], 2
jb 0x140048e83
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 0x140048ed8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140048ed8
test byte [rax + 0x1c], r14b
je 0x140048ed8
cmp byte [rax + 0x19], 2
jb 0x140048ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089a98]
mov r9d, eax
mov edx, 0x3c
mov rcx, qword [rcx + 0x10]
call fcn.140001050
call fcn.140048814
test eax, eax
jne 0x140048f0c
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048f0c
test byte [rcx + 0x1c], r14b
je 0x140048f0c
cmp byte [rcx + 0x19], 2
jb 0x140048f0c
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140089a98]
call fcn.140001024
call fcn.14004953c
test eax, eax
jne 0x140048f40
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140048f40
test byte [rcx + 0x1c], r14b
je 0x140048f40
cmp byte [rcx + 0x19], 2
jb 0x140048f40
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3e]
lea r8, [0x140089a98]
call fcn.140001024
mov rcx, qword [0x14009f380]
test rcx, rcx
je 0x140048fd9
lea rdx, str.Waiting_for_all_threads__except_TapiWorkerThread__to_terminate.
call fcn.1400493b0
test eax, eax
jne 0x140048fa3
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140048fa3
test byte [rax + 0x1c], r14b
je 0x140048fa3
cmp byte [rax + 0x19], 2
jb 0x140048fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089a98]
mov r9d, eax
mov edx, 0x3f
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov ecx, 3
mov r8d, 0x1770
call fcn.140024420
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 0x140049052
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 0x140049052
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x140049052
test byte [rax + 0x1c], r14b
je 0x140049052
cmp byte [rax + 0x19], 2
jb 0x140049052
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089a98]
mov r9d, eax
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rcx, qword [0x14009f410]
test rcx, rcx
je 0x1400490b1
lea rdx, str.Waiting_for_TapiWorkerThread_to_terminate.
call fcn.1400493b0
test eax, eax
jne 0x1400490b1
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x1400490b1
test byte [rax + 0x1c], r14b
je 0x1400490b1
cmp byte [rax + 0x19], 2
jb 0x1400490b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089a98]
mov r9d, eax
mov edx, 0x41
mov rcx, qword [rcx + 0x10]
call fcn.140001050
call fcn.140048a78
test eax, eax
jne 0x1400490fd
mov rax, qword [0x14009b028]
cmp rax, r15
je 0x1400490fd
test byte [rax + 0x1c], r14b
je 0x1400490fd
cmp byte [rax + 0x19], 2
jb 0x1400490fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140089a98]
mov r9d, eax
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rdi, qword [0x14009efd0]
lea r12, [0x14009efd0]
jmp 0x140049195
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 0x140049158
test byte [rcx + 0x1c], r14b
je 0x140049158
cmp byte [rcx + 0x19], 5
jb 0x140049158
mov rcx, qword [rcx + 0x10]
lea r8, [0x140087e40]
mov edx, 0xa
call fcn.140001024
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14004916d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x868]
test rcx, rcx
je 0x14004918d
cmp dword [rbx + 0x8c8], ebp
jne 0x14004918d
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140066f24
cmp rdi, r12
jne 0x140049110
mov rdi, qword [0x14009f200]
lea r12, [0x14009f200]
jmp 0x1400491f0
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.140066f24
mov rcx, qword [rbx + 0x38]
call fcn.140066f24
mov rcx, qword [rbx + 0x48]
call fcn.140066f24
mov rcx, rbx
call fcn.140066f24
cmp rdi, r12
jne 0x1400491ae
mov rdi, qword [0x14009f1c8]
lea r12, [0x14009f1c8]
jmp 0x14004928d
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 0x140049250
test byte [rcx + 0x1c], r14b
je 0x140049250
cmp byte [rcx + 0x19], 5
jb 0x140049250
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400897e0]
mov edx, VariantTimeToDosDateTime
call fcn.140001024
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140049265
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x650]
test rcx, rcx
je 0x140049285
cmp dword [rbx + 0x658], ebp
jne 0x140049285
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140066f24
cmp rdi, r12
jne 0x140049208
mov rbx, qword [0x14009f0e0]
lea rdi, [0x14009f0e0]
jmp 0x1400492b1
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14002cb98
cmp rbx, rdi
jne 0x1400492a6
mov rbx, qword [0x14009f3b8]
lea rdi, [0x14009f3b8]
jmp 0x1400492e6
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.14004a600
cmp rbx, rdi
jne 0x1400492c6
mov rbx, qword [0x14009f400]
lea rdi, [0x14009f400]
jmp 0x14004931b
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.14004a600
cmp rbx, rdi
jne 0x1400492fb
mov rbx, qword [0x14009f170]
lea rdi, [0x14009f170]
jmp 0x140049370
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 0x140049358
call fcn.14003c704
jmp 0x140049370
cmp dword [rcx + 0x24], 2
jne 0x140049365
call fcn.14003c850
jmp 0x140049370
cmp dword [rcx + 0x24], 8
jne 0x140049370
call fcn.14003cd58
cmp rbx, rdi
jne 0x140049330
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.1400672f0