Function at 0x1034723
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1099a38]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [esi + 0xc], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x210], ebx
je 0x1034785
lea eax, [esi + 0x10]
push eax
push 4
push dword [esi]
push edi
call fcn.01074a4e
cmp eax, ebx
mov dword [ebp - 0x210], eax
je 0x1034785
mov dword [esi + 0xc], ebx
push 0xe0000000
push dword [esi]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0x214], eax
mov edi, 0x1106960
jne 0x10347ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100ae00
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x103485f
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0xf0b3
push ebx
call fcn.010312a2
push dword [esi + 4]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push edi
call fcn.01045583
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x214]
mov dword [esi + 8], 1
call ebx
test eax, eax
jne 0x1034828
push dword [ebp - 0x210]
push 0x100add0
call fcn.01071ac0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103490a
mov eax, dword [ebp - 0x23c]
cmp eax, 1
jne 0x103483f
and dword [ebp - 0x210], 0
jmp 0x103491d
cmp eax, 4
je 0x10348b9
cmp eax, 7
je 0x10348b9
mov dword [ebp - 0x210], 0x4c7
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esi]
mov edx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x1034863
lea eax, [ebp - 0x218]
push eax
push edi
push dword [esi]
mov dword [ebp - 0x218], 0xfffa
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameA]
push dword [ebp - 0x220]
push edi
call dword [sym.imp.msvcrt.dll__strdup]
pop ecx
push eax
push dword [ebp - 0x224]
call fcn.01052eef
test eax, eax
jne 0x103496c
mov eax, 0x4c7
jmp 0x103498e
mov dword [esi + 8], eax
lea eax, [ebp - 0x240]
push eax
push 1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10348f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100ada4
mov dword [ebp - 0x210], eax
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x1034910
push dword [0x10bf564]
lea eax, [ebp - 0x240]
push 1
push eax
push dword [ebp - 0x214]
call fcn.01074953
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x1034853
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x1034951
push eax
push 0x100add0
call fcn.01071ac0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x1034853
cmp dword [ebp - 0x23c], 1
jne 0x1034853
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x103498c
push dword [ebp - 0x210]
mov esi, 0x1116960
push 0x100acdc
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push esi
call fcn.01071aad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x10