Function at 0x545860
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
mov dword [ebp - 0x30], 0
push 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x5458d9
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x30]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push 4
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], str.CPEfr_in_OnStop
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push str.Stopping_Service....
push str.CEFRService::OnStop
push 3
call fcn.00587c13
add esp, 0xc
mov word [esi + 0x50], 0x100
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.004f2960
mov byte [eax], 1
call fcn.004f2270
mov byte [eax + 4], 1
call fcn.004e1180
mov edi, eax
cmp dword [edi + 0x44], 0
je 0x545931
mov eax, dword [edi + 0x40]
test eax, eax
je 0x545931
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x40], 0
call fcn.00508ad0
mov ecx, eax
call fcn.0050a180
call fcn.0053e400
mov ecx, eax
call fcn.0053e550
call fcn.00526320
mov ecx, eax
call fcn.00526740
call fcn.004c1e90
mov ecx, eax
call fcn.004c2050
call fcn.004c53f0
mov ecx, eax
call fcn.004c54f0
call fcn.00559770
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6c94d0]
mov dword [ebp - 0x2c], ecx
cmp eax, dword [ecx + 4]
jle 0x5459c3
push 0x6c94d0
call fcn.005b1800
add esp, 4
cmp dword [0x6c94d0], 0xffffffff
jne 0x5459c3
call fcn.004c9fa0
push 0x623960
call fcn.005b1b57
push 0x6c94d0
call fcn.005b17c1
add esp, 8
mov eax, dword [0x6c94d8]
mov ecx, 0x6c94d8
call dword [eax + 8]
call fcn.004d2330
mov ecx, eax
call fcn.004d3440
call fcn.00543a50
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov ecx, esi
call fcn.00545cb0
push dword [ebp - 0x2c]
mov edx, dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 0x54]
call fcn.00547700
mov eax, dword [esi + 0x54]
lea ecx, [ebp - 0x28]
add esp, 8
mov dword [esi + 0x58], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0x11
push str.ThirdPartyManager
call fcn.004346a0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004e50d0
mov ecx, eax
call fcn.004e5170
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x545a5d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00434bd0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0055a290
mov edi, eax
push str.Stoped
push str.UpdatesManager::Stop
push 3
mov byte [edi + 0x70], 1
call fcn.00587c13
add esp, 0xc
mov byte [edi + 0x28], 1
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x20], 0
call ebx
cmp dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
je 0x545ac4
lea ecx, [edi + 0x2c]
call fcn.004c4ae0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [0x6cb578]
cmp eax, dword [ecx + 4]
jle 0x545afe
push 0x6cb578
call fcn.005b1800
add esp, 4
cmp dword [0x6cb578], 0xffffffff
jne 0x545afe
push 0x6cb578
mov byte [0x6cb57c], 0
call fcn.005b17c1
add esp, 4
mov ecx, 0x6cb57c
call fcn.004d1bc0
call fcn.0051f850
mov ecx, eax
call fcn.0051f790
push 1
call fcn.00512200
mov ecx, eax
call fcn.00512690
call fcn.0053b920
mov ecx, eax
call fcn.0053ba50
call fcn.00559770
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
call fcn.004ed8e0
mov ecx, eax
call fcn.004edc40
mov eax, dword [esi + 0x38]
test eax, eax
je 0x545b50
push eax
call ebx
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x545b5a
push eax
call ebx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x545b64
push eax
call ebx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x545b6e
push eax
call ebx
push str.Service_Stopped.
push str.CEFRService::OnStop
push 3
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
call fcn.00587c13
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret