Function at 0x1005bb20
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x1005bb9b
call dword [0x100fa7f0]
movzx eax, al
test eax, eax
je 0x1005bb96
call dword [0x100fa7f8]
cmp eax, 3
jg 0x1005bb96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100d3a70
push 3
push 0xe3
push 0x100d3abc
call dword [0x100fa800]
add esp, 0x14
jmp 0x1005bdde
push 0xf01ff
call fcn.1003ff40
add eax, 0x184
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.1002f210
add esp, 8
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.10049c40
push eax
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
call fcn.1000c290
cmp dword [ebp - 0x3c], 0
jne 0x1005bc30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1005bbf2
jmp 0x1005bdde
call dword [0x100fa7f0]
movzx eax, al
test eax, eax
je 0x1005bc2b
call dword [0x100fa7f8]
cmp eax, 3
jg 0x1005bc2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100d3ae8
push 3
push 0xf0
push 0x100d3b30
call dword [0x100fa800]
add esp, 0x14
jmp 0x1005bdde
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1005bc80
call dword [0x100fa7f0]
movzx eax, al
test eax, eax
je 0x1005bc7b
call dword [0x100fa7f8]
cmp eax, 3
jg 0x1005bc7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100d3b58
push 3
push 0xf8
push 0x100d3bac
call dword [0x100fa800]
add esp, 0x14
jmp 0x1005bdde
cmp dword [ebp - 0x1c], 3
jne 0x1005bcc7
mov dword [ebp - 0x44], 0
jmp 0x1005bc98
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 6
jae 0x1005bcc7
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1005bcb2
jmp 0x1005bcc7
cmp dword [ebp - 0x1c], 1
jne 0x1005bcba
jmp 0x1005bcc7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1005bc8f
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1005bd12
call dword [0x100fa7f0]
movzx edx, al
test edx, edx
je 0x1005bd12
call dword [0x100fa7f8]
cmp eax, 3
jg 0x1005bd12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100d3bd8
push 3
push 0x10e
push 0x100d3c20
call dword [0x100fa800]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1005bd5f
call dword [0x100fa7f0]
movzx edx, al
test edx, edx
je 0x1005bd5d
call dword [0x100fa7f8]
cmp eax, 3
jg 0x1005bd5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100d3c48
push 3
push 0x114
push 0x100d3c9c
call dword [0x100fa800]
add esp, 0x14
jmp 0x1005bdde
cmp dword [ebp - 0x1c], 4
je 0x1005bd9d
call dword [0x100fa7f0]
movzx eax, al
test eax, eax
je 0x1005bd9b
call dword [0x100fa7f8]
cmp eax, 3
jg 0x1005bd9b
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x100d3cc4
push 3
push 0x11a
push 0x100d3d00
call dword [0x100fa800]
add esp, 0x14
jmp 0x1005bdde
call dword [0x100fa7f0]
movzx edx, al
test edx, edx
je 0x1005bdcf
call dword [0x100fa7f8]
cmp eax, 1
jg 0x1005bdcf
push str._N:gq
push 1
push 0x11e
push str.newconsoleCConsoleDriverNewHelper.cpp
call dword [0x100fa800]
add esp, 0x10
mov dword [ebp - 0x48], 1
xor eax, eax
jne 0x1005bb45
cmp dword [ebp - 0x3c], 0
je 0x1005bdee
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x40], 0
je 0x1005bdfe
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret