Function at 0x43fcc8
Capabilities:
Modify service
Pause service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
mov eax, 0x55e0c8
call fcn.00525a60
xor edx, edx
mov dword [ebp - 0x44], edx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], str.WZCSVC
xor eax, eax
mov dword [ebp - 0x50], eax
xor edx, edx
mov dword [ebp - 0x54], edx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x30], 8
cmp dword [0x57ec34], 0
je 0x43fd10
mov edx, dword [0x57ec34]
jmp 0x43fd15
mov edx, 0x5536b6
lea eax, [ebp - 4]
call fcn.00530f44
inc dword [ebp - 0x24]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4c338c]
call fcn.0040313c
mov dword [ebp - 0x64], eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005310a4
mov dword [ebp - 0x58], 1
push dword [ebp - 0x58]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x43fef7
mov dword [ebp - 0x58], 0xf01ff
push dword [ebp - 0x58]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x43feef
mov ecx, dword [ebp + 8]
sub ecx, 1
jb 0x43fd9f
je 0x43fe29
dec ecx
je 0x43fea6
jmp 0x43feca
mov dword [ebp - 0x58], 1
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_ControlService
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 2
cmp dword [ebp - 0x64], 0
je 0x43fe1a
push 1
mov edx, 0x5536c3
lea eax, [ebp - 0xc]
call fcn.00530f44
inc dword [ebp - 0x24]
push dword [eax]
mov word [ebp - 0x30], 0x14
mov edx, 0x5536b7
lea eax, [ebp - 8]
call fcn.00530f44
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp - 0x64]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005310a4
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005310a4
mov dword [0x547ce8], 1
jmp 0x43feca
push 0
push 0
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_StartServiceA
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 2
cmp dword [ebp - 0x64], 0
je 0x43fe9a
push 2
mov edx, str.WZCStatus
lea eax, [ebp - 0x14]
call fcn.00530f44
inc dword [ebp - 0x24]
push dword [eax]
mov word [ebp - 0x30], 0x20
mov edx, str.SVCSettings
lea eax, [ebp - 0x10]
call fcn.00530f44
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp - 0x64]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005310a4
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005310a4
mov dword [0x547ce8], 2
jmp 0x43feca
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
je 0x43fec3
cmp dword [ebp - 0x7c], 4
sete al
and eax, 1
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xffffffff
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x5c]
push 0xffffffffffffffff
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_ChangeServiceConfigA
push dword [ebp - 0x54]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0x50]
call sub.ADVAPI32.DLL_CloseServiceHandle
cmp dword [ebp - 0x64], 0
je 0x43ff2a
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x43ff2a
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x30], 0x38
mov edx, 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x30], 0x2c
cmp dword [ebp - 0x60], 0
setne al
and eax, 1
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret