Function at 0x1001d0a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10142008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x248], ebx
mov ecx, 0x10146148
mov dword [ebp - 0x24c], eax
call fcn.100e3445
cmp byte [0x101430c0], 0
jne 0x1001d17a
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1001d3f9
push 5
push str.CryptSvc
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1001d11a
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1001d3f9
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1001d139
mov byte [ebp - 0x241], al
jmp 0x1001d154
mov eax, dword [ebp - 0x28]
cmp eax, 2
je 0x1001d14d
mov byte [ebp - 0x241], 0
cmp eax, 4
jne 0x1001d154
mov byte [ebp - 0x241], 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
cmp byte [ebp - 0x241], 0
je 0x1001d3f9
mov ebx, dword [ebp - 0x248]
mov byte [0x101430c0], 1
mov ecx, edi
call fcn.1001cde0
cmp dword [edi], 0
je 0x1001d3f2
cmp dword [edi + 4], 0
je 0x1001d3f2
cmp dword [edi + 8], 0
je 0x1001d3f2
cmp dword [edi + 0xc], 0
je 0x1001d3f2
cmp dword [edi + 0x10], 0
je 0x1001d3f2
cmp dword [edi + 0x14], 0
je 0x1001d3f2
cmp dword [ebx + 0x14], 8
jb 0x1001d1c4
mov ebx, dword [ebx]
push 0
push 0
push 3
push 0
push 7
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001d1f6
mov dword [edi + 0x18], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x1c], eax
jmp 0x1001d3f9
push 0
push 0
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push eax
mov eax, dword [edi]
push esi
call eax
test eax, eax
je 0x1001d3d9
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x1001d3d9
push 0x10142cb0
push eax
call fcn.100e0d78
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1001d24d
push esi
mov dword [edi + 0x18], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001d3f9
push dword [ebp - 0x240]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x240]
push 0
push ebx
push eax
mov eax, dword [edi]
push esi
call eax
test eax, eax
jne 0x1001d296
mov dword [edi + 0x18], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x1c], eax
push ebx
call fcn.100e0d73
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001d3f9
push 0
push 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
push eax
mov eax, dword [edi + 4]
call eax
test eax, eax
jne 0x1001d2bd
mov dword [edi + 0x18], 0xb
jmp 0x1001d278
mov eax, dword [edi + 8]
push 0
push 0
push dword [ebp - 0x240]
push ebx
push dword [ebp - 0x23c]
call eax
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x1001d2fc
mov dword [edi + 0x18], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x23c]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x10]
call eax
jmp 0x1001d281
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x238], 0x20c
lea eax, [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x248]
mov eax, dword [edi + 0xc]
call eax
test eax, eax
jne 0x1001d369
mov dword [edi + 0x18], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x248]
mov dword [edi + 0x1c], eax
push dword [ebp - 0x23c]
mov eax, dword [edi + 0x14]
call eax
mov eax, dword [edi + 0x10]
push 0
push dword [ebp - 0x23c]
call eax
jmp 0x1001d281
lea edx, [ebp - 0x234]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001d372
sub edx, ecx
lea eax, [ebp - 0x234]
mov ecx, dword [ebp - 0x24c]
sar edx, 1
push edx
push eax
call fcn.10003530
mov eax, dword [edi + 0x14]
push 0
push dword [ebp - 0x248]
push dword [ebp - 0x23c]
call eax
mov eax, dword [edi + 0x10]
push 0
push dword [ebp - 0x23c]
call eax
push ebx
call fcn.100e0d73
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e0d24
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x18], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [edi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001d3f9
mov dword [edi + 0x18], 6
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e0d24
mov esp, ebp
pop ebp
ret 8