Function at 0x401750
Capabilities:
Enumerate services
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b35c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push esi
push esi
push esi
call fcn.00403510
add esp, 0x10
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x4017bf
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
cmp edi, esi
je 0x401960
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x401960
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x24]
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea ecx, [ebp - 0x18]
push edx
push ecx
push esi
push esi
push 3
push 0x30
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
jne 0x401817
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x401817
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x401801
call edi
mov dword [ebx], eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x38e38e39
mul dword [ebp - 0x18]
shr edx, 3
inc edx
lea esi, [edx + edx*8]
shl esi, 2
push esi
call fcn.00404a9d
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp - 0x18], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [ebp - 0x28]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push esi
push eax
push 3
xor edi, edi
push 0x30
push ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call ebx
test eax, eax
jne 0x401892
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0xfffffffe
cmp esi, edi
je 0x401946
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x401946
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp ebx, dword [ebp - 0x20]
jge 0x401944
mov eax, dword [ebp - 0x18]
lea edx, [ebx + ebx*8]
push 0x411728
mov esi, dword [eax + edx*4]
push esi
call fcn.00405a70
add esp, 8
test eax, eax
jne 0x401913
mov ecx, dword [ebp + 8]
push ecx
push esi
call fcn.00405a70
add esp, 8
test eax, eax
je 0x401913
mov edx, dword [ebp - 0x1c]
push 4
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40192b
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401916
mov ecx, dword [ebp - 0x40]
test edi, edi
mov dword [ebp - 0x14], ecx
je 0x401906
mov edx, dword [ebp - 0x3c]
and edx, 0xffff
shl edx, 0x10
mov dword [edi], edx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x14], 4
je 0x401944
inc ebx
jmp 0x401897
test edi, edi
mov dword [ebp - 0x14], 0xfffffffc
je 0x401906
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x401906
test edi, edi
mov dword [ebp - 0x14], 0xfffffffd
je 0x401913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
inc ebx
jmp 0x401897
xor edi, edi
mov eax, dword [ebp - 0x18]
push eax
call fcn.00404a92
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, edi
je 0x401960
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.004031b0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8