Function at 0x4057b0
Capabilities:
Query service status

Disassembly:
jmp 0x4057b0
push 0xffffffffffffffff
push 0x434570
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43f1c0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
xor ebx, ebx
cmp esi, ebx
jne 0x405806
xor eax, eax
jmp 0x405b17
mov eax, 0xf
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [edi], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
push 0x10
push str.GetSvrStartType_
lea ecx, [esp + 0x68]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.0040108c
mov eax, esi
mov byte [esp + 0xa8], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x405858
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.004011f4
push 3
push 0x438814
lea ecx, [esp + 0x68]
call fcn.004011f4
xor eax, eax
push 0x20000
push str.ServicesActive
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
jne 0x40595f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x80]
push 0x4387f0
push eax
call fcn.0040c979
mov edx, dword [esp + 0x70]
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x78], edi
jae 0x4058ee
lea edx, [esp + 0x64]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4058f3
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.0040108c
push 0x20
push str.OpenSCManager_FAILED_with_ErrNo
lea ecx, [esp + 0x4c]
call fcn.004011f4
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405920
sub eax, edx
push eax
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004011f4
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x40594b
lea eax, [esp + 0x48]
push ebx
push eax
push str.UtlSvrHelp
call fcn.00401217
add esp, 0xc
jmp 0x405add
push 0x20004
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x405a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x80]
push 0x4387f0
push edx
call fcn.0040c979
mov edx, dword [esp + 0x70]
add esp, 0xc
cmp dword [esp + 0x78], 0x10
jae 0x4059a3
lea edx, [esp + 0x64]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4059a8
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.0040108c
push 0xc
push str.OpenService_
lea ecx, [esp + 0x4c]
call fcn.004011f4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4059d3
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.004011f4
push 0x14
push str.__FAILED_with_ErrNo
lea ecx, [esp + 0x4c]
call fcn.004011f4
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405a00
sub eax, edx
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x4c]
call fcn.004011f4
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x405a2c
lea eax, [esp + 0x48]
push ebx
push eax
push str.UtlSvrHelp
call fcn.00401217
add esp, 0xc
jmp 0x405ac4
lea ecx, [esp + 0x18]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x405ab6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x80]
push 0x4387f0
push eax
call fcn.0040c979
mov eax, dword [esp + 0x70]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x78], esi
jae 0x405a87
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
call fcn.004010b9
push str.QueryServiceStatusEx_FAILED_with_ErrNo
lea ecx, [esp + 0x48]
call fcn.0040114a
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x48]
call fcn.0040114a
cmp dword [esp + 0x5c], esi
jmp 0x405a22
mov edx, dword [esp + 0x24]
mov dword [edi], edx
mov dword [esp + 0x14], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x405ad8
push eax
call esi
mov edi, 0x10
cmp dword [esp + 0x78], edi
jb 0x405af0
mov eax, dword [esp + 0x64]
push eax
call fcn.0040c526
add esp, 4
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jb 0x405b13
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040c526
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0040c96a
add esp, 0x98
ret