Function at 0x410310
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x506054]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
call fcn.0040bd30
test eax, eax
je 0x4106cc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
test esi, esi
je 0x410391
test esi, 0xffff0000
jne 0x410375
movzx eax, si
lea ecx, [esp + 0x10]
push eax
call fcn.0040b200
jmp 0x41039e
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410380
sub ecx, edx
sar ecx, 1
jmp 0x410393
xor ecx, ecx
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.0040b8e0
mov edi, dword [esp + 0x10]
mov ecx, str._install
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4103d6
test dx, dx
je 0x4103d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4103d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4103b0
xor eax, eax
jmp 0x4103db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4103e9
call fcn.004106e0
jmp 0x41069b
mov ecx, str._uninstall
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410416
test dx, dx
je 0x410412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410416
add eax, 4
add ecx, 4
test dx, dx
jne 0x4103f0
xor eax, eax
jmp 0x41041b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410429
call fcn.00411320
jmp 0x41069b
mov ecx, str._installsvr
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410456
test dx, dx
je 0x410452
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410456
add eax, 4
add ecx, 4
test dx, dx
jne 0x410430
xor eax, eax
jmp 0x41045b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410469
call fcn.004106e0
jmp 0x41069b
mov ecx, str._uninstallsvr
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410496
test dx, dx
je 0x410492
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410496
add eax, 4
add ecx, 4
test dx, dx
jne 0x410470
xor eax, eax
jmp 0x41049b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4104a9
call fcn.00411320
jmp 0x41069b
mov ecx, str._installcert
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4104d6
test dx, dx
je 0x4104d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4104d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4104b0
xor eax, eax
jmp 0x4104db
sbb eax, eax
or eax, 1
test eax, eax
je 0x41069b
mov ecx, str._uninstallcert
mov eax, edi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410516
test dx, dx
je 0x410512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4104f0
xor eax, eax
jmp 0x41051b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41069b
mov ecx, str._start
mov eax, edi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410556
test dx, dx
je 0x410552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410556
add eax, 4
add ecx, 4
test dx, dx
jne 0x410530
xor eax, eax
jmp 0x41055b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410569
call fcn.00411670
jmp 0x41069b
mov ecx, str._stop
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410596
test dx, dx
je 0x410592
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410596
add eax, 4
add ecx, 4
test dx, dx
jne 0x410570
xor eax, eax
jmp 0x41059b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4105a9
call fcn.00411e50
jmp 0x41069b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x4ede8c
push eax
mov dword [esp + 0x20], 0x4124a0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x41069b
call fcn.0040bd30
test eax, eax
je 0x4106cc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.StartServiceCtrlDispatcher_failed_with_error__d
push eax
call fcn.0040b570
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x41062a
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.0040b4a0
mov esi, dword [esp + 0x10]
push 0x4ede8c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
je 0x410683
push esi
push 0x4ed750
lea eax, [esp + 0x30]
push 0x50
push eax
call fcn.00410230
add esp, 0x10
mov dword [esp + 0x14], 0x4ede8c
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41069b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4106b3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xcc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004364d3
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040bb00
int3