Function at 0x420100
Capabilities:
Modify service

Disassembly:
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x420260
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x420260
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x6c
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
sub esp, 4
test eax, eax
mov ebp, eax
lea edi, [esp + 0x48]
lea esi, [esp + 0x50]
je 0x420303
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x7c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
sub esp, 0x2c
test eax, eax
je 0x420265
call fcn.0042c430
mov dword [esp], 0x1b
mov ebx, eax
mov dword [esp + 0x48], esi
call fcn.004ed900
mov edx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov word [eax + 0x18], dx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.ChangeServiceConfig_success
mov dword [esp + 0xc], 0x201
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x42023c
mov dword [esp], eax
call fcn.004ed8c0
mov dword [esp], ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
sub esp, 4
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret 4
xor eax, eax
ret 4
call fcn.0042c430
mov dword [esp], 0x1b
mov ebx, eax
mov dword [esp + 0x48], esi
call fcn.004ed900
mov ecx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov word [eax + 0x18], cx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.ChangeServiceConfig_fail
mov dword [esp + 0xc], 0x1fe
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x4201a7
mov dword [esp], eax
call fcn.004ed8c0
jmp 0x4201a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x4203af
call fcn.0042c430
mov dword [esp], 0x1b
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], esi
call fcn.004ed900
mov edx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov word [eax + 0x18], dx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.LockServiceDatabase_failed
mov dword [esp + 0xc], 0x1d8
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x4203af
mov dword [esp], eax
call fcn.004ed8c0
mov dword [esp + 4], 0x10c
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
sub esp, 8
test eax, eax
mov dword [esp + 0x30], eax
je 0x420652
mov dword [esp + 0xc], 0x10c
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10c
mov dword [esp], eax
call fcn.004327e0
lea eax, [esp + 0x44]
mov dword [esp + 8], 0x10c
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusA]
sub esp, 0x10
test eax, eax
je 0x4206f0
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
test eax, eax
jne 0x420580
call fcn.0042c430
mov dword [esp], 0x1b
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], esi
call fcn.004ed900
mov edx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov word [eax + 0x18], dx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.No_longer_locked
mov dword [esp + 0xc], 0x1f1
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x4204cb
mov dword [esp], eax
call fcn.004ed8c0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x42063d
call fcn.0042c430
mov dword [esp], 0x1b
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], esi
call fcn.004ed900
mov edx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov word [eax + 0x18], dx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.Could_not_lock_database
mov dword [esp + 0xc], 0x1f9
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x42013d
mov dword [esp], eax
call fcn.004ed8c0
jmp 0x42013d
call fcn.0042c430
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
mov dword [esp], 0x1b
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
call fcn.004ed900
mov ecx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov word [eax + 0x18], cx
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov byte [eax + 0x1a], 0
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], str.Locked_by:__s__duration:__d_seconds
mov dword [esp + 0xc], 0x1ef
mov dword [esp + 0x18], ecx
mov dword [esp + 8], edi
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x42063d
mov dword [esp], eax
call fcn.004ed8c0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
jmp 0x4204d7
call fcn.0042c430
mov dword [esp], 0x1b
mov ebx, eax
mov dword [esp + 0x48], esi
call fcn.004ed900
mov ecx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov word [eax + 0x18], cx
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.LocalAlloc_failed
mov dword [esp + 0xc], 0x1df
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x4206e7
mov dword [esp], eax
call fcn.004ed8c0
xor eax, eax
jmp 0x42024d
call fcn.0042c430
mov dword [esp], 0x1b
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], esi
call fcn.004ed900
mov edx, 0x6e6f
mov dword [eax], 0x6e616843
mov dword [eax + 4], 0x65536567
mov word [eax + 0x18], dx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], 0x63697672
mov dword [eax + 0xc], 0x6e6f4365
mov dword [eax + 0x10], 0x75676966
mov dword [eax + 0x14], 0x69746172
mov byte [eax + 0x1a], 0
mov dword [esp + 0x10], str.QueryServiceLockStatus
mov dword [esp + 0xc], 0x1e6
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0x1a
mov dword [esp + 0x4c], 0x1a
call fcn.0042ce70
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x42078b
mov dword [esp], eax
call fcn.004ed8c0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov dword [esp + 0x30], 0
jmp 0x420430