Function at 0x45e6b0
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591d9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ebp + 0x18]
test eax, eax
push ebx
mov ebx, 0x594544
mov dword [ebp - 0x2c], 0
push esi
cmovne ebx, eax
mov dword [ebp - 0x28], 0
push edi
mov byte [ebp - 0x24], 0
mov word [ebp - 0x22], 0x400
mov dword [ebp - 0x30], ebx
cmp byte [0x62e4b8], 0
mov edi, 2
mov dword [ebp - 4], 0
je 0x45e75c
push 4
push 0
push 0
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d950
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b51b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0046d950
add esp, 0x24
push 0x200030
push 0x5b1d44
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test edi, edi
jne 0x45e791
mov edi, 2
push 4
push 0
push 0
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d950
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b51b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0046d950
add esp, 0x24
push edi
call fcn.0045fea0
add esp, 4
test edi, edi
jne 0x45e7d6
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d950
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b51b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0046d950
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x62e7d0], 0
je 0x45e898
push 0x62e7d0
lea eax, [ebp - 0x20]
push str._s_service_log.txt
push eax
call fcn.0046a980
add esp, 0xc
cmp byte [ebp - 0x11], 0
jge 0x45e814
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x45e817
mov eax, 0x594544
jmp 0x45e817
lea eax, [ebp - 0x20]
push fcn.005764ff
push 0x5ad6cc
push eax
call fcn.00481bc0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45e877
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.0057a064
lea eax, [ebp - 0x50]
push 0x10
push eax
call fcn.00579fab
push dword [ebp + 0x18]
cmp byte [ebp + 0x14], 0
mov ecx, 0x594544
mov eax, str.ERROR_
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s__s_:__s_s
push esi
call fcn.0045a020
push esi
call fcn.005765a4
add esp, 0x2c
cmp byte [ebp - 0x11], 0
mov byte [ebp - 4], 1
jge 0x45e894
call fcn.0047f4e0
push 0
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 0
cmp byte [ebp + 0x10], 0
je 0x45e94a
push 0x5b1d44
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
je 0x45e94a
mov dl, byte [ebp + 0x14]
mov cl, dl
xor cl, 1
movzx ecx, cl
inc cx
test dl, dl
movzx eax, cx
mov ecx, 0xc0000001
mov dword [ebp - 0x10], eax
mov eax, reloc.OLEAUT32.dll_SysReAllocString
cmovne eax, ecx
mov dword [ebp + 0x18], eax
test edi, edi
jne 0x45e920
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d950
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b51b
push 0
mov edi, eax
push esi
push edi
push ebx
call fcn.0046d950
mov esi, dword [ebp + 0x10]
add esp, 0x24
mov eax, dword [ebp + 0x18]
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push 0
push 1
push 0
push eax
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call fcn.0056b524
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret