Function at 0x40fd40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fda7
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x42a038]
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 ebx, dword [ebp + 8]
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 [0x42eeec]
test al, 1
jne 0x40fdae
or eax, 1
mov dword [0x42eeec], eax
call fcn.00411060
push 0x4209a0
call fcn.0041d702
add esp, 4
push 0xffffffffffffffff
push dword [0x42ee90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push 0
push 0x42ee9c
lea ecx, [ebp - 0x88]
call fcn.00406b70
push dword [0x42ee90]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, 0x42e290
lea ecx, [ebp - 0xa0]
call fcn.00402100
mov esi, eax
mov byte [ebp - 4], 1
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.00406c90
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xd0]
call fcn.00407b80
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004079e0
add esp, 8
cmp dword [ebp - 0xbc], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40fe5a
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 0x40fe85
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], 7
cmp dword [ebp - 0x8c], 8
jb 0x40feb1
push dword [ebp - 0xa0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov edx, 0x42e2c0
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0xe8]
mov word [ebp - 0xa0], ax
call fcn.00402100
mov esi, eax
mov byte [ebp - 4], 8
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.00406c90
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xb8]
call fcn.00407b80
push esi
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.004079e0
add esp, 8
cmp dword [ebp - 0xa4], 8
jb 0x40ff46
push dword [ebp - 0xb8]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
cmp dword [ebp - 0x5c], 8
jb 0x40ff71
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], 0xe
cmp dword [ebp - 0xd4], 8
jb 0x40ff9d
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 0x40ffee
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x410018
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00406b70
mov bl, 1
jmp 0x410052
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 0x41001c
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x410018
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00406b70
mov bl, 1
jmp 0x410052
push 0x423e40
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x410050
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 0x410060
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 0x410082
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 0x4100a7
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.0041d60e
mov esp, ebp
pop ebp
ret 8