Function at 0x1106cc30
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dd531
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x11279148]
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x240], eax
mov ecx, edi
and ecx, 2
mov esi, edx
mov edx, dword [0x1127aa68]
mov ebx, dword [edx + 0x24]
mov dword [ebp - 0x244], ecx
mov ecx, dword [0x1127b87c]
mov eax, edi
not eax
and eax, 1
xor edx, edx
mov dword [ebp - 0x260], ecx
xor ecx, ecx
cmp eax, ecx
sete dl
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x230], ecx
mov eax, edx
mov dword [ebp - 0x264], eax
mov dword [0x1127b87c], eax
cmp dword [0x1127ace4], ecx
je 0x1106cccc
and edi, 0xfffffffd
mov dword [ebp - 0x244], ecx
cmp esi, ecx
je 0x1106cdbe
cmp word [esi], cx
je 0x1106cdbe
xor eax, eax
push 0x2f
push esi
mov word [ebp - 0x210], ax
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x1106cd1a
xor ecx, ecx
push 0x100
lea edx, [ebp - 0x210]
mov word [eax], cx
push edx
add eax, 2
push eax
push ecx
call fcn.11144ff0
add esp, 0x10
mov ecx, dword [0x1127b21c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x88]
push 0
push 2
lea edx, [ebp - 0x210]
push edx
push esi
call eax
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x1106cd61
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x88]
push eax
push 3
lea eax, [ebp - 0x210]
push eax
push esi
call edx
mov dword [ebp - 0x230], eax
mov edx, 0x200
lea ecx, [ebp - 0x210]
lea esp, [esp]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x1106cd70
cmp eax, 0xffffffff
jne 0x1106cda1
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebx]
push ecx
push esi
push edx
mov edx, dword [eax + 4]
push 0x42c
push ebx
call edx
add esp, 0x14
mov dword [ebp - 0x230], 0
jmp 0x1106cdbe
test eax, eax
je 0x1106cdbe
mov ecx, dword [0x1127b21c]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x230]
mov eax, dword [eax + 0x90]
push 0
push edx
call eax
mov esi, 1
mov dword [ebp - 0x238], esi
call fcn.111bbd10
test eax, eax
je 0x1106cdf5
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.110643f0
add esp, 4
test al, al
je 0x1106cdf5
mov dword [ebp - 0x238], 0x3e
mov esi, dword [ebp - 0x238]
mov dword [ebp - 0x234], 0
test esi, esi
jle 0x1106cf07
mov ebx, dword [ebp - 0x264]
test ebx, ebx
je 0x1106ce14
or edi, 1
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x240]
mov ecx, dword [0x1127aa68]
push edx
and edi, 0xfffffffd
push edi
push 0x19141918
push 0
push eax
mov dword [ebp + 0xc], edi
call fcn.110bffc0
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x1106cf07
test ebx, ebx
je 0x1106cf07
cmp dword [ebp - 0x234], eax
jne 0x1106cecc
cmp esi, 2
jl 0x1106cef2
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1106cef2
xor edi, edi
push 4
push str.ProtectedStorage
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1106ceba
lea ecx, [ebp - 0x22c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x228], 4
je 0x1106ceba
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x4b0
jl 0x1106ce77
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x238]
mov edi, dword [ebp + 0xc]
jmp 0x1106cef2
cmp esi, 2
jle 0x1106cef2
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push 0x3a98
push 0
push 0
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
cmp eax, esi
jl 0x1106ce07
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x1106cf2c
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
push 0
push 0
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x1106cf3e
mov ecx, 0x2f
mov word [eax], cx
cmp dword [ebp - 0x23c], 0
je 0x1106d128
cmp dword [ebp - 0x244], 0
je 0x1106d044
cmp byte [0x1127ad8d], 0
jne 0x1106d044
mov edx, dword [0x1127aa68]
mov esi, dword [edx + 0x30]
push 0
push esi
call fcn.110bf510
mov eax, dword [0x1127aa68]
mov ecx, dword [eax + 0x2c]
push ecx
push esi
call fcn.1107c4d0
add esp, 0x10
lea ecx, [ebp - 0x25c]
call fcn.1113dd30
mov edx, dword [esi]
mov edx, dword [edx + 8]
push 0
lea eax, [ebp - 0x25c]
push eax
push str.GSKU
push 0x11218828
mov ecx, esi
mov dword [ebp - 4], 0
call edx
mov eax, dword [ebp - 0x25c]
mov edx, dword [eax]
lea ecx, [ebp - 0x25c]
call edx
test al, al
jne 0x1106cfde
push 0x263
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
cmp dword [ebp - 0x254], 0
sete al
test al, al
jne 0x1106d032
mov eax, dword [ebp - 0x25c]
mov edx, dword [eax]
lea ecx, [ebp - 0x25c]
call edx
test al, al
jne 0x1106d014
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
mov eax, dword [ebp - 0x250]
mov ecx, dword [0x1127aa6c]
push 3
push eax
push str.GSKU
push 0x11218828
call fcn.110bbcf0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov esi, str.NSM.LIC
call fcn.111b8710
cmp eax, 0x37
jne 0x1106d05a
mov esi, str.NSA.LIC
jmp 0x1106d068
call fcn.11067ea0
test al, al
je 0x1106d068
mov esi, str.IKS.LIC
lea ecx, [ebp - 0x274]
call fcn.1113dd30
mov ecx, dword [0x1127aa68]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
lea eax, [ebp - 0x274]
push eax
push str.LicenseFile
push str._License
mov dword [ebp - 4], 1
call edx
push str.NSW.LIC
lea ecx, [ebp - 0x274]
call fcn.1113c720
test al, al
je 0x1106d0bc
cmp dword [0x1127aa4c], 0
je 0x1106d0bc
mov esi, str.NSW.LIC
push 1
push esi
call fcn.111bb700
mov edi, eax
mov dword [ebp - 0x234], edi
push 0
push edi
mov byte [ebp - 4], 2
call fcn.111be4e0
add esp, 0x10
test eax, eax
je 0x1106d0ff
mov eax, dword [ebp - 0x248]
mov ecx, dword [0x1127aa68]
push esi
push eax
push 0
push 0x808
call fcn.110c1440
mov dword [ebp - 0x23c], eax
mov ecx, dword [0x1127aa68]
push 0
push ecx
call fcn.11069350
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0xc
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x23c]
mov dword [0x1127b87c], edx
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.111d9022
mov esp, ebp
pop ebp
ret