Function at 0x417b20
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x417b82
mov byte [esp + 0x10], al
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.SSLTray:_TdiGetInstalledName_OpenSCManager_failed_with_error__d
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402a90
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push str.XEngine
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x417bdb
mov byte [esp + 0x10], al
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push str.SSLTray:_TdiGetInstalledName_open_service_failed_with_error__d
push edx
call fcn.0044dd9b
lea eax, [esp + 0x1c]
push eax
call fcn.00402a90
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x417c41
cmp eax, 0x7a
je 0x417c41
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push str.SSLTray:_QueryServiceConfig_failed_with_error__d
push edx
call fcn.0044dd9b
lea eax, [esp + 0x1c]
push eax
call fcn.00402a90
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0044dffd
mov edi, eax
add esp, 4
test edi, edi
jne 0x417c6a
push str.SSLTray:_malloc_failed.
call fcn.00402a90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0xc]
push edx
push 0x1000
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x417cca
mov byte [esp + 0x10], al
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.SSLTray:_QueryServiceConfig_failed_with_error__d
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402a90
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
push edx
push 0x47b42c
push eax
call fcn.0044dd9b
push edi
call fcn.0044dee5
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret