Function at 0x448040
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50434d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x567a24], 0
je 0x44827b
push str.System
push 0
mov byte [0x567a24], 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4480bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenEventLog_fail__getlasterror__d
push str.kupdate::KClientInfoGetter::ReadLastBootHoldTime
push 0x857
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push edi
call fcn.00412230
add esp, 0x18
jmp 0x44827b
push 0x19000
call fcn.004c6f7d
mov esi, eax
add esp, 4
test esi, esi
je 0x4480e0
push 0x19000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4480e2
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 - 0x1c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0x1775
mov dword [ebp - 0x38], 0x1776
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x19000
push esi
push 0
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x4481e3
mov edi, dword [ebp - 0x14]
xor edx, edx
test edi, edi
je 0x4481b6
lea ebx, [ebx]
movzx eax, word [esi + edx + 0x14]
lea ecx, [esi + edx]
cmp ax, word [ebp - 0x34]
jne 0x44818f
cmp byte [ebp - 0xd], 0
jne 0x44817a
mov byte [ebp - 0xd], 1
jmp 0x4481a8
test bl, bl
jne 0x4481ac
mov eax, dword [ecx + 0xc]
mov bl, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x4481ac
cmp ax, word [ebp - 0x38]
jne 0x4481a8
test bh, bh
jne 0x4481a8
mov eax, dword [ecx + 0xc]
mov bh, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
test bl, bl
je 0x4481b0
test bh, bh
jne 0x4481b6
add edx, dword [ecx]
cmp edx, edi
jb 0x448160
test bl, bl
je 0x4481be
test bh, bh
jne 0x448210
push 0x19000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x18]
add esp, 0xc
inc edi
mov dword [ebp - 0x18], edi
cmp edi, 5
mov edi, dword [ebp - 0x2c]
jl 0x448130
jmp 0x448208
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadEventLog_fail__getlasterror__d
push str.kupdate::KClientInfoGetter::ReadLastBootHoldTime
push 0x86f
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 0
call fcn.00412230
add esp, 0x18
test bl, bl
je 0x448265
test bh, bh
je 0x448265
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
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 0x8a0
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
mov dword [0x56cf34], eax
call fcn.00412230
add esp, 0x28
test esi, esi
je 0x448272
push esi
call fcn.004c6f86
add esp, 4
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [0x56cf34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret