Function at 0x140022484
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r14, rcx
mov rdi, rdx
lea rcx, [rsp + 0x50]
mov ebx, 0xc000000d
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rax, qword gs:[0x188]
mov r13d, 0x80000002
movsx ecx, word [rbp - 0x34]
mov r12d, 0x51
movsx edx, word [rbp - 0x36]
movsx r8d, word [rbp - 0x38]
movsx r9d, word [rbp - 0x3a]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov ecx, r12d
mov dword [rsp + 0x28], edx
mov edx, r13d
mov dword [rsp + 0x20], r8d
lea r8, [0x14003e480]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
movsx edx, word [rbp - 0x24]
movsx r8d, word [rbp - 0x26]
mov rax, qword [rdi + 0x10]
movsx r10d, word [rbp - 0x28]
movsx r9d, word [rbp - 0x2a]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov ecx, r12d
mov dword [rsp + 0x30], edx
mov edx, r13d
mov dword [rsp + 0x28], r8d
lea r8, [0x14003e4d0]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
movsx edx, word [rbp - 0x14]
movsx r8d, word [rbp - 0x16]
mov eax, dword [rdi + 0x24]
movsx r10d, word [rbp - 0x18]
movsx r9d, word [rbp - 0x1a]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, r12d
mov dword [rsp + 0x30], edx
mov edx, r13d
mov dword [rsp + 0x28], r8d
lea r8, [0x14003e530]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
movsx edx, word [rbp - 4]
movsx r8d, word [rbp - 6]
mov eax, dword [rdi + 0x28]
movsx r10d, word [rbp - 8]
movsx r9d, word [rbp - 0xa]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, r12d
mov dword [rsp + 0x30], edx
mov edx, r13d
mov dword [rsp + 0x28], r8d
lea r8, [0x14003e590]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
movsx edx, word [rbp + 0xc]
movsx r8d, word [rbp + 0xa]
mov eax, dword [rdi + 0x2c]
movsx r10d, word [rbp + 8]
movsx r9d, word [rbp + 6]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov ecx, r12d
mov dword [rsp + 0x30], edx
mov edx, r13d
mov dword [rsp + 0x28], r8d
lea r8, [0x14003e5f0]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
movsx edx, word [rbp + 0x1c]
movsx r8d, word [rbp + 0x1a]
mov rax, qword [rdi + 0x30]
movsx r10d, word [rbp + 0x18]
movsx r9d, word [rbp + 0x16]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov ecx, r12d
mov dword [rsp + 0x30], edx
mov edx, r13d
mov dword [rsp + 0x28], r8d
lea r8, [0x14003e650]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rdi + 0x10]
movabs r12, 0x80000000000000
cmp rcx, 1
je 0x1400227a7
cmp rcx, r12
je 0x1400227a7
movabs rax, 0x8000000000000000
add rax, rcx
cmp rax, 1
jbe 0x1400227a7
movabs rax, 0x8080000000000000
cmp rcx, rax
jne 0x1400228ac
cmp dword [rdi], 1
jne 0x1400228ac
cmp dword [rdi + 8], 0x40
jb 0x1400228ac
cmp qword [rdi + 0x18], 0
jge 0x1400228ac
mov r8, qword [r14 + 0x28]
mov ecx, dword [rdi + 4]
mov eax, dword [r8 + 0x4c]
bt eax, ecx
jae 0x1400228ac
or dword [rbp + 0x34], 0xffffffff
lea rdx, [rbp + 0x30]
and dword [rbp + 0x3c], 0
xorps xmm0, xmm0
and qword [rbp + 0x48], 0
mov rcx, r8
and qword [rbp + 0x40], 0
movups xmmword [rbp + 0x50], xmm0
mov dword [rbp + 0x30], 1
movups xmmword [rbp + 0x60], xmm0
mov dword [rbp + 0x38], 0x40
mov rax, qword [r8]
mov rax, qword [rax + 0x1a0]
call qword [case.0x14001d28c.0]
test eax, eax
js 0x1400228ac
mov rsi, qword [rdi + 0x10]
test r12, rsi
je 0x140022878
movsxd rdx, dword [rbp + 0x5c]
xor r11d, r11d
mov r10, qword [rdi + 0x30]
test edx, edx
jne 0x140022845
mov r9d, dword [rbp + 0x54]
cmp r9d, dword [rbp + 0x58]
jmp 0x14002285a
movsxd r9, dword [rbp + 0x54]
mov r8, rdx
mov rax, r10
sub rax, r9
cqo
idiv r8
test rdx, rdx
jne 0x14002286d
movsxd rax, dword [rbp + 0x58]
cmp r10, rax
jg 0x14002286d
movsxd rax, r9d
cmp r10, rax
jge 0x140022870
mov r11d, ebx
mov ebx, r11d
test r11d, r11d
js 0x1400228ac
mov rcx, qword [r14 + 0x28]
mov rax, qword [rcx]
test rsi, rsi
jns 0x140022893
mov rax, qword [rax + 0x1b0]
call qword [case.0x14001d28c.0]
jmp 0x1400228aa
mov rax, qword [rax + 0x1a8]
lea r8, [r14 + 0x188]
mov rdx, rdi
call qword [case.0x14001d28c.0]
mov ebx, eax
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rax, qword gs:[0x188]
mov edx, r13d
movsx r8d, word [rbp + 0x2c]
mov ecx, 0x51
movsx r10d, word [rbp + 0x2a]
movsx r11d, word [rbp + 0x28]
movsx r9d, word [rbp + 0x26]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r8d
lea r8, [0x14003e6b0]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret