Function at 0x4580ac
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x45822e
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x84], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x458192
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x458183
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x458149
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 3
jg 0x458181
push 1
push 0x4d25
push 0x3960
push 0xd49
push 1
push 0x48e9
push 0
push 0x3e34
push 0x4157
push 1
call fcn.00450e2b
add esp, 0x28
jmp 0x45813e
jmp 0x45818d
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x458229
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x4581fe
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x4581fc
push 1
push 0x49b3
push 1
push 0
push 0x5bb5
push 0x3484
call fcn.0044e985
add esp, 0x18
jmp 0x458229
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x9c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x4583f0
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x458284
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push 0x4c22
push 1
push 0x96
call fcn.0043c2f5
add esp, 0x10
jmp 0x4583f0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x4582cc
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4582c7
push 0x220
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
jmp 0x4583f0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 8]
add ecx, dword [edx]
cmp dword [eax], ecx
jl 0x45838a
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x61ec
jge 0x458339
mov dword [ebp - 0x18], 1
jmp 0x45833d
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0xffffffff
jbe 0x45834c
mov dword [ebp - 0x14], 1
jmp 0x458350
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0xfffffffa
jl 0x45836a
mov dword [ebp - 0xa0], 1
jmp 0x458371
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x458381
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x45838a
and dword [ebp - 0xa8], 0
jmp 0x458394
mov dword [ebp - 0xa8], 1
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4583a9
push 0xfffffffffffffffa
pop eax
test eax, eax
jne 0x4583a9
and dword [ebp - 0x1c], 0
jmp 0x4583b0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x9e88
je 0x4583d2
mov dword [ebp - 0xb8], 1
jmp 0x4583d9
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc0]
mov dword [eax], 0xfffffff6
mov esp, ebp
pop ebp
ret