Function at 0x408130
Capabilities:
Access the windows event log
Create thread

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push 0
push 0
push 1
push 0
mov edi, ecx
call esi
mov dword [0x43f2bc], eax
test eax, eax
jne 0x4081ee
test byte [0x43f278], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x408187
cmp dword [str._CBrowseSvc::FInitSsrpRedirectionERRRET__Failed_to_create_SSRPListener_registry_watch_event:__dWINERR_n], eax
je 0x408187
call esi
push eax
mov eax, dword [str._CBrowseSvc::FInitSsrpRedirectionERRRET__Failed_to_create_SSRPListener_registry_watch_event:__dWINERR_n]
push eax
mov eax, dword [str.sql_ntdbms_browser_sqlbrowser_brwssvc.cpp]
push 0x43400
push eax
call fcn.00405110
add esp, 0x10
call esi
mov dword [esp + 8], eax
call esi
push str.SQLBrowser
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4081d7
lea eax, [esp + 8]
push eax
push 0
push 4
push 0
push 0
push 0xc04e000b
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
push 0
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, eax
call fcn.004089d0
test eax, eax
jne 0x408230
test byte [0x43f278], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x408187
cmp dword [str._CBrowseSvc::FInitSsrpRedirectionERRRET__Failed_to_register_SSRP_Listener_registry_change_notification:__dWINERR_n], eax
je 0x408187
call esi
push eax
mov eax, dword [str._CBrowseSvc::FInitSsrpRedirectionERRRET__Failed_to_register_SSRP_Listener_registry_change_notification:__dWINERR_n]
push eax
mov eax, dword [str.sql_ntdbms_browser_sqlbrowser_brwssvc.cpp]
push 0x45800
jmp 0x40817e
push 0
push 0
push 0
push 0
call esi
mov dword [edi + 0x34], eax
test eax, eax
je 0x408352
push 0x98
call fcn.004147f5
mov edx, dword [edi + 0x34]
mov esi, eax
xorps xmm0, xmm0
add esp, 4
and dword [esi + 0x1c], 0xfffffffe
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x18], 0
and ecx, 0xfffffffd
mov dword [esi + 0x1c], ecx
movups xmmword [esi + 0x20], xmm0
push esi
movups xmmword [esi + 0x30], xmm0
movups xmmword [esi + 0x40], xmm0
movq qword [esi + 0x50], xmm0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 2
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 8]
mov dword [0x43f2a4], esi
push eax
push 0
push esi
push 0x409d80
push 0
push 0
mov dword [0x43f2ac], 1
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi + 0x34]
push 0xffffffffffffffff
mov dword [edi + 0x30], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0
push eax
push 2
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [edi + 0x30], 0
jne 0x4083cd
cmp dword [0x43f2c8], 0
jne 0x4083d6
test byte [0x43f278], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x408395
cmp dword [str._CBrowseSvc::FInitSsrpRedirectionERR__creating_ssrp_thread:__dWINERR_n], 0
je 0x408395
call esi
push eax
mov eax, dword [str._CBrowseSvc::FInitSsrpRedirectionERR__creating_ssrp_thread:__dWINERR_n]
push eax
mov eax, dword [str.sql_ntdbms_browser_sqlbrowser_brwssvc.cpp]
push 0x50000
push eax
call fcn.00405110
add esp, 0x10
call esi
mov dword [esp + 0xc], eax
call esi
push str.SQLBrowser
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4081d7
lea eax, [esp + 0xc]
push eax
push 0
push 4
push 0
push 0
push 0xc04e000a
jmp 0x4081b6
cmp dword [0x43f2c8], 0
je 0x4083eb
pop edi
mov dword [0x43f2b4], 0
mov eax, 1
pop esi
add esp, 0x10
ret
mov dword [0x43f2b4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.SQLBrowser
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
push 0
test esi, esi
je 0x40842b
push 0
push 0
push 0
push 0
push 0x404e0010
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret