Function at 0x411040
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d677
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [section..data]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xec], eax
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 4], eax
mov eax, dword [0x427dac]
test al, 1
jne 0x4110b7
or eax, 1
mov dword [0x427dac], eax
call fcn.00412410
push 0x41e230
call fcn.0041b6a5
add esp, 4
push 0xffffffffffffffff
push dword [0x427d50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push 0
push 0x427d5c
lea ecx, [ebp - 0x88]
call fcn.00406dc0
push dword [0x427d50]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, 0x4271c0
lea ecx, [ebp - 0xb8]
call fcn.00402180
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
push 0xe
xor eax, eax
mov dword [ebp - 0x5c], 7
push str._SpoolerApplet
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00406ee0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xa0]
call fcn.00407e50
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00407cb0
add esp, 8
cmp dword [ebp - 0x8c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x411163
push dword [ebp - 0xa0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
cmp dword [ebp - 0x5c], 8
jb 0x41118e
push dword [ebp - 0x70]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa4], 8
jb 0x4111ba
push dword [ebp - 0xb8]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], 7
mov edx, 0x4271f0
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0xe8]
mov word [ebp - 0xb8], ax
call fcn.00402180
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
push 0xe
xor eax, eax
mov dword [ebp - 0x44], 7
push str._SpoolerApplet
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00406ee0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xd0]
call fcn.00407e50
push esi
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.00407cb0
add esp, 8
cmp dword [ebp - 0xbc], 8
jb 0x41124f
push dword [ebp - 0xd0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xbc], 7
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
cmp dword [ebp - 0x44], 8
jb 0x41127a
push dword [ebp - 0x58]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0xd4], 8
jb 0x4112a6
push dword [ebp - 0xe8]
call edi
add esp, 4
mov esi, dword [sym.imp.MSVCR120.dll__waccess_s]
xor eax, eax
cmp dword [ebp - 0x14], 8
mov word [ebp - 0xe8], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 4
push eax
mov dword [ebp - 0xd4], 7
mov dword [ebp - 0xd8], 0
call esi
add esp, 8
test eax, eax
jne 0x411300
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x4112f3
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00406dc0
mov eax, dword [ebp - 0xec]
mov bl, 1
mov byte [eax], 0
jmp 0x41136d
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push eax
call esi
add esp, 8
test eax, eax
jne 0x411337
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x41132a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00406dc0
mov eax, dword [ebp - 0xec]
mov bl, 1
mov byte [eax], 1
jmp 0x41136d
push 0x421188
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41136b
push 0
push 0
push 0
push 0
push 0
push 0xc0000003
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor bl, bl
cmp dword [ebp - 0x2c], 8
jb 0x41137b
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x41139d
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4113c2
push dword [ebp - 0x88]
call edi
add esp, 4
mov al, bl
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.0041b5b1
mov esp, ebp
pop ebp
ret 8