Function at 0x45d7d0
Capabilities:
Enumerate services
Query service configuration
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563471
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1064
call fcn.0053aa40
mov eax, dword [0x5af710]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor eax, ebp
mov edi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x101c], esi
call fcn.005040f5
test eax, eax
je 0x45dc08
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov byte [ebp - 0x1018], 0
mov edx, dword [ebp - 0x1018]
push edx
push eax
push ecx
call fcn.0045d4f0
mov eax, dword [edi + 4]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
je 0x45d851
push eax
call fcn.0055047a
add esp, 4
cmp esi, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
je 0x45d860
mov dword [esi], ebx
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x1030], esi
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x45dc08
lea eax, [ebp - 0x103c]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1020]
push edx
mov edx, dword [ebp + 8]
push 0x24
lea eax, [ebp - 0x1074]
push eax
push ecx
push edx
push esi
mov dword [ebp - 0x103c], ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
cmp eax, ebx
jne 0x45dbfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45dbfd
mov eax, 0x38e38e39
mul dword [ebp - 0x1020]
mov esi, edx
shr esi, 3
inc esi
push esi
lea ecx, [ebp - 0x1038]
call fcn.0045c770
mov eax, dword [ebp - 0x1038]
cmp eax, ebx
mov byte [ebp - 4], 1
jne 0x45d900
mov eax, dword [ebp - 0x1030]
push eax
jmp 0x45dc02
lea ecx, [ebp - 0x103c]
push ecx
lea edx, [ebp - 0x1024]
push edx
lea ecx, [ebp - 0x1020]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esi + esi*8]
shl edx, 2
push edx
mov edx, dword [ebp - 0x1030]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov eax, dword [ebp - 0x101c]
cmp eax, ebx
je 0x45d944
mov ecx, dword [ebp - 0x1024]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1024]
push edx
mov ecx, edi
call fcn.0045d570
lea eax, [ebp - 0x1014]
mov ecx, eax
mov dword [ebp - 0x1040], eax
mov dword [ebp - 0x1044], ecx
xor esi, esi
mov eax, dword [ebp - 0x1024]
cmp esi, eax
mov dword [ebp - 0x1018], esi
jae 0x45db94
push 0x80
mov byte [ebp - 4], 2
call fcn.0055044f
add esp, 4
cmp eax, ebx
je 0x45d9c8
mov dword [eax + 0x14], ebx
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov byte [eax + 4], 0
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], 0
mov dword [eax + 0x50], ecx
mov dword [eax + 0x4c], ebx
mov byte [eax + 0x3c], 0
mov edi, eax
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x68], ebx
mov byte [eax + 0x58], 0
mov dword [ebp - 0x101c], edi
jmp 0x45d9f2
xor eax, eax
mov edi, eax
mov dword [ebp - 0x101c], edi
jmp 0x45d9f2
cmp edi, ebx
mov eax, dword [ebp - 0x1038]
mov dword [ebp - 4], 1
jne 0x45da24
cmp eax, ebx
je 0x45da10
push eax
call fcn.0055047a
add esp, 4
mov eax, dword [ebp - 0x1030]
cmp eax, ebx
je 0x45dc08
push eax
jmp 0x45dc02
lea edx, [esi + esi*8]
lea esi, [eax + edx*4]
mov edx, dword [esi]
cmp edx, ebx
jne 0x45da35
mov edx, 0x572aed
mov eax, edx
lea ebx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45da40
sub eax, ebx
push eax
push edx
mov ecx, edi
call fcn.00404640
mov edx, dword [esi + 4]
test edx, edx
jne 0x45da5e
mov edx, 0x572aed
mov eax, edx
lea ebx, [eax + 1]
lea ecx, [edi + 0x1c]
mov dword [ebp - 0x1048], ebx
lea esp, [esp]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x45da70
sub eax, dword [ebp - 0x1048]
push eax
push edx
call fcn.00404640
mov ecx, dword [esi + 8]
mov ebx, dword [ebp - 0x1030]
mov dword [edi + 0x70], ecx
mov edx, dword [esi + 0xc]
mov dword [edi + 0x7c], edx
mov eax, dword [esi]
push 1
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x1050], esi
test esi, esi
mov byte [ebp - 4], 4
jne 0x45dad3
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x45dac5
push eax
call fcn.0055047a
add esp, 4
test ebx, ebx
je 0x45dc08
push ebx
jmp 0x45dc02
mov ebx, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1020]
push ecx
push 0x1000
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x45db12
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x45dafd
mov eax, 0x572aed
push eax
lea ecx, [edi + 0x38]
call fcn.0040b8dc
mov edx, dword [ebx + 4]
mov dword [edi + 0x74], edx
mov eax, dword [ebx + 8]
mov dword [edi + 0x78], eax
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x45db67
push str.QueryServiceConfig2A
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45db67
lea ecx, [ebp - 0x1020]
push ecx
push 0x1000
lea edx, [ebp - 0x1014]
push edx
push 1
push esi
call eax
test eax, eax
je 0x45db67
mov eax, dword [ebp - 0x1044]
mov eax, dword [eax]
test eax, eax
jne 0x45db5e
mov eax, 0x572aed
push eax
lea ecx, [edi + 0x54]
call fcn.0040b8dc
mov edi, dword [ebp - 0x1028]
lea ecx, [ebp - 0x101c]
push ecx
mov ecx, edi
call fcn.0045d690
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x1018]
inc esi
xor ebx, ebx
jmp 0x45d968
jne 0x45dbe4
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov ecx, eax
mov byte [ebp - 0x1028], 0
mov edx, dword [ebp - 0x1028]
push edx
sub ecx, edi
sar ecx, 2
push ecx
push eax
push edi
call fcn.0045d6e0
mov eax, dword [ebp - 0x1038]
add esp, 0x10
cmp eax, ebx
je 0x45dbcf
push eax
call fcn.0055047a
add esp, 4
mov eax, dword [ebp - 0x1030]
cmp eax, ebx
je 0x45dbe0
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x45dc0b
mov eax, dword [ebp - 0x1038]
cmp eax, ebx
je 0x45dbf7
push eax
call fcn.0055047a
add esp, 4
mov esi, dword [ebp - 0x1030]
cmp esi, ebx
je 0x45dc08
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 0xc