Function at 0x428330
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x47d6c0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x47d6c0]
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 + 0x14], eax
mov dword [esp + 0x28], ecx
jb 0x428386
mov ecx, dword [eax + 0x20]
jmp 0x428389
lea ecx, [eax + 0x20]
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov eax, ecx
mov edi, 0xf
lea edx, [eax + 1]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [esp + 0x38], esp
mov byte [esi], bl
mov dword [esp + 0x2c], edx
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4283b0
sub eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.00403400
lea eax, [esp + 0x100]
push eax
call fcn.00406c80
add esp, 0x20
mov dword [esp + 0x2b0], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xe4]
mov esi, 1
add dword [esp + 0x10], esi
cmp dword [esp + 0xf8], 8
jae 0x428400
lea eax, [esp + 0xe4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x4286c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xcc]
push ecx
mov dword [esp + 0x2c], eax
call fcn.00402190
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, 7
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x2c], vtable.LogItem.0
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
mov dword [esp + 0x68], esi
mov byte [esp + 0x2b0], 2
push 0x29
push str.RegisterEventSource___failed._Error_code
lea ecx, [esp + 0xb4]
mov dword [esp + 0x74], esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00403400
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 3
push ebx
lea edx, [esp + 0xd0]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00403310
lea eax, [esp + 0x11c]
push eax
call fcn.00406c80
add esp, 0x20
mov esi, eax
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2bc], 4
call fcn.0040e270
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.0040e270
cmp dword [esp + 0x114], 8
jb 0x42850d
mov ecx, dword [esp + 0x100]
push ecx
call fcn.004434f1
add esp, 4
xor edx, edx
mov byte [esp + 0x2b0], 2
cmp dword [esp + 0xc0], 0x10
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], dx
jb 0x42854b
mov eax, dword [esp + 0xac]
push eax
call fcn.004434f1
add esp, 4
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
call fcn.00416ce0
push edi
push str._Error_message
lea ecx, [esp + 0x7c]
mov esi, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00403400
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 5
push ebx
lea edx, [esp + 0x98]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00403310
lea eax, [esp + 0xac]
push eax
call fcn.00406c80
add esp, 0x20
mov edi, eax
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 4]
mov byte [esp + 0x2b8], 6
push edi
mov dword [esp + 0x30], ecx
call fcn.0040e270
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x20]
call fcn.0040e270
cmp dword [esp + 0xa4], 8
jb 0x42860a
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004434f1
add esp, 4
xor edx, edx
mov byte [esp + 0x2b0], 2
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], dx
jb 0x428645
mov eax, dword [esp + 0x74]
push eax
call fcn.004434f1
add esp, 4
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push edi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.0040e270
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x20]
call fcn.0040e270
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], 1
call fcn.00407130
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0xdc], 8
jb 0x4286ad
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.004434f1
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xf
jmp 0x4287bd
mov eax, 7
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x2c], vtable.LogItem.0
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
mov dword [esp + 0x68], esi
mov byte [esp + 0x2b0], 7
push 0x20
push str.Registering_event_source_success
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00403400
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 8
push ebx
lea edx, [esp + 0x98]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00403310
lea eax, [esp + 0xe4]
push eax
call fcn.00406c80
add esp, 0x20
mov esi, eax
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2bc], 9
call fcn.0040e270
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.0040e270
cmp dword [esp + 0xdc], 8
jb 0x428796
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.004434f1
add esp, 4
cmp dword [esp + 0x88], 0x10
jb 0x4287ad
mov edx, dword [esp + 0x74]
push edx
call fcn.004434f1
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], bl
call fcn.00407130
cmp dword [esp + 0x10], 3
jge 0x4287d5
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4283df
jmp 0x4288b1
cmp dword [esp + 0x18], ebx
jne 0x4288ad
push 0x1a
push str.iusl::EventLog::StoreEvent
lea ecx, [esp + 0x98]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00403400
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov byte [esp + 0x2d0], 0xa
push ebx
lea edx, [esp + 0x108]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00403740
lea eax, [esp + 0xe4]
push eax
call fcn.00401fb0
add esp, 0x20
mov esi, eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x2b4], 0xb
call fcn.00428e70
mov edi, vtable.EventLogAccessException.0
mov dword [esp + 0x1dc], edi
mov edx, esi
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2b0], 0xc
call fcn.00429130
push eax
lea ecx, [esp + 0x120]
call fcn.00428bb0
push 0x477060
lea edx, [esp + 0x120]
push edx
mov dword [esp + 0x124], edi
call fcn.0044404d
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x3c]
movzx edx, word [ecx]
push ebx
push eax
push ebx
push 1
push ebx
push 0xc0021f96
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x428b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov eax, 7
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
xor ecx, ecx
xor edx, edx
mov eax, 1
mov dword [esp + 0x2c], vtable.LogItem.0
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x68], eax
mov byte [esp + 0x2b0], 0xd
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x14]
push eax
push str.ReportEvent___failed._GetLastError___
lea ecx, [esp + 0x34]
call fcn.004074a0
mov ecx, eax
call fcn.00416ce0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], bl
call fcn.00407130
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x428aa6
mov dword [esp + 0x10], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0x3c]
movzx eax, word [edx]
push ebx
push ecx
push ebx
push 1
push ebx
push 0xc0021f96
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x428ad6
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 5
jl 0x428962
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
call fcn.00402190
add esp, 8
mov edi, 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], 1
mov byte [esp + 0x2b0], 0x10
push str._ERR___0x
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 3
call fcn.004074a0
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov dword [eax + 0x3c], ebx
call fcn.004072c0
push str._Error_message
lea edx, [esp + 0x20]
push edx
push str.ReportEvent___failed_after_5_retries__Error_code
push 0x46eda0
mov ecx, eax
mov dword [eax + 0x3c], 1
call fcn.004074a0
mov ecx, eax
call fcn.004074a0
mov ecx, eax
call fcn.00416ce0
mov ecx, eax
call fcn.004074a0
push 0xffffffffffffffff
mov esi, eax
push ebx
push edi
lea ecx, [esi + 4]
call fcn.0040e270
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x20]
call fcn.0040e270
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], 0xf
call fcn.00407130
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0xdc], 8
jb 0x428aa2
mov eax, dword [esp + 0xc8]
push eax
call fcn.004434f1
add esp, 4
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea ecx, [esp + 0x11c]
call fcn.00428c80
push 0x477060
lea ecx, [esp + 0x120]
push ecx
mov dword [esp + method.EventLogAccessException.virtual_0], vtable.EventLogAccessException.0
call fcn.0044404d
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], ecx
push str.iusl::EventLog::StoreEvent
lea ecx, [esp + 0x30]
call fcn.00416bc0
push str._retries.
lea edx, [esp + 0x18]
push edx
push str.ReportEvent___succeded_after
mov ecx, eax
mov byte [esp + 0x2bc], 0xe
call fcn.004074a0
mov esi, eax
call fcn.004072c0
mov ecx, eax
call fcn.004074a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], bl
call fcn.00407130
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [esp + 0xf8], 8
jb 0x428b69
mov ecx, dword [esp + 0xe4]
push ecx
jmp 0x428b61
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [esp + 0xf8], 8
jb 0x428b69
mov edx, dword [esp + 0xe4]
push edx
call fcn.004434f1
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.00444268
mov esp, ebp
pop ebp
ret 4