Function at 0x446d20
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1438
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x53d744], 0
je 0x446f5e
push str.System
push 0
mov byte [0x53d744], 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x446d9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenEventLog_fail__getlasterror__d
push str.kupdate::KClientInfoGetter::ReadLastBootHoldTime
push 0x7ca
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push edi
call fcn.00412750
add esp, 0x18
jmp 0x446f5e
push 0x19000
call fcn.004bee3b
mov esi, eax
add esp, 4
test esi, esi
je 0x446dc0
push 0x19000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x446dc2
xor esi, esi
mov dword [ebp - 0x40], esi
xor al, al
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], al
xor bl, bl
mov eax, dword [ebp - 0x40]
xor bh, bh
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0x1775
mov dword [ebp - 0x38], 0x1776
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x19000
push esi
push 0
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x446ec3
mov edi, dword [ebp - 0x18]
xor edx, edx
test edi, edi
je 0x446e96
lea ebx, [ebx]
movzx eax, word [esi + edx + 0x14]
lea ecx, [esi + edx]
cmp ax, word [ebp - 0x34]
jne 0x446e6f
cmp byte [ebp - 0xd], 0
jne 0x446e5a
mov byte [ebp - 0xd], 1
jmp 0x446e88
test bl, bl
jne 0x446e8c
mov eax, dword [ecx + 0xc]
mov bl, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
jmp 0x446e8c
cmp ax, word [ebp - 0x38]
jne 0x446e88
test bh, bh
jne 0x446e88
mov eax, dword [ecx + 0xc]
mov bh, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
test bl, bl
je 0x446e90
test bh, bh
jne 0x446e96
add edx, dword [ecx]
cmp edx, edi
jb 0x446e40
test bl, bl
je 0x446e9e
test bh, bh
jne 0x446eea
push 0x19000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x1c]
add esp, 0xc
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 5
mov edi, dword [ebp - 0x14]
jl 0x446e10
jmp 0x446eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadEventLog_fail__getlasterror__d
push str.kupdate::KClientInfoGetter::ReadLastBootHoldTime
push 0x7e2
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 0
call fcn.00412750
add esp, 0x18
jmp 0x446eed
mov edi, dword [ebp - 0x14]
test bl, bl
je 0x446f4a
test bh, bh
je 0x446f4a
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime64]
fnstcw word [ebp - 0xe]
movzx eax, word [ebp - 0xe]
or eax, 0xc00
mov dword [ebp - 0x38], eax
fldcw word [ebp - 0x38]
fistp qword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
push eax
push str.lastbootholdtime_is__d_s
fldcw word [ebp - 0xe]
push str.kupdate::KClientInfoGetter::ReadLastBootHoldTime
push 0x813
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
mov dword [0x541a4c], eax
call fcn.00412750
add esp, 0x28
test esi, esi
je 0x446f57
push esi
call fcn.004bee44
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [0x541a4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret