Function at 0x140059190
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0x58], rax
movsd xmm6, qword [0x1400d1be0]
xorps xmm1, xmm1
addsd xmm6, qword [0x1400d4bf0]
movsd xmm2, qword [0x1400bde10]
movsd qword [0x1400d4bf0], xmm1
movsd qword [0x1400d1be0], xmm1
addsd xmm6, xmm0
comisd xmm1, xmm6
jbe 0x1400591ea
mov al, 1
xorps xmm6, xmm2
jmp 0x1400591ec
xor al, al
movsd xmm0, qword [0x1400bdc10]
comisd xmm6, xmm0
jbe 0x14005920c
movaps xmm1, xmm6
movaps xmm6, xmm0
subsd xmm1, xmm0
movsd qword [0x1400d4bf0], xmm1
test al, al
je 0x14005921e
xorps xmm1, xmm2
xorps xmm6, xmm2
movsd qword [0x1400d4bf0], xmm1
mulsd xmm6, qword [0x1400bdd60]
test al, al
je 0x140059234
movsd xmm1, qword [0x1400bddc0]
jmp 0x14005923c
movsd xmm1, qword [0x1400bdc78]
movsd xmm2, qword [0x1400d4be0]
movaps xmm0, xmm6
divsd xmm0, xmm2
xor edi, edi
cmp dword [0x1400d4bc4], edi
addsd xmm0, xmm1
cvttsd2si ebx, xmm0
je 0x140059266
lea eax, [rbx + 0xf]
cmp eax, 0x1e
cmovbe ebx, edi
cmp dword [0x1400d5f00], 3
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm2
subsd xmm6, xmm0
jb 0x1400593ea
cmp qword [0x1400d4ba0], rdi
jne 0x140059424
xor ecx, ecx
call fcn.140022320
mov r8d, edi
mov r10, qword [rax + 0x30]
mov rcx, qword [rax + 0x38]
movzx r9d, word [rax + 0x26]
sub r9w, word [rax + 0x24]
mov eax, edi
cmp r10, rcx
seta r8b
cmp r10, rcx
setb al
cmp r8d, eax
js 0x140059417
test r9w, r9w
jle 0x14005939f
movabs rax, 0x232661280
lea rdx, [rsp + 0x48]
add rax, r10
imul rcx, rax, 0x989680
mov qword [0x1400d4ba0], rcx
lea rcx, [0x1400d4ba0]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [rsp + 0x52]
movzx edx, word [rsp + 0x50]
movzx eax, word [rsp + 0x54]
movzx r10d, word [rsp + 0x4e]
movzx r9d, word [rsp + 0x4a]
movzx r8d, word [rsp + 0x48]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov ecx, 5
mov dword [rsp + 0x28], edx
lea rdx, str.Detected_positive_leap_second_announcement_for__04d__02d__02d__02d:_02d:_02d_UTC
mov dword [rsp + 0x20], r10d
call fcn.14005c0d0
mov eax, dword [0x1400d1fc4]
sub qword [0x1400d4ba0], 0xe4e1c0
mov dword [0x1400d1fc4], 1
cmp eax, 1
je 0x140059417
mov rcx, qword [0x1400d1fd0]
lea rax, [0x1400d1fe0]
cmp rcx, rax
je 0x1400593d0
lea rax, [0x1400d20d0]
cmp rcx, rax
jne 0x140059417
mov qword [rcx + 0x40], 0xffffffffffffffff
mov rax, qword [rcx + 0x40]
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x28], rax
jmp 0x140059417
jns 0x140059417
mov eax, dword [0x1400d1fc4]
mov dword [0x1400d1fc4], edi
test eax, eax
je 0x140059417
mov rcx, qword [0x1400d1fd0]
lea rax, [0x1400d1fe0]
cmp rcx, rax
je 0x1400593d0
lea rax, [0x1400d20d0]
cmp rcx, rax
jne 0x140059417
mov qword [rcx + 0x40], 0xffffffffffffffff
mov rax, qword [rcx + 0x40]
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x28], rax
jmp 0x140059417
cmp qword [0x1400d4ba0], rdi
je 0x1400594bb
cmp dword [0x1400d4b98], edi
jne 0x140059417
lea rdx, str.Leap_second_announcement_disarmed
mov qword [0x1400d4ba0], rdi
mov ecx, 5
call fcn.14005c0d0
cmp qword [0x1400d4ba0], rdi
je 0x1400594bb
cmp dword [0x1400d4b98], edi
jne 0x14005947f
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [0x1400d4ba0]
cmp qword [rsp + 0x40], rax
jb 0x14005947b
mov eax, dword [0x1400d4be8]
shr eax, 1
mov dword [0x1400d4b98], eax
mov qword [0x1400d4ba0], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, str.Started_leap_second_insertion.
mov ecx, 5
mov dword [0x1400d4bd8], eax
call fcn.14005c0d0
mov eax, edi
jmp 0x14005948b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1400d4bd8]
mov edx, dword [0x1400d4b98]
test edx, edx
je 0x1400594bb
cmp eax, 0x6d6
jbe 0x1400594b9
lea rdx, str.Finished_leap_second_insertion.
mov dword [0x1400d4b98], edi
mov ecx, 5
call fcn.14005c0d0
mov edx, dword [0x1400d4b98]
sub ebx, edx
divsd xmm6, qword [0x1400bdd60]
add ebx, dword [0x1400d4bc0]
cmp dword [0x1400d1304], ebx
movsd qword [0x1400d1be0], xmm6
je 0x140059508
mov ecx, dword [0x1400d4be8]
xor edx, edx
add ecx, ebx
mov dword [0x1400d1304], ebx
call qword [sym.imp.KERNEL32.dll_SetSystemTimeAdjustment]
mov ebx, eax
test eax, eax
jne 0x14005950d
lea rdx, str.Cant_adjust_time:__m
lea ecx, [rax + 3]
call fcn.14005c0d0
mov eax, ebx
jmp 0x14005950d
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140073c20
mov rbx, qword [rsp + 0x88]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rdi
ret