Function at 0x10032c5
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc54
mov eax, dword [0x1007070]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc10], eax
push edi
mov eax, esi
shl eax, 2
xor edi, edi
push eax
push 0x40
mov dword [ebp - 0xc2c], ebx
mov dword [ebp - 0xc24], edi
mov dword [ebp - 0xc20], edi
mov dword [ebp - 0xc0c], edi
mov dword [ebp - 0xc30], 0x3e8
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0xc18], eax
jne 0x1003339
mov edi, 0x80070008
jmp 0x100378e
test esi, esi
je 0x1003761
and dword [ebp - 0xc08], 0
test esi, esi
lea eax, [ebp - 0x404]
mov dword [ebp - 0xc0c], eax
mov dword [ebp - 0xc34], 0x400
jbe 0x1003645
mov dword [ebp - 0xc1c], ebx
test edi, edi
jl 0x1003645
push 0xf01ff
push dword [ebx]
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov ecx, dword [ebp - 0xc18]
mov edx, dword [ebp - 0xc08]
lea esi, [ecx + edx*4]
mov dword [esi], eax
je 0x100360f
cmp dword [ebp + 0x14], 0
je 0x1003529
lea ecx, [ebp - 0xc28]
push ecx
push dword [ebp - 0xc34]
lea ecx, [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x100343e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x1003419
push dword [ebp - 0xc28]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0xc0c], eax
jne 0x10033f8
mov edi, 0x80070008
jmp 0x100360f
mov ecx, dword [ebp - 0xc28]
lea edx, [ebp - 0xc28]
push edx
push ecx
push eax
push dword [esi]
mov dword [ebp - 0xc34], ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x100343e
call ebx
cmp eax, 0x10000
jae 0x100343a
call ebx
test eax, eax
jle 0x100343a
call ebx
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x100343e
call ebx
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jl 0x100360f
cmp dword [ebp + 0x18], ebx
je 0x1003459
mov eax, dword [ebp - 0xc0c]
cmp dword [eax + 4], 3
je 0x100349f
mov eax, dword [ebp - 0xc0c]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x100349f
cmp eax, 1
je 0x100349f
cmp eax, 2
je 0x100349f
mov esi, dword [ebp - 0xc1c]
push 0x10014fc
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x1003493
mov edi, 0x80070426
jmp 0x100360f
mov dword [esi + 0xc], 4
jmp 0x100360f
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push ebx
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0x800
lea eax, [ebp - 0xc04]
push eax
mov eax, dword [ebp - 0xc1c]
push 2
push dword [eax]
push dword [ebp - 0xc14]
call fcn.01002da9
mov edi, eax
cmp edi, ebx
jl 0x100360f
push dword [ebp - 0xc10]
mov esi, dword [ebp - 0xc20]
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc24]
push esi
push dword [ebp - 0xc14]
call fcn.010032c5
cmp esi, ebx
mov edi, eax
je 0x100360f
lea eax, [ebp - 0xc04]
cmp esi, eax
je 0x100360f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100360f
push dword [ebp + 0x10]
push dword [ebp - 0xc2c]
push dword [ebp - 0xc08]
call fcn.01003259
test eax, eax
jne 0x100360f
cmp dword [ebx + 0xc], 1
sete al
test eax, eax
mov dword [ebp - 0xc38], eax
jne 0x100357f
push dword [ebp - 0xc10]
push 1
push dword [esi]
call fcn.01002bb8
mov edi, eax
cmp edi, 0x8007041d
je 0x1003635
cmp edi, 0x8007041b
jne 0x100360b
push 0
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0x800
lea eax, [ebp - 0xc04]
push eax
push 1
push dword [ebx]
push dword [ebp - 0xc14]
call fcn.01002da9
mov edi, eax
test edi, edi
jl 0x1003645
push dword [ebp - 0xc10]
mov ebx, dword [ebp - 0xc20]
push 0
push 0
push dword [ebp - 0xc24]
push ebx
push dword [ebp - 0xc14]
call fcn.010032c5
test ebx, ebx
mov edi, eax
je 0x10035ed
lea eax, [ebp - 0xc04]
cmp ebx, eax
je 0x10035ed
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jl 0x1003645
cmp dword [ebp - 0xc38], 0
jne 0x100360b
push dword [ebp - 0xc10]
push 1
push dword [esi]
call fcn.01002bb8
mov edi, eax
test edi, edi
jl 0x1003645
inc dword [ebp - 0xc08]
mov ebx, dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc08]
add ebx, 0x24
cmp eax, dword [ebp + 0x10]
mov dword [ebp - 0xc1c], ebx
jb 0x100336c
jmp 0x1003645
mov eax, dword [ebp - 0xc18]
mov ecx, dword [ebp - 0xc08]
and dword [eax + ecx*4], 0
mov eax, dword [ebp - 0xc10]
mov eax, dword [eax]
cmp eax, 0x3e8
jae 0x100365e
test eax, eax
je 0x100365e
mov dword [ebp - 0xc30], eax
test edi, edi
jl 0x1003740
and dword [ebp - 0xc08], 0
cmp dword [ebp + 0x10], 0
jbe 0x1003707
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0xc2c]
neg esi
sbb esi, esi
and esi, 3
inc esi
add ebx, 0xc
cmp dword [ebx], esi
je 0x10036c6
mov ecx, dword [ebp - 0xc08]
lea eax, [ebp - 0xc54]
push eax
mov eax, dword [ebp - 0xc18]
push dword [eax + ecx*4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10036dc
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0xc50]
mov dword [ebx], eax
je 0x10036c2
cmp eax, 1
je 0x1003734
cmp eax, esi
jne 0x1003707
inc dword [ebp - 0xc08]
mov eax, dword [ebp - 0xc08]
add ebx, 0x24
cmp eax, dword [ebp + 0x10]
jb 0x100368b
jmp 0x1003707
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x10000
jae 0x1003703
call esi
test eax, eax
jle 0x1003703
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1003707
call esi
mov edi, eax
test edi, edi
jl 0x1003740
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0xc08], eax
je 0x1003740
mov ebx, dword [ebp - 0xc30]
mov esi, dword [ebp - 0xc10]
cmp ebx, dword [esi]
ja 0x100373b
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [esi], ebx
jmp 0x1003666
mov edi, 0x80070426
jmp 0x1003740
mov edi, 0x8007041d
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x1003761
mov eax, dword [ebp - 0xc18]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x100375b
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x1003747
push dword [ebp - 0xc18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
cmp dword [ebp - 0xc0c], 0
je 0x100378e
lea eax, [ebp - 0x404]
cmp dword [ebp - 0xc0c], eax
je 0x100378e
push dword [ebp - 0xc0c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.010051f3
leave
ret 0x18