Function at 0x4025f0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x118
mov eax, dword [0x447004]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, ecx
movlpd qword [esp + 0x60], xmm0
push edi
mov dword [esi], eax
lea eax, [esi + 0x178]
mov dword [esi + 4], edx
mov dword [eax + 4], 0x4478b4
mov dword [eax + 0x10], 0x411a20
mov dword [eax + 0x18], eax
lea eax, [esi + 0x110]
push eax
mov dword [esi + 8], 3
mov dword [esi + 0xc], 0x4478b0
mov dword [esi + 0x10], 0x4478b4
mov dword [esi + 0x70], 0x447924
mov dword [esi + 0x74], 0x447910
mov dword [esi + 0x128], 0x4478b4
mov dword [esi + 0x140], 0x411a20
mov dword [esi + 0x7c], 0x4478b4
mov dword [esi + 0x78], 0x4478f8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x104]
mov ecx, esi
mov dword [eax + 8], 0
mov dword [eax], eax
mov dword [eax + 4], eax
call fcn.00401260
mov edi, eax
test edi, edi
je 0x402aad
mov eax, dword [esi + 4]
lea ecx, [esp + 0x6c]
or dword [esp + 0x74], 0xf
dec eax
mov dword [esp + 0x84], eax
mov eax, dword [esi]
add eax, 4
mov dword [esp + 0x6c], 0x447c20
mov dword [esp + 0x88], eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x74], 8
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x7c], 0x44492c
mov dword [esp + 0x80], 0x444930
mov dword [esp + 0x84], 0x447c14
call fcn.0041ae90
add esp, 4
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], eax
movd eax, xmm0
movaps xmmword [esp + 0x20], xmm0
cmp eax, 2
je case.0x4027fa.1
test eax, eax
je 0x4027e9
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xa0]
call fcn.0041c050
lea eax, [esp + 0xa0]
push eax
push 0x442ff0
lea eax, [esp + 0x74]
push 0
push eax
call fcn.0041bc20
add esp, 0x18
mov ecx, dword [0x4478b4]
lea edx, [esp + 0x14]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x64], 0x19
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [ecx]
push edx
add eax, 0x4478b4
push 0x10
push eax
mov eax, dword [ecx + 4]
call eax
xor ecx, ecx
add esp, 0xc
test eax, eax
cmovne ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402a2e
mov dword [ecx + 0xc], edi
xor edi, edi
mov dword [ecx + 4], str.Command_line_is_invalid.
mov dword [ecx + 8], 0x18
mov dword [ecx], 0x447a04
mov dword [esp + 0x68], ecx
jmp 0x402aad
mov eax, dword [esp + 0x28]
test eax, eax
je case.default.0x4027fa
mov eax, dword [eax + 0xc]
dec eax
cmp eax, 8
ja case.default.0x4027fa
jmp dword [eax*4 + 0x402c30]
movzx eax, word [esi + 0x158]
push eax
movzx eax, word [esi + 0x15a]
push eax
movzx eax, word [esi + 0x15c]
push eax
movzx eax, word [esi + 0x15e]
push eax
push str.Cfbackd_version_is__d._d._d._d._n
push 0x4478b8
call fcn.00401240
add esp, 0x18
mov edi, 1
jmp 0x402ac9
push str.No_help__n
push 2
call fcn.004274e8
add esp, 4
push eax
call fcn.004011e0
add esp, 8
mov edi, 1
jmp 0x402ac9
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x402a6b
push 0x10024
push str.cfbackd
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x4028ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4028b3
push dword [esp + 0x14]
lea edi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402aa9
mov edx, dword [esp + 0x68]
test edx, edx
je 0x4028ca
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov ecx, edi
mov dword [esp + 0x64], 0x19
call fcn.0041b480
push dword [esp + 0x14]
mov dword [esp + 0x6c], eax
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402aa9
xor edx, edx
mov ecx, edi
call fcn.00403500
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402942
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x68]
mov edi, eax
test edi, edi
mov eax, 0xa0
cmove edi, eax
test ecx, ecx
je 0x40292b
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
add esp, 4
mov ecx, edi
mov dword [esp + 0x64], 0x19
call fcn.0041b480
mov dword [esp + 0x68], eax
xor edi, edi
jmp 0x402947
mov edi, 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402aa9
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40298d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x64]
call fcn.00402100
mov edi, eax
jmp 0x402aa9
push 0x10024
push str.cfbackd
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4029c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
lea edx, [esp + 0x64]
call fcn.00402100
mov edi, eax
jmp 0x402aa9
xor edx, edx
mov ecx, edi
call fcn.00403500
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4029e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push dword [esp + 0x14]
call edi
lea edx, [esp + 0x64]
call fcn.00402100
mov edi, eax
jmp 0x402aa9
lea edx, [esp + 0x64]
mov ecx, esi
call fcn.004017e0
mov edi, eax
jmp 0x402aa9
lea ecx, [esp + 0x64]
call fcn.004030f0
mov edi, eax
jmp 0x402aa9
lea ecx, [esp + 0x64]
call fcn.004033a0
mov edi, eax
jmp 0x402aa9
test edi, edi
je 0x402a41
mov ecx, dword [edi]
mov eax, dword [ecx]
add eax, edi
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov ecx, 0x4479a8
xor edi, edi
mov dword [esp + 0x68], ecx
jmp 0x402aad
mov ecx, esi
call fcn.00401490
push 0x447c04
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
je 0x402a6b
mov edi, 1
jmp 0x402aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x68]
mov edi, eax
test edi, edi
mov eax, 0xa0
cmove edi, eax
test ecx, ecx
je 0x402a94
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
add esp, 4
mov ecx, edi
mov dword [esp + 0x64], 0x19
call fcn.0041b480
xor edi, edi
mov dword [esp + 0x68], eax
test edi, edi
jne 0x402ac9
mov ecx, dword [0x4478b0]
push dword [esp + 0x68]
push 4
mov eax, dword [ecx]
add eax, 0x4478b0
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0xc
mov edx, dword [esp + 0x68]
mov dword [esp + 0x64], 0
test edx, edx
je 0x402af0
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov dword [esp + 0x68], 0
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x402b23
mov ecx, dword [0x4478b4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x14
mov eax, dword [ecx]
add eax, 0x4478b4
push 0
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 0xc
mov ecx, dword [0x4478b4]
lea eax, [esi + 0x1bc]
push eax
push 0
mov eax, dword [ecx]
add eax, 0x4478b4
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 0xc
cmp word [esi + 0x168], 0
je 0x402b78
push dword [esi + 0x16c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
movzx eax, word [esi + 0x168]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
mov word [esi + 0x168], ax
push dword [esi + 0x134]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esi + 0x128]
lea eax, [esi + 0x160]
push eax
push 0
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0xc
cmp dword [esi + 0x58], 0
je 0x402bd0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x402bbf
push eax
call fcn.0042b39c
add esp, 4
mov dword [esi + 0x60], 0
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 0x58], 0
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x20]
push eax
push 0
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x28]
add esp, 0xc
mov edx, dword [ecx]
push eax
push 0
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x4c]
add esp, 0xc
mov edx, dword [ecx]
push eax
push 0
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x128]
add esp, 0xc
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00425576
mov esp, ebp
pop ebp
ret