Function at 0x548390
Capabilities:
Delete service

Disassembly:
push ebp
sub esp, 0x68
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], 0x567468
lea eax, [esp + 0x60]
mov dword [esp], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 0x5c5342
mov dword [esp + 0x40], 0x548607
mov dword [esp + 0x44], esp
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Register
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [esp + 0x58], eax
test edx, edx
je 0x5483e0
cmp edx, 0xffffffff
je 0x5483e0
lock add dword [eax], 1
setne dl
lea eax, [esp + 0x58]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x20], 1
call fcn.00547cc0
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
test edx, edx
je 0x5485b0
cmp edx, 0xffffffff
je 0x54841e
lock sub dword [eax], 1
setne dl
test dl, dl
je 0x5485a7
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
je 0x5485e0
lea eax, [esp + 0x57]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.00567710
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x5c]
mov dword [esp + 4], 0
mov dword [esp + 0x5c], eax
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], 3
mov dword [esp], eax
call fcn.00567718
sub esp, 8
mov edx, dword [esp + 0x5c]
mov eax, dword [edx - 4]
test eax, eax
js 0x5484ba
lea ecx, [esp + 0x5c]
call fcn.00567720
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
add eax, dword [eax + 0xc]
mov dword [esp], edx
add ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x5c]
mov dword [esp + 4], 0
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], 3
mov dword [esp], eax
call fcn.00567718
sub esp, 8
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], 0xf01ff
mov dword [esp + 0x20], 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
sub esp, 0xc
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, 0xffffffff
lock xadd dword [ecx - 4], eax
test eax, eax
jle 0x5485f0
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x5485e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
test eax, eax
setne byte [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp], eax
call edx
sub esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call dword [esp + 0x14]
sub esp, 4
lea edx, [esp + 0x1c]
mov dword [esp], edx
call sub.libgcc_s_sjlj_1.dll__Unwind_SjLj_Unregister
movzx eax, byte [esp + 0x10]
add esp, 0x68
pop ebp
ret
mov eax, dword [esp + 0x58]
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
mov dword [esp + 0x20], 0xffffffff
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x54841e
mov byte [esp + 0x10], 0
jmp 0x548591
lea eax, [esp + 0x57]
sub ecx, 0xc
mov dword [esp], eax
call fcn.00567728
sub esp, 4
jmp 0x548542