Function at 0x514920
Capabilities:
Query service status
Resolve function by parsing pe exports
Start service

Disassembly:
sub esp, 0x8c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
mov ebx, dword [esp + 0x94]
push esi
push edi
lea edi, [esp + 0x34]
mov dword [esp + 0x34], 0x10
lea eax, [ebx + ebx*2]
mov dword [esp + 0x38], 4
lea edi, [edi + eax*8]
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 7
mov esi, ecx
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 0x462
mov dword [esp + 0x4c], 0x20
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], 9
mov dword [esp + 0x5c], 0xa
mov dword [esp + 0x60], 0x463
mov dword [esp + 0x64], 0x40
mov dword [esp + 0x68], 7
mov dword [esp + 0x6c], 6
mov dword [esp + 0x70], 0xb
mov dword [esp + 0x74], 0xc
mov dword [esp + 0x78], 0x46f
mov dword [esp + 0x7c], 0x40
mov dword [esp + 0x80], 4
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 0xd
mov dword [esp + 0x8c], 0xe
mov dword [esp + 0x90], 0x470
mov eax, dword [edi]
or eax, 4
push eax
push 1
call fcn.005165e0
cmp eax, 0x45c
je 0x514b77
cmp dword [esi + 0x11c], 0
jne 0x514a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x514b85
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 0xc]
mov eax, dword [eax]
call eax
test al, al
je 0x514b42
imul eax, dword [esi + 0x6c], 0x3e8
mov dword [esp + 0xc], eax
call fcn.004f8090
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test ebx, ebx
jne 0x514a8a
push ebx
push ebx
push dword [esi + 0x11c]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x514a9c
lea eax, [esp + 0x18]
push eax
push ebx
push dword [esi + 0x11c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne al
test al, al
je 0x514b93
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x11c]
xor bl, bl
call ebp
test eax, eax
je 0x514b9f
mov eax, dword [esp + 0x20]
cmp eax, dword [edi + 8]
jne 0x514b2d
mov edx, dword [esi]
xor eax, eax
test bl, bl
mov ecx, esi
setne al
add eax, 0xf
push eax
mov eax, dword [edx]
call eax
test al, al
je 0x514b3f
mov bl, 1
call fcn.004f8090
sub eax, dword [esp + 0x14]
sbb edx, dword [esp + 0x18]
test edx, edx
ja 0x514b20
jb 0x514b02
cmp eax, dword [esp + 0x10]
ja 0x514b20
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x11c]
call ebp
test eax, eax
jne 0x514ac7
jmp 0x514b9f
push 0x425
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x514b31
test bl, bl
je 0x514b60
mov eax, dword [esi]
mov ecx, esi
push 0x11
mov eax, dword [eax]
call eax
test al, al
jne 0x514b5c
xor al, al
pop ebp
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0x8c
ret 4
mov eax, dword [esp + 0x20]
mov ecx, esi
cmp eax, dword [edi + 4]
jne 0x514bad
mov eax, dword [esi]
push dword [edi + 0x10]
mov eax, dword [eax]
call eax
test al, al
setne al
jmp 0x514b41
push 0
push 0x45c
mov ecx, esi
call fcn.00516420
push 0
push 0x45e
mov ecx, esi
call fcn.00516420
push 0
push dword [edi + 0x14]
mov ecx, esi
call fcn.00516420
push 0
push 0x45e
mov ecx, esi
call fcn.00516420
push 0
push dword [edi + 0x14]
call fcn.00516420
int3