Function at 0x411770
Capabilities:
Enumerate services
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43b018
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44aba4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 6
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x28], esi
jne 0x4117ce
push 0x443220
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp byte [esp + 0x5c], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
push edi
jne 0x411806
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push 3
push 0x3b
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x443248
call ebp
jmp 0x411830
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push 1
push 0x3b
push esi
call edi
push 0x443258
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00415b70
add esp, 4
xor ecx, ecx
cmp byte [esp + 0x5c], 1
push ecx
mov ebx, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
jne 0x411865
push 3
jmp 0x411867
push 1
push 0x3b
push esi
call edi
cmp dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
jbe 0x411a31
mov esi, ebx
mov dword [esp + 0x1c], esi
jmp 0x41189a
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
push edx
call ebp
push 0x443268
call ebp
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x24]
call fcn.0040de10
mov dword [esp + 0x50], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4118e5
cmp eax, dword [esi]
jne 0x4118e5
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41191b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x411a4e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00420a3e
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], 1
mov byte [esp + 0x50], 1
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
lea esi, [eax - 0x10]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x411953
cmp eax, dword [esi]
jne 0x411953
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x411989
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x411a4e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.00420a3e
add esp, 0x10
lea ebp, [edi + 0x10]
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x30], 1
mov ebx, dword [esp + 0x58]
lea eax, [esp + 0x2c]
push eax
lea edi, [esp + 0x40]
mov byte [esp + 0x54], 2
call fcn.00413830
lea eax, [ebp - 0x10]
mov byte [esp + 0x50], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119eb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 0x24
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jb 0x411890
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
jmp fcn.0040dc10