Function at 0x10030380
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x44
call sub.Comn.dll_GetObjectSys
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x1003039e
mov eax, 1
add esp, 0x44
ret
test byte [0x1018db20], 1
jne 0x100303b8
or dword [0x1018db20], 1
call fcn.100302b0
mov dword [0x1018db24], eax
push ebx
xor ebx, ebx
cmp dword [0x1018db24], ebx
je 0x100303cb
lea eax, [ebx + 1]
pop ebx
add esp, 0x44
ret
push esi
push edi
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0xc], ecx
jne 0x10030413
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov esi, dword [ebx]
push 0x52
mov edi, str.e:_amwork_branches_brcloudv2_srcuilogicSchedule.h
add esi, 0xc
call fcn.1002f930
mov ecx, dword [esi]
push eax
push str._s:_Open_service_failed.
push ebx
call ecx
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
push ebp
xor eax, eax
push 0xf01ff
push str.Backupper_Service
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x10030685
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1003049e
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov ebp, dword [ebx]
push 0x5d
mov edi, str.e:_amwork_branches_brcloudv2_srcuilogicSchedule.h
add ebp, 0xc
call fcn.1002f930
push eax
mov eax, dword [ebp]
push str._s:_query_aomei_service
push ebx
call eax
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
cmp dword [esp + 0x20], 1
jne 0x1003060c
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push esi
call edi
test eax, eax
jne 0x100304e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100304e7
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esp + 0x18]
push ecx
mov ebp, eax
push ebx
push ebp
call sub.MSVCR80.dll_memset
add esp, 0x10
cmp ebp, ebx
jne 0x10030528
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov ebp, dword [ebx]
push 0x70
mov edi, str.e:_amwork_branches_brcloudv2_srcuilogicSchedule.h
add ebp, 0xc
call fcn.1002f930
mov edx, dword [ebp]
push eax
push str._s:_query_service_status_fail
push ebx
call edx
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
push esi
call edi
test eax, eax
jne 0x10030581
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
call sub.Comn.dll_GetObjectLog
mov ebp, eax
mov ebx, dword [ebp]
push 0x78
mov edi, str.e:_amwork_branches_brcloudv2_srcuilogicSchedule.h
add ebx, 0xc
call fcn.1002f930
push eax
mov eax, dword [ebx]
push str._s:_query_service_status_fail
push ebp
call eax
add esp, 0x14
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
cmp dword [ebp + 4], 4
jne 0x100305d3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x100305d3
call sub.Comn.dll_GetObjectLog
mov ebx, dword [eax]
push 0x81
mov edi, str.e:_amwork_branches_brcloudv2_srcuilogicSchedule.h
mov dword [esp + 0x1c], eax
add ebx, 0xc
call fcn.1002f930
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [ebx]
push str._s:_change_serveice_cfg_fail
push edx
call eax
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
jmp 0x10030564
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
xor eax, eax
lea edx, [esp + 0x38]
push edx
push 0xc9
push esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10030669
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov ebp, dword [ebx]
push 0x93
mov edi, str.e:_amwork_branches_brcloudv2_srcuilogicSchedule.h
add ebp, 0xc
call fcn.1002f930
push eax
mov eax, dword [ebp]
push str._s:_Failed_to_reload_task.xml_by_ABService
push ebx
call eax
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
call sub.Comn.dll_GetObjectLog
mov ebp, eax
mov esi, dword [ebp]
push 0x9a
mov edi, str.e:_amwork_branches_brcloudv2_srcuilogicSchedule.h
add esi, 0xc
call fcn.1002f930
mov ecx, dword [esi]
push eax
push str._s:open_aomei_server_fail
push ebp
call ecx
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret