Function at 0x4080bf
Capabilities:
Access the windows event log
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [0x580014]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_40982]
test eax, eax
jne 0x4083e3
xor edi, edi
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x530364
mov dword [esp + 0x30], edi
mov byte [esp + 0x34], 1
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_63259]
push edi
push eax
push 8
push 0x532878
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_15771]
test eax, eax
je 0x40813a
push 0x235cc5d1
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_30245]
jmp 0x4083d9
push str.Microsoft_Office_16_Alerts
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
jne 0x408153
push 0x235cc5d0
jmp 0x40812f
mov eax, dword [ebp + 8]
push eax
push 0x5302ac
lea eax, [esp + 0xb0]
push 0xffffffffffffffff
push eax
call fcn.00408452
add esp, 0x10
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_19255]
movzx esi, word [eax + 2]
movzx edx, word [eax]
movzx ecx, word [eax + 6]
movzx eax, word [eax + 4]
push eax
push ecx
push edx
push esi
push str._d._d._d._d_n
lea eax, [esp + 0xd4]
push 0xffffffffffffffff
push eax
call fcn.00408483
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x9c]
add esp, 0x1c
xor eax, eax
mov word [esp + 0x80], ax
call fcn.004084b4
xor eax, eax
mov word [esp + 0x8c], ax
mov eax, dword [ebp + 0x10]
push eax
push str.0x_X_n
lea eax, [esp + 0x94]
push 0xffffffffffffffff
push eax
call fcn.00408503
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [sym.imp.Mso20Win32Client.dll_Ordinal_30245]
mov edx, dword [sym.imp.Mso20Win32Client.dll_Ordinal_30827]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
test eax, eax
jne 0x408201
push 0x235cc5cf
call ecx
jmp 0x408268
mov ecx, eax
call fcn.00407279
push 0
lea esi, [eax + 2]
lea edx, [esi + esi]
push edx
call dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x408268
mov ecx, dword [esp + 0x10]
mov edx, edi
push esi
call fcn.00407189
add esi, 0xfffffffd
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1571]
cmp eax, 2
jne 0x408259
test esi, esi
jle 0x408259
push 0xd
pop ecx
push 0xa
pop eax
cmp word [edi + esi*2], cx
jne 0x40825c
cmp word [edi + esi*2 - 2], ax
jne 0x40825c
mov word [edi + esi*2], ax
xor eax, eax
mov word [edi + esi*2 - 2], cx
jmp 0x40825c
push 0xa
pop eax
mov word [edi + esi*2 + 2], ax
xor eax, eax
mov word [edi + esi*2 + 4], ax
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jne 0x40827d
push 0x235cc5ce
call dword [esp + 0x20]
jmp 0x4082c7
mov ecx, eax
call fcn.00407279
mov dword [esp + 0x20], eax
add eax, 2
mov dword [esp + 0x10], eax
add eax, eax
push 0
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x1c]
mov esi, eax
test esi, esi
je 0x4082c7
push dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.00407189
mov eax, dword [esp + 0x20]
push 0xa
pop ecx
mov word [esi + eax*2], cx
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov word [eax + esi - 2], cx
test edi, edi
lea edx, [esp + 0x80]
mov eax, str.Title_not_found_n
mov ecx, 0x530320
cmovne eax, edi
test esi, esi
mov dword [esp + 0x68], eax
mov eax, str.Text_not_found_n
cmovne eax, esi
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x70], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0x74], eax
mov eax, ecx
cmovne eax, edx
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x8c]
cmovne ecx, eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x80], ecx
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_21268_1]
mov eax, dword [ebp + 8]
and dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x50], 0x52bea8
mov dword [esp + 0x54], 0x530324
mov word [esp + 0x60], ax
test ecx, ecx
je 0x408363
mov eax, dword [ecx]
call dword [eax]
jmp 0x408365
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x530350
push eax
push ecx
push ecx
mov dword [esp + 0x54], str.ScopeId
call fcn.00408534
xor ecx, ecx
lea eax, [esp + 0x68]
push ecx
push eax
push ecx
push 6
push ecx
push 0x12c
push ecx
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x4083b9
push 0x235cc5cd
call dword [esp + 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push esi
mov esi, dword [sym.imp.Mso20Win32Client.dll_Ordinal_5751]
call esi
push edi
call esi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4083d9
call fcn.004086c6
lea ecx, [esp + 0x28]
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_65155]
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051a430
mov esp, ebp
pop ebp
ret 0x10