Function at 0x472760
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], eax
push 0x5df0c4
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0
jne 0x4727c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_OpenEventLogW_err_d__OUT__n
push 0x5df12c
call fcn.0040c050
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x472eed
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x4e4]
call fcn.00472410
test eax, eax
je 0x47283c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WARR:_SeekToLastRecord_err_d__will_reopen_event_handle__n
push 0x5df808
call fcn.0040c050
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
push 0x5df82c
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0
jne 0x47283c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_OpenEventLogW2_err_d__OUT__n
push 0x5df88c
call fcn.0040c050
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x472eed
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x5df8b0
push 0x7fffe
call fcn.0055ba39
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x47287c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_malloc_memory_512KB_err_d__OUT__n
push 0x5df918
call fcn.0040c050
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x472eed
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 4], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0x7fffe
mov dword [ebp - 8], 0
cmp dword [ebp - 0x24], 0
jne 0x472ec2
mov eax, dword [ebp - 0x4e4]
cmp dword [eax], 0
je 0x4728d4
push 0x5df93c
push 0x5df974
call fcn.0040c050
add esp, 8
jmp 0x472ec2
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
push 0
push 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x472a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7a
jne 0x47297c
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055f0a9
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x472962
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.Error:_realloc_memory_size_d_err_d__OUT__n
push 0x5df9f4
call fcn.0040c050
add esp, 0x10
jmp 0x472ec2
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 4], edx
jmp 0x472a49
cmp dword [ebp - 0x24], 0x26
je 0x472988
cmp dword [ebp - 0x24], 0x57
jne 0x4729a1
mov dword [ebp - 0x24], 0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4728a8
cmp dword [ebp - 0x24], 0x5dc
je 0x4729bc
cmp dword [ebp - 0x24], 0x5de
je 0x4729bc
cmp dword [ebp - 0x24], 0x5df
jne 0x472a2b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
push str.Security
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x472a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_OpenEventLogW3_err_d__OUT__n
push 0x5dfa7c
call fcn.0040c050
add esp, 0xc
jmp 0x472ec2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp - 0x4e4]
call fcn.00472410
mov dword [ebp - 0x24], 0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4728a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WARR:_ReadEventLogA_failed_err_d__break__n
push 0x5dfaf8
call fcn.0040c050
add esp, 0xc
jmp 0x472ec2
jmp 0x472a52
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x28], 0
jbe 0x472e87
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
cmp dword [eax + 0x14], 0x1211
je 0x472ae5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
cmp dword [edx + 0x14], 0x211
jb 0x472a99
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x14], 0x219
jbe 0x472ae5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
cmp dword [eax + 0x14], 0x21b
je 0x472ae5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx]
ja 0x472abe
mov dword [ebp - 0x28], 0
jmp 0x472acc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x28]
sub eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
add ecx, dword [edx]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
jmp 0x472a59
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10
je 0x472b31
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ecx]
ja 0x472b0a
mov dword [ebp - 0x28], 0
jmp 0x472b18
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x28]
sub edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
jmp 0x472a59
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, 0x38
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
movzx eax, word [edx + 0x1a]
test eax, eax
je 0x472dd7
mov dword [ebp - 0x4d4], 0x3fc
mov byte [ebp - 0x448], 0
push 0x400
push 0
lea ecx, [ebp - 0x447]
push ecx
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x4d0], 0
push 0x7c
push 0
lea edx, [ebp - 0x4cc]
push edx
call fcn.00562540
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, dword [ecx + 0x24]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x4d8], 0
jmp 0x472bca
mov ecx, dword [ebp - 0x4d8]
add ecx, 1
mov dword [ebp - 0x4d8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
movzx ecx, word [eax + 0x1a]
cmp dword [ebp - 0x4d8], ecx
jae 0x472cf3
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x4e8], edx
mov eax, dword [ebp - 0x4e8]
add eax, 1
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4e8]
mov dl, byte [ecx]
mov byte [ebp - 0x4ed], dl
add dword [ebp - 0x4e8], 1
cmp byte [ebp - 0x4ed], 0
jne 0x472bfb
mov eax, dword [ebp - 0x4e8]
sub eax, dword [ebp - 0x4ec]
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f4]
mov dword [ebp - 0x4dc], ecx
mov edx, dword [ebp - 0x4d4]
push edx
mov eax, dword [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.00560e70
add esp, 0xc
push 0
lea edx, [ebp - 0x448]
push edx
call fcn.0046f8a0
add esp, 8
mov dword [ebp - 0x4e0], eax
cmp dword [ebp - 0x4e0], 0
je 0x472c95
mov eax, dword [ebp - 0x4e0]
mov byte [eax], 0x20
mov ecx, dword [ebp - 0x4e0]
add ecx, 1
mov dword [ebp - 0x4e0], ecx
mov edx, dword [ebp - 0x4e0]
mov byte [edx], 0
mov eax, dword [ebp - 0x4dc]
add eax, 1
mov ecx, dword [ebp - 0x4d4]
sub ecx, eax
mov dword [ebp - 0x4d4], ecx
cmp dword [ebp - 0x4d8], 0x20
jae 0x472cc8
mov edx, dword [ebp - 0x4d8]
mov eax, dword [ebp - 0x44c]
mov dword [ebp + edx*4 - 0x4d0], eax
push 0
mov ecx, dword [ebp - 0x44c]
push ecx
call fcn.0046f8a0
add esp, 8
mov dword [ebp - 0x44c], eax
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
jmp 0x472bbb
lea eax, [ebp - 0x4d0]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.004720c0
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x472dd5
mov eax, dword [0x63a638]
and eax, 0xf
cmp eax, 2
jb 0x472dd5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
cmp dword [edx + 0x14], 0x1211
jne 0x472dd5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + 0x1a]
push edx
lea eax, [ebp - 0x4d0]
push eax
mov ecx, dword [ebp - 0x4e4]
call fcn.004731f0
test eax, eax
je 0x472d79
push str.Exclude_logon_fail_event_with_UAC_1__n
push 0x5dfb70
call fcn.0040c050
add esp, 8
jmp 0x472dd5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
movzx eax, word [edx + 0x1a]
push eax
lea ecx, [ebp - 0x4d0]
push ecx
mov ecx, dword [ebp - 0x4e4]
call fcn.00473130
test eax, eax
je 0x472dae
push 0x5dfb98
push 0x5dfbf8
call fcn.0040c050
add esp, 8
jmp 0x472dd5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
movzx ecx, word [eax + 0x1a]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [ebp - 0x4d0]
push edx
mov ecx, dword [ebp - 0x4e4]
call fcn.004733d0
jmp 0x472de9
push str.WARR:_This_event_no_message__n
push 0x5dfc5c
call fcn.0040c050
add esp, 8
cmp dword [ebp - 0x3c], 0
je 0x472e60
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x4e4]
call fcn.00472f00
test eax, eax
je 0x472e16
push str.Exclude_logon_fail_event_with_UAC_2__n
push 0x5dfcd0
call fcn.0040c050
add esp, 8
jmp 0x472e56
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x4e4]
call fcn.00472fc0
test eax, eax
je 0x472e3d
push str.Exclude_logon_fail_event_with_USER_change_1__n
push str.CSessionMon::StartAuditElogMonitor
call fcn.0040c050
add esp, 8
jmp 0x472e56
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x4e4]
call fcn.00473840
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x28]
sub eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
add ecx, dword [edx]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
jmp 0x472a59
cmp dword [ebp - 0x30], 0
je 0x472eb4
cmp dword [ebp - 8], 0
je 0x472ea5
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
sub ecx, dword [ebp - 8]
push ecx
call fcn.004870b0
add esp, 4
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x10]
push eax
call fcn.00486fd0
add esp, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 4], edx
jmp 0x4728a8
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x472ed8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
cmp dword [ebp - 0x2c], 0
je 0x472eea
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055b95c
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret