Function at 0x4879b0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x694ace
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa4]
push dword [esp + 0x28]
mov dword [esp + 0x30], ebx
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
call fcn.0044b890
mov eax, dword [ebx]
lea ecx, [esp + 0x38]
add esp, 8
mov dword [ebx + 4], eax
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x44], 7
push 0xc
push 0x6eb9d0
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.00409260
mov dword [esp + 0x9c], 0
mov eax, dword [0x74fd44]
test al, 1
jne 0x487a89
or eax, 1
mov dword [0x74fd44], eax
mov byte [esp + 0x9c], 1
mov dword [0x74fd40], 0
call fcn.004375a0
push 0x6b5140
call fcn.00547b44
add esp, 4
mov byte [esp + 0x9c], 0
lea eax, [esp + 0x30]
mov ecx, 0x74fd40
push eax
call fcn.00437760
mov edi, eax
mov dword [esp + 0x9c], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x487ab8
push dword [esp + 0x30]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
test edi, edi
je 0x487d72
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerW
push edi
call esi
push str.EnumServicesStatusW
push edi
mov ebp, eax
call esi
push str.OpenServiceW
push edi
mov ebx, eax
call esi
push str.QueryServiceConfigW
push edi
mov dword [esp + 0x2c], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [esp + 0x1c], eax
call esi
mov esi, eax
mov dword [esp + 0x20], esi
test ebp, ebp
je 0x487d72
test ebx, ebx
je 0x487d72
cmp dword [esp + 0x24], 0
je 0x487d72
cmp dword [esp + 0x14], 0
je 0x487d72
test esi, esi
je 0x487d72
push 4
push 0
push 0
call ebp
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x487d72
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x58], 0
push eax
push 0
push 0
push 3
push 0x30
push ebp
call ebx
test eax, eax
jne 0x487d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x487d6f
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ca65e
add esp, 4
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x28], edi
push 0
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push edi
push 3
push 0x30
push ebp
call ebx
cmp eax, 1
jne 0x487d66
mov ebp, 0x2800
push ebp
call fcn.004ca65e
add esp, 4
mov dword [esp + 0x18], 0
cmp dword [esp + 0x50], 0
mov esi, eax
jbe 0x487d55
push ebp
push 0
push esi
call fcn.00549c70
xor eax, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
add esp, 0xc
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov dword [esp + 0x9c], 2
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov dword [esp + 0x9c], 4
cmp dword [edi + 0xc], 4
push 5
push dword [edi]
sete al
push dword [esp + 0x24]
mov dword [esp + 0x90], eax
call dword [esp + 0x30]
mov ebx, eax
test ebx, ebx
je 0x487d22
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
push 0
push 0
push ebx
call dword [esp + 0x24]
cmp dword [esp + 0x4c], 0
jbe 0x487d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x487d22
mov eax, dword [esp + 0x4c]
cmp eax, ebp
jbe 0x487cde
push esi
mov ebp, eax
call fcn.005ad770
push ebp
call fcn.004ca65e
push ebp
mov esi, eax
push 0
push esi
call fcn.00549c70
mov eax, dword [esp + 0x60]
add esp, 0x14
lea ecx, [esp + 0x4c]
push ecx
push eax
push esi
push ebx
call dword [esp + 0x24]
test eax, eax
je 0x487d22
push dword [edi]
lea ecx, [esp + 0x58]
call fcn.00408cf0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x487d0a
push eax
lea ecx, [esp + 0x70]
call fcn.00408cf0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x54]
push eax
call fcn.0048ed80
push ebx
call dword [esp + 0x24]
mov dword [esp + 0x9c], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0042a4e0
mov eax, dword [esp + 0x18]
add edi, 0x24
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x50]
jb 0x487c02
mov edi, dword [esp + 0x28]
push esi
call fcn.005ad770
mov ebp, dword [esp + 0x20]
add esp, 4
mov esi, dword [esp + 0x20]
push edi
call fcn.005ad770
add esp, 4
push ebp
call esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005472b9
add esp, 0x8c
ret 4