Function at 0x406036
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x40605f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
push 1
push dword [ebp - 0x5c]
call fcn.004062e2
pop ecx
pop ecx
jmp 0x4062dd
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x4060fb
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x4060c7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xfffffff2
jge 0x4060f6
mov dword [ebp - 0x64], 1
cmp dword [ebp - 0x64], 0
je 0x4060de
jmp 0x4060f6
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4060f4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x4060bc
jmp 0x4062dd
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x40619d
mov eax, dword [ebp - 8]
cmp dword [eax], 1
je 0x40616b
mov dword [ebp - 0x4c], 1
jmp 0x40616f
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0x2803
je 0x406186
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x406186
and dword [ebp - 0x20], 0
jmp 0x40618d
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
add eax, 0x38e5161e
jne 0x40619d
and dword [ebp - 0x38], 0
jmp 0x4061a4
mov dword [ebp - 0x38], 1
push 0
mov ecx, dword [ebp - 0x90]
call fcn.00442139
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax]
jge 0x4061c1
mov dword [ebp - 0x28], 1
jmp 0x4061c5
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jne 0x4061d8
mov dword [ebp - 0x48], 1
jmp 0x4061dc
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xfffc
jae 0x4061ee
mov dword [ebp - 0x30], 1
jmp 0x4061f2
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xfffffff9
je 0x406206
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x406206
and dword [ebp - 0x1c], 0
jmp 0x40620d
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.00442139
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.00442139
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
je 0x406244
mov dword [ebp - 0x24], 1
jmp 0x406248
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jl 0x40625b
mov dword [ebp - 0x2c], 1
jmp 0x40625f
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 1
jle 0x40626e
mov dword [ebp - 0x34], 1
jmp 0x406272
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0x12d49381
jge 0x4062c9
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x406298
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jg 0x4062c7
mov dword [ebp - 0x98], 0x21ba52b3
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.00442139
cmp dword [eax], 0
je 0x4062c5
jmp 0x4062c7
jmp 0x40628d
jmp 0x4062dd
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.00442139
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret