Function at 0x441d70
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push eax
push 0
mov dword [ebp - 0x130], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441dda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
push 0x100
push ebx
call fcn.00436260
add esp, 0x10
mov eax, 0xfffffff8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441de0
sub ecx, edx
lea edx, [ebp - 0x110]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x441df2
sub edx, edi
lea eax, [edx + ecx]
cmp eax, 0x104
jbe 0x441e2e
push str.Too_many_arguments_for_services_please_contact_suport_yoctopuce.com_n
push 0x100
push ebx
call fcn.00436260
add esp, 0xc
mov eax, 0xfffffff8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0044e748
add esp, 0xc
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x441e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
jmp 0x441db6
push 0xf01ff
push str.yVirtualHub
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x441f3a
cmp dword [ebp - 0x130], eax
jne 0x441ea8
push str.unable_to_open_VirtualHub_service_n
push 0x100
push ebx
call fcn.00436260
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x441dc4
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x4fc5a4
push str.yVirtualHub
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x441f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d__n
push 0x100
push ebx
call fcn.00436260
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x441dc4
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], str.The_VirtualHub_is_a_toolbox_for_Yoctopuce_USB_devices._It_will_allow_you_to_n___configure_and_test_Yoctopuce_devices_n___remotely_control_Yoctopuce_devices_through_network_n___control_Yoctopuce_devices_with_languages_which_do_not_allow_a_direct_access_to_USB_devices__such_as_Javascript_and_PHP.
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x441f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_set_service_description___d__n
call fcn.0041cc00
add esp, 8
mov eax, str.Service_successfully_installed_n
jmp 0x441f83
cmp dword [ebp - 0x130], 0
jne 0x441f7e
lea eax, [ebp - 0x12c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x441fa5
push str.Service_successfully_uninstalled_n
call fcn.0041cc00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
mov eax, str.Service_allready_installed_n
push eax
call fcn.0041cc00
add esp, 4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret