Function at 0x425180
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4702db
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
jb 0x4251d6
mov ecx, dword [eax + 0x20]
jmp 0x4251d9
lea ecx, [eax + 0x20]
sub esp, 0x1c
mov edi, esp
xor ebx, ebx
mov eax, ecx
mov esi, 0xf
lea edx, [eax + 1]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov dword [esp + 0x38], esp
mov byte [edi], bl
mov dword [esp + 0x2c], edx
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x425200
sub eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00409480
lea eax, [esp + 0x100]
push eax
call fcn.004025e0
add esp, 0x20
mov dword [esp + 0x2b0], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xe4]
mov edi, 1
add dword [esp + 0x10], edi
cmp dword [esp + 0xf8], 8
jae 0x425250
lea eax, [esp + 0xe4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x425511
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xcc]
mov dword [esp + 0x28], eax
call fcn.00424e50
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x2c], vtable.LogItem.0
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x68], edi
mov byte [esp + 0x2b0], 2
push 0x29
push str.RegisterEventSource___failed._Error_code
lea ecx, [esp + 0xb4]
mov dword [esp + 0x74], edi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 3
push ebx
lea eax, [esp + 0xd0]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00409390
lea ecx, [esp + 0x11c]
push ecx
call fcn.004025e0
add esp, 0x20
mov edi, eax
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2bc], 4
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.0040afa0
cmp dword [esp + 0x114], 8
jb 0x42535c
mov edx, dword [esp + 0x100]
push edx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov byte [esp + 0x2b0], 2
cmp dword [esp + 0xc0], 0x10
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], ax
jb 0x42539a
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0044d9f1
add esp, 4
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
call fcn.00402eb0
push esi
push str._Error_message
lea ecx, [esp + 0x7c]
mov edi, eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 5
push ebx
lea eax, [esp + 0x98]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00409390
lea ecx, [esp + 0xac]
push ecx
call fcn.004025e0
add esp, 0x20
mov esi, eax
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 4]
mov byte [esp + 0x2b8], 6
push esi
mov dword [esp + 0x30], ecx
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x20]
call fcn.0040afa0
cmp dword [esp + 0xa4], 8
jb 0x425459
mov edx, dword [esp + 0x90]
push edx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov byte [esp + 0x2b0], 2
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], ax
jb 0x425494
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0044d9f1
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push esi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x20]
call fcn.0040afa0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], 1
call fcn.00402d10
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0xdc], 8
jb 0x4254fc
mov edx, dword [esp + 0xc8]
push edx
call fcn.0044d9f1
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xf
jmp 0x42560b
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x2c], vtable.LogItem.0
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x68], edi
mov byte [esp + 0x2b0], al
push 0x20
push str.Registering_event_source_success
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 8
push ebx
lea eax, [esp + 0x98]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00409390
lea ecx, [esp + 0xe4]
push ecx
call fcn.004025e0
add esp, 0x20
mov edi, eax
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2bc], 9
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.0040afa0
cmp dword [esp + 0xdc], 8
jb 0x4255e4
mov edx, dword [esp + 0xc8]
push edx
call fcn.0044d9f1
add esp, 4
cmp dword [esp + 0x88], 0x10
jb 0x4255fb
mov eax, dword [esp + 0x74]
push eax
call fcn.0044d9f1
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], bl
call fcn.00402d10
cmp dword [esp + 0x10], 3
jge 0x425847
cmp dword [esp + 0x14], ebx
je 0x42522f
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov edx, dword [edi + 0x3c]
movzx eax, word [edx]
mov esi, dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push 1
push ebx
push 0xc0021f96
push ebx
push eax
push ecx
call esi
test eax, eax
jne 0x42598d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, 7
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0x4c], ax
xor edx, edx
mov eax, 1
mov dword [esp + 0x2c], vtable.LogItem.0
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x2b4], 0xd
push str.ReportEvent___failed._GetLastError___
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], eax
call fcn.00403090
mov ecx, eax
call fcn.00402eb0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], bl
call fcn.00402d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x425813
mov dword [esp + 0x10], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x28]
mov eax, dword [edi + 0x3c]
movzx ecx, word [eax]
push ebx
push edx
mov edx, dword [esp + 0x1c]
push ebx
push 1
push ebx
push 0xc0021f96
push ebx
push ecx
push edx
call esi
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x42591f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 5
jl 0x4256d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xcc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
call fcn.00424e50
add esp, 4
mov edi, eax
mov eax, 7
xor ecx, ecx
xor edx, edx
mov esi, 1
mov dword [esp + 0x2c], vtable.LogItem.0
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x68], esi
mov byte [esp + 0x2b0], 0x10
push str._ERR___0x
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 3
call fcn.00403090
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov dword [eax + 0x3c], ebx
call fcn.00402fa0
push str._Error_message
lea edx, [esp + 0x20]
push edx
push str.ReportEvent___failed_after_5_retries__Error_code
push 0x48176c
mov ecx, eax
mov dword [eax + 0x3c], esi
call fcn.00403090
mov ecx, eax
call fcn.00403090
mov ecx, eax
call fcn.00402eb0
mov ecx, eax
call fcn.00403090
push 0xffffffffffffffff
mov esi, eax
push ebx
push edi
lea ecx, [esi + 4]
call fcn.0040afa0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x20]
call fcn.0040afa0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], 0xf
call fcn.00402d10
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0xdc], 8
jb 0x425813
mov eax, dword [esp + 0xc8]
push eax
call fcn.0044d9f1
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea ecx, [esp + 0x11c]
call fcn.00425e30
push 0x48928c
lea edx, [esp + 0x120]
push edx
mov dword [esp + method.EventLogAccessException.virtual_0], vtable.EventLogAccessException.0
call fcn.00450350
cmp dword [esp + 0x14], ebx
jne 0x425620
push 0x1a
push str.iusl::EventLog::StoreEvent
lea ecx, [esp + 0x98]
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00409480
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 0xa
push ebx
lea eax, [esp + 0x108]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.004097e0
lea ecx, [esp + 0xe4]
push ecx
call fcn.004024b0
add esp, 0x20
mov esi, eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x2b4], 0xb
call fcn.00425fd0
mov edi, vtable.EventLogAccessException.0
mov dword [esp + 0x1dc], edi
mov edx, esi
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2b0], 0xc
call fcn.004263d0
push eax
lea ecx, [esp + 0x120]
call fcn.00425a00
push 0x48928c
lea eax, [esp + 0x120]
push eax
mov dword [esp + 0x124], edi
call fcn.00450350
inc eax
mov edi, str.iusl::EventLog::StoreEvent
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
call fcn.00402bf0
push str._retries.
lea ecx, [esp + 0x1c]
push ecx
push str.ReportEvent___succeded_after
mov ecx, eax
mov byte [esp + 0x2bc], 0xe
call fcn.00403090
mov ecx, eax
call fcn.00402fa0
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], bl
call fcn.00402d10
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [esp + 0xf8], 8
jb 0x4259b2
mov eax, dword [esp + 0xe4]
push eax
jmp 0x4259aa
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [esp + 0xf8], 8
jb 0x4259b2
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.0044d9f1
add esp, 4
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret 4