Function at 0x41b299
Capabilities:
Check if file exists
Move file
Query service status
Start service
Stop service

Disassembly:
push 0x68
mov eax, 0x4527bf
call fcn.00421b9a
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
xor esi, esi
push 0x4546bc
mov dword [ebp - 0x5c], esi
call fcn.00402197
mov dword [ebp - 4], esi
mov dword [ebp - 0x54], esi
call fcn.004037a4
push eax
lea ecx, [ebp - 0x54]
call fcn.0040216e
mov edi, 0x104
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x54]
call fcn.00403afc
push edi
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.00403ca7
push edi
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push eax
lea ecx, [ebp - 0x54]
call fcn.00403ca7
mov edi, dword [ebp - 0x54]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b333
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1a
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], 0x458190
lea eax, [ebp - 0x44]
push 0x469054
push eax
call fcn.00421ad2
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
jne 0x41b35d
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 6
and dword [ebp - 0x38], 0
jmp 0x41b31e
push 0xf01ff
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
jne 0x41b38b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1b
jmp 0x41b357
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push ebx
call esi
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x50], eax
push ecx
push dword [ebp - 0x30]
push eax
push ebx
call esi
mov esi, dword [ebp - 0x50]
test eax, eax
jne 0x41b3e4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x58]
call esi
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1c
jmp 0x41b357
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push dword [esi + 0xc]
call fcn.0040221f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0041693f
lea ecx, [ebp - 0x34]
call fcn.00418f6d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x34]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b43c
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x58]
call esi
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1d
jmp 0x41b357
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
push eax
call fcn.0040f748
add eax, 0x10
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x44], 0x458190
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x6c]
mov dword [esp], str.ZyQvJA
push eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], 5
call fcn.0040fe8d
pop ecx
pop ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00404f20
push eax
lea ecx, [ebp - 0x50]
call fcn.00416ae2
mov ebx, eax
mov byte [ebp - 4], 4
neg ebx
lea ecx, [ebp - 0x6c]
sbb bl, bl
call fcn.00404a45
mov esi, dword [ebp - 0x50]
inc bl
je 0x41b4b7
mov dword [ebp - 0x3c], 0x1e
mov ebx, dword [ebp - 0x48]
jmp 0x41b661
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push esi
push dword [ebp - 0x34]
call ebx
test eax, eax
jne 0x41b4d2
mov dword [ebp - 0x3c], 0x1f
jmp 0x41b4af
push 9
push dword [ebp - 0x34]
push edi
call ebx
test eax, eax
jne 0x41b4ef
push 9
push dword [ebp - 0x34]
push esi
call ebx
mov dword [ebp - 0x3c], 0x20
jmp 0x41b4af
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41b50d
mov dword [ebp - 0x3c], 0x21
jmp 0x41b661
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x41b53a
cmp eax, 3
je 0x41b53a
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41b537
mov dword [ebp - 0x3c], 0x22
jmp 0x41b661
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x4c], 0
cmp eax, 1
je 0x41b5d5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
inc ecx
mov dword [ebp - 0x4c], ecx
cmp eax, 0x258
jae 0x41b571
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41b5cb
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0x456da0
call fcn.0040221f
mov eax, dword [ebp - 0x34]
push 0x1388
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 6
mov ebx, esp
push eax
call fcn.0040f748
add eax, 0x10
mov dword [ebx], eax
pop ecx
mov byte [ebp - 4], 4
call fcn.00414803
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
add eax, 0xfffffff0
mov ebx, esp
push eax
call fcn.0040f748
add eax, 0x10
pop ecx
mov dword [ebx], eax
call fcn.00413fba
mov ebx, dword [ebp - 0x48]
pop ecx
test eax, eax
jne 0x41b604
cmp dword [ebp - 0x28], 1
jne 0x41b547
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41b60d
push 9
push dword [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x3c], 0x24
jmp 0x41b661
mov dword [ebp - 0x3c], 0x23
jmp 0x41b661
and dword [ebp - 0x4c], 0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
inc ecx
mov dword [ebp - 0x4c], ecx
cmp eax, 0x258
jae 0x41b643
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41b643
cmp dword [ebp - 0x28], 4
jne 0x41b611
jmp 0x41b661
push 9
push dword [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x3c], 0x25
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push dword [ebp - 0x58]
call ebx
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41b698
and dword [ebp - 0x64], 0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x6c], 5
mov dword [ebp - 0x70], 0x458190
push 0x469054
jmp 0x41b32d
lea ecx, [esi - 0x10]
call fcn.00403c62
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00403c62
lea ecx, [edi - 0x10]
call fcn.00403c62
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00403c62
call fcn.00421b49
ret