Function at 0x536db70
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ed670
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x54183c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x4c]
lea eax, [eax + eax*4]
lea ecx, [ebp - 0x8c]
push ecx
add eax, eax
mov edi, edx
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
call fcn.052eb810
push ebx
mov byte [ebp - 4], 1
call fcn.05350914
add esp, 4
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
jb 0x536dc10
mov edi, dword [edi]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov ecx, eax
mov dword [ebp - 0x8c], ecx
cmp ecx, ebx
je 0x536e3d0
mov edi, dword [ebp - 0xcc]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0xbc], ebx
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xbc]
push edx
sub eax, edi
lea edx, [ebp - 0x90]
push edx
sar eax, 1
push eax
push edi
push ebx
push 9
push ecx
mov dword [ebp - 0x88], edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x536e3c3
lea esp, [esp]
cmp dword [ebp - 0x90], ebx
jbe 0x536e3b8
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xb8]
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0xb4]
push eax
push ecx
push edx
call fcn.05350965
fcomp qword [esi + 0x50]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x536e34f
mov edx, dword [ebp - 0x88]
add edx, 0x38
xor edi, edi
xor eax, eax
mov word [ebp - 0x84], ax
mov esi, 7
mov eax, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x536dcd1
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x84]
call fcn.052e5800
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x98], edi
call fcn.053506ca
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x536e385
mov dword [ebx], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebx + 4], ebx
mov byte [ebp - 4], 4
xor ecx, ecx
push esi
mov word [ebp - 0x4c], cx
push str.LogName
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
call fcn.052e5800
mov eax, dword [ebp - 0xa8]
push 0xffffffffffffffff
mov byte [ebp - 4], 5
push edi
xor edx, edx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
call fcn.052e53b0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
mov edx, dword [ebx + 4]
push ecx
push edx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov esi, 8
mov dword [ecx], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x98], 1
cmp dword [ebp - 0x1c], esi
jb 0x536dd94
mov eax, dword [ebp - 0x30]
push eax
call fcn.053504e7
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], esi
jb 0x536ddb5
mov edx, dword [ebp - 0x4c]
push edx
call fcn.053504e7
add esp, 4
push 0xa
xor eax, eax
push str.SourceName
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.052e5800
push 0xffffffffffffffff
mov byte [ebp - 4], 7
xor ecx, ecx
push edi
lea edx, [ebp - 0x84]
mov word [ebp - 0x30], cx
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
call fcn.052e53b0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
mov ecx, dword [ebx + 4]
push eax
push ecx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x98], 2
cmp dword [ebp - 0x1c], esi
jb 0x536de33
mov edx, dword [ebp - 0x30]
push edx
call fcn.053504e7
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x38], esi
jb 0x536de54
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.053504e7
add esp, 4
mov ecx, dword [ebp - 0x88]
add ecx, 0x14
lea eax, [ebp - 0x68]
call fcn.052ebf70
mov esi, eax
mov byte [ebp - 4], 9
push 7
xor edx, edx
push str.EventID
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], dx
call fcn.052e5800
mov byte [ebp - 4], 0xa
xor ecx, ecx
lea edx, [ebp - 0x30]
mov eax, 7
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp edx, esi
je 0x536deee
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
cmp dword [esi + 0x14], 8
jae 0x536decc
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edx
call fcn.0534fc90
add esp, 0xc
jmp 0x536ded3
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov dword [esi], edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x1c], edx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
mov edx, dword [ebx + 4]
push ecx
push edx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov esi, 8
mov dword [ecx], eax
mov dword [ebp - 0x98], 3
cmp dword [ebp - 0x1c], esi
jb 0x536df28
mov eax, dword [ebp - 0x30]
push eax
call fcn.053504e7
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], esi
jb 0x536df49
mov edx, dword [ebp - 0x4c]
push edx
call fcn.053504e7
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0x54], esi
jb 0x536df6e
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.053504e7
add esp, 4
mov edx, dword [ebp - 0x88]
movzx edi, word [edx + 0x18]
lea esi, [ebp - 0x68]
call fcn.0536cf80
mov esi, eax
mov byte [ebp - 4], 0xc
push 4
xor eax, eax
xor edi, edi
push str.Type
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.052e5800
push 0xffffffffffffffff
mov byte [ebp - 4], 0xd
xor ecx, ecx
push edi
mov word [ebp - 0x30], cx
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
call fcn.052e53b0
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
mov eax, dword [ebx + 4]
push edx
push eax
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov esi, 8
mov dword [ecx], eax
mov dword [ebp - 0x98], 4
cmp dword [ebp - 0x1c], esi
jb 0x536e001
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.053504e7
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x38], esi
jb 0x536e022
mov eax, dword [ebp - 0x4c]
push eax
call fcn.053504e7
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], cx
cmp dword [ebp - 0x54], esi
jb 0x536e047
mov edx, dword [ebp - 0x68]
push edx
call fcn.053504e7
add esp, 4
mov ecx, dword [ebp - 0x88]
add ecx, 0x1c
lea eax, [ebp - 0x68]
call fcn.052ebf90
mov esi, eax
mov byte [ebp - 4], 0xf
push 8
xor eax, eax
push str.Category
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.052e5800
mov byte [ebp - 4], 0x10
xor ecx, ecx
lea edx, [ebp - 0x30]
mov eax, 7
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp edx, esi
je 0x536e0e1
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
cmp dword [esi + 0x14], 8
jae 0x536e0bf
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edx
call fcn.0534fc90
add esp, 0xc
jmp 0x536e0c6
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov dword [esi], edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x1c], edx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
mov edx, dword [ebx + 4]
push ecx
push edx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov esi, 8
mov dword [ecx], eax
mov dword [ebp - 0x98], 5
cmp dword [ebp - 0x1c], esi
jb 0x536e11b
mov eax, dword [ebp - 0x30]
push eax
call fcn.053504e7
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], esi
jb 0x536e13c
mov edx, dword [ebp - 0x4c]
push edx
call fcn.053504e7
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0x54], esi
jb 0x536e161
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.053504e7
add esp, 4
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0xc]
push eax
lea esi, [ebp - 0x68]
call fcn.0536cca0
mov esi, eax
mov byte [ebp - 4], 0x12
xor ecx, ecx
push 0xd
mov word [ebp - 0x4c], cx
push str.TimeGenerated
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
call fcn.052e5800
push 0xffffffffffffffff
mov byte [ebp - 4], 0x13
push edi
xor edx, edx
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
call fcn.052e53b0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
mov ecx, dword [ebx + 4]
push eax
push ecx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x98], 6
mov dword [ecx], eax
call fcn.052e5e60
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x54], edi
jb 0x536e1fe
mov edx, dword [ebp - 0x68]
push edx
call fcn.053504e7
add esp, 4
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x10]
push ecx
lea esi, [ebp - 0x68]
call fcn.0536cca0
push eax
lea edx, [ebp - 0x4c]
push edx
mov edx, str.TimeWritten
mov byte [ebp - 4], 0x15
call fcn.052ec900
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
mov ecx, dword [ebx + 4]
push eax
push ecx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x98], 7
mov dword [ecx], eax
call fcn.052e5e60
mov byte [ebp - 4], 4
cmp dword [ebp - 0x54], edi
jb 0x536e264
mov edx, dword [ebp - 0x68]
push edx
call fcn.053504e7
add esp, 4
mov edi, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0xa8]
push edi
call fcn.0536d120
push eax
lea edx, [ebp - 0x4c]
push edx
mov edx, str.Message
mov byte [ebp - 4], 0x17
call fcn.052ec900
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x18
mov ecx, dword [ebx + 4]
push eax
push ecx
push ebx
call fcn.052e8ca0
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x98], 8
mov dword [ecx], eax
call fcn.052e5e60
mov byte [ebp - 4], 4
cmp dword [ebp - 0x54], 8
jb 0x536e2dc
mov edx, dword [ebp - 0x68]
push edx
call fcn.053504e7
add esp, 4
mov esi, dword [edi + 0x30]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x9c]
push eax
push ecx
push esi
call fcn.052e70a0
mov ecx, dword [edi + 0x34]
mov edx, 0x15555554
sub edx, ecx
cmp edx, 1
jae 0x536e309
push str.list_T__too_long
call fcn.05328b02
inc ecx
mov dword [edi + 0x34], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov dword [ebp - 4], 3
lea ebx, [ebp - 0x9c]
call fcn.052e5ce0
mov eax, dword [ebp - 0x9c]
push eax
call fcn.053504e7
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x70], 8
jb 0x536e34f
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.053504e7
add esp, 4
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
sub dword [ebp - 0x90], ecx
add eax, dword [eax]
mov esi, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xcc]
mov dword [ebp - 0x88], eax
xor ebx, ebx
jmp 0x536dc70
lea edx, [ebp - 0xac]
push edx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xac], edi
call fcn.0535058b
push 0x540efd0
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 0xd8], vtable.std::bad_alloc.0
call fcn.05350eca
mov ecx, dword [ebp - 0x8c]
jmp 0x536dc3a
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [ebp - 0xcc]
cmp eax, ebx
je 0x536e3e3
push eax
call fcn.053504e7
add esp, 4
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0534fc81
mov esp, ebp
pop ebp
ret