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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591d2d
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, 0x59934c
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 [0x6523d8], 0
mov edi, 2
mov dword [ebp - 4], 0
je 0x45ea8c
push 4
push 0
push 0
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0046d960
add esp, 0x24
push 0x200030
push 0x5ccb34
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test edi, edi
jne 0x45eac1
mov edi, 2
push 4
push 0
push 0
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0046d960
add esp, 0x24
push edi
call fcn.004601e0
add esp, 4
test edi, edi
jne 0x45eb06
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0046d960
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x6526f0], 0
je 0x45ebc6
push 0x6526f0
lea eax, [ebp - 0x20]
push str._s_service_log.txt
push eax
call fcn.0046ac70
add esp, 0xc
cmp byte [ebp - 0x11], 0
jge 0x45eb44
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x45eb47
mov eax, 0x59934c
jmp 0x45eb47
lea eax, [ebp - 0x20]
push fcn.005764af
push 0x5c558c
push eax
call fcn.00481c50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45eba7
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.0057a014
lea eax, [ebp - 0x50]
push 0x10
push eax
call fcn.00579f5b
push dword [ebp + 0x18]
cmp byte [ebp + 0x14], 0
mov ecx, 0x59934c
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.0045a3b0
push esi
call fcn.00576554
add esp, 0x2c
cmp byte [ebp - 0x11], 0
mov byte [ebp - 4], 1
jge 0x45ebc2
call fcn.0047f570
push 0
push dword [ebp - 0x20]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0
cmp byte [ebp + 0x10], 0
je 0x45ec78
push 0x5ccb34
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
je 0x45ec78
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 0x45ec4e
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x23], 1
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
mov edi, eax
push esi
push edi
push ebx
call fcn.0046d960
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.0056b4c4
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