Function at 0x1400c4de0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, rdx
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1403aadb0]
lea r14d, [r13 + 1]
mov r8d, r14d
xor edx, edx
lea rcx, [0x1403aada0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400c4eb4
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x1400c4e9f
mov dword [rsp + 0x38], ebx
lea rcx, str.Machine_state_OsInfo_state_collector___failed_to_create_SWbemDateTime_instance
mov qword [rbp - 0x60], rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x1404553d9]
mov rcx, rax
call fcn.14000615c
mov dword [rdi], ebx
mov qword [rdi + 4], r13
lea rcx, [rsp + 0x30]
call fcn.1400ad580
jmp 0x1400c52b9
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov rax, qword [rsp + 0x60]
shr rax, 0x20
shl rax, 0x20
mov ecx, dword [rsp + 0x60]
movabs rdx, 0xfffffa7fd71bc000
add rax, rdx
add rcx, rax
mov qword [rbp - 0x58], rcx
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x28]
call fcn.1400c5328
nop
mov ebx, dword [rbp - 0x28]
test ebx, ebx
jns 0x1400c4f56
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x1400c4f42
mov dword [rsp + 0x3c], ebx
lea rcx, str.Machine_state_OsInfo_state_collector___failed_to_convert_time_to_CIM_DATETIME
mov qword [rbp - 0x50], rcx
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x140455661]
mov rcx, rax
call fcn.14000615c
mov dword [rdi], ebx
mov qword [rdi + 4], r13
lea rcx, [rbp - 0x20]
call fcn.14007a7c0
jmp 0x1400c4ea5
lea rdx, str.RootCIMV2
lea rcx, [rbp + 0x60]
call fcn.14008c350
nop
lea r8, [rbp - 0x20]
lea rdx, str.SELECT_TimeGenerated_FROM_Win32_NTLogEvent_WHERE_Logfile__System_AND_EventCode__6006_AND_TimeGenerated___
lea rcx, [rbp + 0x20]
call fcn.140077558
nop
lea r8, [0x1403e9bdc]
mov rdx, rax
lea rcx, [rbp]
call fcn.140076bd4
mov rbx, rax
lea rdx, str.TimeGenerated
lea rcx, [rbp + 0x40]
call fcn.14008c350
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14010fec4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x70]
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400e685c
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x68]
call fcn.140111468
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.140099980
nop
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.140099980
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0xc0]
call fcn.14009ba8c
nop
lea rcx, [rsp + 0x70]
call fcn.140079000
nop
lea r9, [fcn.14007a7c0]
mov r8, r14
mov edx, Compress
lea rcx, [rbp + 0x40]
call fcn.140112a70
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1400c5065
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
call fcn.14007e6f0
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r13w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1400c5092
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
call fcn.14007e6f0
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r13w
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x1400c50bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
call fcn.14007e6f0
mov r8d, dword [rsi + 0x80]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x80]
call fcn.140070400
mov ebx, eax
test eax, eax
jns 0x1400c5132
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x1400c511b
mov dword [rsp + 0x40], ebx
lea rcx, str.Machine_state_OsInfo_state_collector___failed_to_query_shutdown_event_from_event_log
mov qword [rbp - 0x48], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x1404553d9]
mov rcx, rax
call fcn.14000615c
mov dword [rdi], ebx
mov qword [rdi + 4], r13
lea rcx, [rbp + 0x80]
call fcn.140100398
jmp 0x1400c4f48
mov rcx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
sub rcx, r15
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov r14, rdx
sar r14, 2
mov rax, r14
shr rax, 0x3f
add r14, rax
jne 0x1400c51a8
call fcn.140091ae4
cmp dword [rax], 5
jbe 0x1400c519d
mov dword [rsp + 0x44], ebx
lea rcx, str.Machine_state_OsInfo_state_collector___query_shutdown_events_returned_an_empty_list
mov qword [rbp - 0x40], rcx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x14045569d]
mov rcx, rax
call fcn.14000615c
mov dword [rdi], 0x80004005
jmp 0x1400c511d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r13
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.1402c93f0
mov rbx, qword [rbp - 0x78]
mov rsi, rbx
test r14, r14
je 0x1400c51e3
mov dword [rsi], r13d
xor eax, eax
mov qword [rsi + 4], rax
add rsi, 0xc
sub r14, 1
jne 0x1400c51cc
mov rbx, qword [rbp - 0x78]
mov qword [rbp - 0x70], rsi
cmp r15, qword [rsp + 0x50]
je 0x1400c5222
lea r8, [rsp + 0x30]
mov rdx, r15
lea rcx, [rbp - 0x38]
call fcn.1402c92d8
mov rcx, qword [rax + 4]
mov eax, dword [rax]
mov dword [rbx], eax
mov qword [rbx + 4], rcx
add r15, 0x18
lea rbx, [rbx + 0xc]
cmp r15, qword [rsp + 0x50]
jne 0x1400c51ee
mov rsi, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
cmp rbx, rsi
je 0x1400c525c
lea r14, [rbx + 0xc]
jmp 0x1400c5257
lea rcx, [rbx + 4]
lea rdx, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
nop dword [rax + rax]
cmp eax, 0xffffffff
sete al
mov rcx, r14
test al, al
cmove rcx, rbx
mov rbx, rcx
add r14, 0xc
cmp r14, rsi
jne 0x1400c522d
mov eax, dword [rbx]
mov rcx, qword [rbx + 4]
mov dword [rdi], eax
mov qword [rdi + 4], rcx
lea rcx, [rbp - 0x78]
call fcn.1400c5864
nop
lea rcx, [rbp + 0xc0]
call fcn.140079000
lea rcx, [rbp + 0xa0]
call fcn.14007a7c0
lea rcx, [rbp + 0x80]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x20]
call fcn.14007a7c0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400c52b9
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ae9d9.0]
nop
lea rcx, [rsp + 0x48]
call fcn.1400c5a70
mov rax, rdi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret