Function at 0x415230
Capabilities:
Create service
Modify service

Disassembly:
sub esp, 0x614
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x610], eax
mov eax, dword [esp + 0x618]
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x41529d
push 1
lea ecx, [edi + 0x180]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x415292
push eax
mov ebx, 1
call ebp
push esi
call ebp
test ebx, ebx
jne 0x4153bb
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4152fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_open_service_manager._Error__d_occurred.
push 0xffffffffffffffff
lea ecx, [esp + 0x22c]
push 0x200
push ecx
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x14
push esi
lea ecx, [edi + 0x180]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea edx, [esp + 0x228]
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4153c0
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 1
push 3
push 0x110
add edi, 0x180
push 0xf01ff
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
jne 0x415399
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call ebp
push ebx
push str.Couldnt_create_service._Error__ld_occurred.
push 0xffffffffffffffff
lea edx, [esp + 0x22c]
push 0x200
push edx
call dword [sym.imp.MSVCR90.dll__snwprintf_s]
add esp, 0x14
push 0
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [esp + 0x228]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4153c0
mov ecx, dword [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call ebp
push esi
call ebp
mov eax, 1
mov ecx, dword [esp + 0x620]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051973e
add esp, 0x614
ret 4