Function at 0x72bbf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
xor eax, eax
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
call fcn.0072b668
mov dword [ebp - 8], eax
push 1
push 0
push 0
call sub.Advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x72bdb4
push 1
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
call sub.Advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x72bdb4
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov edx, dword [ebp - 0x10]
push edx
call sub.Advapi32.dll_QueryServiceConfigW
test eax, eax
jne 0x72bc72
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x7a
jne 0x72bdb4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00724b84
pop ecx
mov edi, eax
test edi, edi
je 0x72bdb4
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x14]
push edx
push edi
mov ecx, dword [ebp - 0x10]
push ecx
call sub.Advapi32.dll_QueryServiceConfigW
test eax, eax
je 0x72bdb4
mov ebx, dword [edi + 0xc]
push 0x104
lea eax, [ebp - 0x21c]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
je 0x72bdb4
push 0xb
push str.SystemRoot
push ebx
call fcn.00725214
add esp, 0xc
test eax, eax
jne 0x72bd21
lea edx, [ebp - 0x21c]
push edx
call sub.kernel32.dll_lstrlenW_1
push eax
push ebx
call sub.kernel32.dll_lstrlenW_1
pop ecx
add ecx, eax
add ecx, ecx
push ecx
call fcn.00724b84
pop ecx
mov dword [esi], eax
cmp dword [esi], 0
je 0x72bdb4
mov eax, dword [esi]
lea edx, [ebp - 0x21c]
mov word [eax], 0
push edx
mov ecx, dword [esi]
push ecx
call sub.kernel32.dll_lstrcpyW
add ebx, 0x16
push ebx
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcatW
jmp 0x72bdad
cmp word [ebx + 2], 0x3a
je 0x72bd86
cmp word [ebx + 0xa], 0x3a
je 0x72bd86
lea edx, [ebp - 0x21c]
push edx
call sub.kernel32.dll_lstrlenW_1
push eax
push ebx
call sub.kernel32.dll_lstrlenW_1
pop ecx
add ecx, eax
add ecx, ecx
add ecx, 4
push ecx
call fcn.00724b84
pop ecx
mov dword [esi], eax
cmp dword [esi], 0
je 0x72bdb4
mov eax, dword [esi]
lea edx, [ebp - 0x21c]
mov word [eax], 0
push edx
mov ecx, dword [esi]
push ecx
call sub.kernel32.dll_lstrcpyW
push 0x799b1a
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcatW
push ebx
mov edx, dword [esi]
push edx
call sub.kernel32.dll_lstrcatW
jmp 0x72bdad
push 0x799b1e
push ebx
call fcn.007250e4
add esp, 8
cmp ebx, eax
jne 0x72bd9d
lea ecx, [ebx + 8]
jmp 0x72bd9f
mov ecx, ebx
push ecx
call fcn.007251dc
pop ecx
mov dword [esi], eax
cmp dword [esi], 0
je 0x72bdb4
mov dword [ebp - 4], 1
call sub.kernel32.dll_GetLastError_2
cmp dword [ebp - 0x10], 0
mov ebx, eax
je 0x72bdca
mov eax, dword [ebp - 0x10]
push eax
call sub.Advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0xc], 0
je 0x72bdd9
mov edx, dword [ebp - 0xc]
push edx
call sub.Advapi32.dll_CloseServiceHandle
test edi, edi
je 0x72bde4
push edi
call fcn.00724ba4
pop ecx
mov ecx, dword [ebp - 8]
push ecx
call fcn.0072b6d8
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8