Function at 0x4ef170
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x547ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
push reloc.WSOCK32.dll_accept
push 0
xor esi, esi
xor bl, bl
push 0
mov dword [esp + 0x24], esi
mov byte [esp + 0x22], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x4ef3cd
push accept
push 0x46d8fc
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x4ef3b9
lea eax, [esp + 0x1c]
push eax
push 0
push 0
mov dword [esp + 0x28], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push edi
call esi
test eax, eax
jne 0x4ef3ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4ef3ae
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ef3ae
push eax
call fcn.00528917
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4ef3ae
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push edi
call esi
test eax, eax
je 0x4ef3ae
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 4], 2
jne 0x4ef3ae
mov edx, ecx
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x3c]
call fcn.004bc7b0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x64], 0
mov byte [esp + 0x17], 0x22
mov eax, edx
cmp ecx, 0x10
jae 0x4ef28b
lea eax, [esp + 0x40]
mov ebx, dword [esp + 0x50]
lea esi, [eax + ebx]
mov dword [esp + 0x28], esi
test esi, esi
je 0x4ef2ba
mov eax, edx
cmp ecx, 0x10
jae 0x4ef2a5
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x4ef2ba
mov eax, edx
cmp ecx, 0x10
jae 0x4ef2b4
lea eax, [esp + 0x40]
add eax, ebx
cmp esi, eax
jbe 0x4ef2cb
call fcn.00526bf6
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov eax, edx
cmp ecx, 0x10
jae 0x4ef2d6
lea eax, [esp + 0x40]
lea edi, [eax + ebx]
test edi, edi
je 0x4ef2fd
mov eax, edx
cmp ecx, 0x10
jae 0x4ef2e8
lea eax, [esp + 0x40]
cmp eax, edi
ja 0x4ef2fd
mov eax, edx
cmp ecx, 0x10
jae 0x4ef2f7
lea eax, [esp + 0x40]
add eax, ebx
cmp edi, eax
jbe 0x4ef30e
call fcn.00526bf6
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
lea ebp, [esp + 0x3c]
cmp ecx, 0x10
jb 0x4ef3ee
mov esi, edx
test edx, edx
je 0x4ef341
mov eax, edx
cmp ecx, 0x10
jae 0x4ef32c
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x4ef341
mov eax, edx
cmp ecx, 0x10
jae 0x4ef33b
lea eax, [esp + 0x40]
add eax, ebx
cmp esi, eax
jbe 0x4ef346
call fcn.00526bf6
lea ecx, [esp + 0x17]
push ecx
push edi
push ebp
lea eax, [esp + 0x48]
push esi
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004ef090
mov ecx, dword [esp + 0x40]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 0x18
push ecx
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.004eefb0
lea ecx, [esp + 0x38]
call fcn.004bba00
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x38]
test al, al
je 0x4ef39d
mov byte [esp + 0x16], 1
call fcn.004bbaf0
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov bl, byte [esp + 0x16]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x18]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4ef3cd
push esi
call fcn.00526d54
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00526a8a
add esp, 0x54
ret
lea esi, [esp + 0x40]
jmp 0x4ef321