Function at 0x64615e9a
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x646180b0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [esp + 0x18], 0
add esp, 0xc
xor esi, esi
mov eax, dword [0x6461800c]
mov edi, 0x6461800c
mov ecx, 0x64604da0
cmp eax, edi
je 0x64615f0d
test byte [eax + 0x1c], 2
je 0x64615f0d
cmp byte [eax + 0x19], 5
jb 0x64615f0d
push dword [eax + 0x14]
mov edx, ecx
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.6460534c
mov eax, dword [0x6461800c]
mov ecx, 0x64604da0
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x40
jbe 0x64615f2f
cmp eax, edi
je 0x64615f57
test byte [eax + 0x1c], 2
je 0x64615f57
cmp byte [eax + 0x19], 2
jb 0x64615f57
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
jmp 0x64615f4f
cmp dword [0x646184a8], esi
jne 0x64615f5e
cmp eax, edi
je 0x64615f57
test byte [eax + 0x1c], 2
je 0x64615f57
cmp byte [eax + 0x19], 3
jb 0x64615f57
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
mov edx, ecx
pop ecx
call fcn.6460534c
xor eax, eax
jmp 0x646160f7
push 0x64618488
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x646184ac]
xor ecx, ecx
test edx, edx
je 0x64615f9c
mov eax, dword [0x64618480]
mov edi, dword [ebp + 0xc]
add eax, 8
mov ebx, dword [ebp + 8]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp + 0x10]
jne 0x64615f8f
cmp edi, dword [eax]
ja 0x64615fe9
inc ecx
add eax, 0xc
cmp ecx, edx
jb 0x64615f80
mov edi, 0x6461800c
xor ecx, ecx
test ebx, ebx
je 0x64615fbf
lea edx, [ebp + 0x14]
lea edx, [edx + 4]
mov eax, dword [edx]
mov dword [esp + ecx*4 + 0x10], eax
test eax, eax
jne 0x64615fba
mov dword [esp + ecx*4 + 0x10], 0x646020d4
inc ecx
cmp ecx, ebx
jb 0x64615fa5
mov eax, dword [ebp + 0x14]
shr eax, 0x1e
cmp eax, 1
jbe 0x64616081
push 2
pop edx
cmp eax, edx
je 0x64616077
cmp eax, 3
jne 0x64615ff9
xor edi, edi
inc edi
inc dword [0x646184a4]
jmp 0x64616025
push 0x64618488
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x64615f57
mov ecx, dword [0x6461800c]
cmp ecx, edi
je 0x64616021
test byte [ecx + 0x1c], dl
je 0x64616021
cmp byte [ecx + 0x19], dl
jb 0x64616021
push eax
push dword [ecx + 0x14]
mov edx, 0x64604da0
push dword [ecx + 0x10]
push 0x17
pop ecx
call fcn.64605370
mov edi, dword [esp + 0xc]
push 0x64618488
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, 1
je 0x64616099
sub eax, 1
je 0x64616094
sub eax, 1
je 0x64616090
sub eax, 1
je 0x6461608c
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x6461609c
test byte [eax + 0x1c], 2
je 0x6461609c
cmp byte [eax + 0x19], 2
jb 0x6461609c
push ecx
push dword [eax + 0x14]
mov edx, 0x64604da0
push dword [eax + 0x10]
push 0x18
pop ecx
call fcn.64605370
jmp 0x6461609c
inc dword [0x646184b0]
mov edi, edx
jmp 0x64616025
inc dword [0x646184a0]
push 4
pop edi
jmp 0x64616025
push 4
jmp 0x64616096
push 3
jmp 0x64616096
push 2
pop esi
jmp 0x6461609c
xor esi, esi
inc esi
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
push ecx
push ebx
push ecx
push dword [ebp + 0x14]
push esi
push edi
push dword [0x646184a8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x646160f4
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x646160f4
test byte [eax + 0x1c], 2
je 0x646160f4
cmp byte [eax + 0x19], 2
jb 0x646160f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x6461800c]
mov edx, 0x64604da0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x19
pop ecx
call fcn.64605370
xor eax, eax
inc eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.64616f60
mov esp, ebp
pop ebp
ret