Function at 0x404ac0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f161
mov eax, dword fs:[0]
push eax
mov eax, 0x2068
call fcn.00438e10
mov eax, dword [0x482524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x487a7c], 8
mov eax, 0x487a68
mov edi, dword [ebp + 8]
cmovae eax, dword [0x487a68]
xor ecx, ecx
mov dword [0x487a80], 0
mov byte [0x487a84], 0
mov dword [0x487a78], 0
mov word [eax], cx
mov dword [ebp - 0x2044], ecx
mov dword [ebp - 0x2040], ecx
push edi
mov dword [ebp - 4], ecx
push ecx
lea ecx, [ebp - 0x2044]
call fcn.00404810
mov esi, dword [ebp - 0x2040]
test al, al
jne 0x404b59
mov byte [ebp - 0x2039], 0
jmp 0x404e9b
test esi, esi
je 0x404e94
lea eax, [ebp - 0x2014]
mov byte [0x487a84], 1
push eax
push 0x24
lea eax, [ebp - 0x2038]
mov dword [ebp - 0x2018], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2014], 0
push 0
push esi
movups xmmword [ebp - 0x2038], xmm0
movups xmmword [ebp - 0x2028], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x404cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2074]
call fcn.00404170
push eax
mov edx, str.OpenService_failed_with_error
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x205c]
call fcn.00406a40
mov esi, eax
add esp, 4
cmp edi, esi
je 0x404c09
mov ecx, edi
call fcn.004043b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2048]
cmp edx, 8
jb 0x404c49
mov ecx, dword [ebp - 0x205c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404c3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ed8
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x2060]
xor eax, eax
mov dword [ebp - 0x204c], 0
mov dword [ebp - 0x2048], 7
mov word [ebp - 0x205c], ax
cmp edx, 8
jb 0x404ca6
mov ecx, dword [ebp - 0x2074]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404c9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404edd
push edx
push ecx
call fcn.00438535
add esp, 8
mov esi, dword [ebp - 0x2040]
mov byte [ebp - 0x2039], 0
jmp 0x404e9b
mov eax, dword [ebp - 0x2034]
push 0x2000
mov dword [0x487a80], eax
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.0043c350
add esp, 0xc
mov dword [ebp - 0x2014], 0
lea eax, [ebp - 0x2014]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x404de1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2074]
call fcn.00404170
push eax
mov edx, str.QueryServiceConfig2_failed_with_error
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x205c]
call fcn.00406a40
add esp, 4
mov ecx, edi
push eax
call fcn.00402970
mov edx, dword [ebp - 0x2048]
cmp edx, 8
jb 0x404d78
mov ecx, dword [ebp - 0x205c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404d6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ee2
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x2060]
xor eax, eax
mov dword [ebp - 0x204c], 0
mov dword [ebp - 0x2048], 7
mov word [ebp - 0x205c], ax
cmp edx, 8
jb 0x404dd5
mov ecx, dword [ebp - 0x2074]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404dcb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ee7
push edx
push ecx
call fcn.00438535
add esp, 8
mov byte [ebp - 0x2039], 0
jmp 0x404e9b
mov edx, dword [ebp - 0x1ff4]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404df0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x487a68
call fcn.00404010
cmp dword [0x487a7c], 8
mov ecx, 0x487a68
mov edx, dword [0x487a78]
cmovae ecx, dword [0x487a68]
push 2
push 0x475920
push ecx
call fcn.00402360
add esp, 0xc
test eax, eax
jne 0x404e94
push 0xffffffffffffffff
push 2
lea eax, [ebp - 0x2074]
mov ecx, 0x487a68
push eax
call fcn.004029b0
push eax
mov ecx, 0x487a68
call fcn.00402970
mov edx, dword [ebp - 0x2060]
cmp edx, 8
jb 0x404e94
mov ecx, dword [ebp - 0x2074]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404e8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404eec
push edx
push ecx
call fcn.00438535
add esp, 8
mov byte [ebp - 0x2039], 1
mov eax, dword [ebp - 0x2044]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x404eae
push eax
call edi
test esi, esi
je 0x404eb5
push esi
call edi
mov al, byte [ebp - 0x2039]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438524
mov esp, ebp
pop ebp
ret 4
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
int3