Function at 0x4f0900
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b3b2
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edi
cmp dword [ebx + 0x10], edi
jne 0x4f095e
push 0x1b
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
push str.CWFP::StartWFP___Wrong_data
mov ecx, esi
mov byte [esi], 0
call fcn.00402a36
jmp 0x4f0b05
push edi
push ebx
call fcn.00403256
test al, al
je 0x4f0988
push edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
push 0x5bd6cf
mov ecx, esi
mov byte [esi], 0
call fcn.00402a36
jmp 0x4f0b05
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4f09b7
push 0x23
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
push str.CWFP::StartWFP___Failed_to_open_SCM
mov ecx, esi
mov byte [esi], al
call fcn.00402a36
jmp 0x4f0b05
cmp dword [ebx + 0x14], 8
jb 0x4f09bf
mov ebx, dword [ebx]
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4f0a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.004080a8
add esp, 8
mov edi, eax
push str.CWFP::StartWFP___Failed_to_open_service_with_error:
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00403dfa
push edi
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00407cd9
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0040583f
lea ecx, [ebp - 0x48]
call fcn.0040583f
jmp 0x4f0b05
push 0
push 0
push ebx
mov dword [ebp - 0x68], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4f0a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4f0a9e
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004080a8
add esp, 8
mov edi, eax
push str.CWFP::StartWFP___Failed_to_start_service_with_error
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.00403dfa
push edi
push eax
push esi
mov byte [ebp - 4], 3
call fcn.00407cd9
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.0040583f
lea ecx, [ebp - 0x2c]
call fcn.0040583f
jmp 0x4f0b05
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4f0aac
push 0x1388
jmp 0x4f0aad
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x6c]
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push str.CWFP::StartWFP
mov byte [edx + 0x34], 1
call fcn.00403dfa
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 4], 4
call fcn.00401cb7
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00405204
push eax
push esi
mov dword [ebp - 4], 5
call fcn.00406569
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.00406dfc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 0xc