Function at 0x404c60
Capabilities:
Check for time delay via gettickcount
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x3c
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x404c84
xor al, al
pop ebx
add esp, 0x3c
ret
push edi
push 0xf01ff
push str.MSIServer
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x404cab
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor al, al
pop ebx
add esp, 0x3c
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x2c]
push ecx
push 0
push edi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x404cd8
pop ebp
pop edi
xor al, al
pop ebx
add esp, 0x3c
ret
cmp dword [esp + 0x28], 4
push esi
jne 0x404cf6
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
add esp, 0x3c
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404d1b
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop esi
pop ebp
pop edi
xor al, al
pop ebx
add esp, 0x3c
ret
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x30]
push eax
push 0
push edi
call ebp
test eax, eax
je 0x404e92
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esp + 0x2c], 2
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov dword [esp + 0x18], ecx
jne 0x404dee
mov edx, dword [esp + 0x40]
fild dword [esp + 0x40]
test edx, edx
jge 0x404d63
fadd qword [0x44b6d0]
fmul qword [0x44b6c8]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
fldcw word [esp + 0x12]
cmp eax, 0x3e8
jae 0x404d99
mov eax, 0x3e8
jmp 0x404da5
cmp eax, 0x2710
jbe 0x404da5
mov eax, 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push 0x24
lea ecx, [esp + 0x30]
push ecx
push 0
push edi
call ebp
test eax, eax
je 0x404dee
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x3c], edx
jbe 0x404dd9
call ebx
mov esi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
jmp 0x404de3
call ebx
sub eax, esi
cmp eax, dword [esp + 0x40]
ja 0x404dee
cmp dword [esp + 0x2c], 2
je 0x404d51
cmp dword [esp + 0x2c], 4
jne 0x404e82
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404e68
mov edx, dword [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edi
call ebx
test eax, eax
je 0x404e61
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push edx
push 0
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x14]
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push 2
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
add esp, 0x3c
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
pop esi
pop ebp
pop edi
xor al, al
pop ebx
add esp, 0x3c
ret