Function at 0x67a480
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68cde8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x67a537
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x67a4e2
call edi
cmp dword [ebp - 0x28], 2
jne 0x67a557
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
mov eax, 0x3e8
shr edx, 3
cmp edx, 0x3e8
cmovb edx, eax
mov eax, 0x2710
cmp edx, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 8]
test eax, eax
je 0x67a52e
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x67a52e
call edi
cmp dword [ebp - 0x28], 4
je 0x67a557
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [esi + 0xd4]
jge 0x67a545
inc ecx
jmp 0x67a4b4
push dword [ebp + 8]
mov ecx, esi
call fcn.0067a750
test eax, eax
jne 0x67a732
xor ecx, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x67a5dc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x67a587
call edi
cmp dword [ebp - 0x28], 3
jne 0x67a5fc
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
mov eax, 0x3e8
shr edx, 3
cmp edx, 0x3e8
cmovb edx, eax
mov eax, 0x2710
cmp edx, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 8]
test eax, eax
je 0x67a5d3
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x67a5d3
call edi
cmp dword [ebp - 0x28], 1
je 0x67a5fc
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [esi + 0xd8]
jge 0x67a5ea
inc ecx
jmp 0x67a559
push dword [ebp + 8]
mov ecx, esi
call fcn.0067a870
test eax, eax
jne 0x67a732
xor edi, edi
nop
push 1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
push eax
mov ecx, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.006798c0
test eax, eax
jne 0x67a72a
test byte [ebp - 0x34], 0xb
jne 0x67a72a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x67a66b
mov dword [esi + 0xc8], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], vtable.utils::CHandleGuard.0
push 0
push 0x1000
push dword [esi + 0xc8]
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0x24
push eax
call fcn.004d0c50
add esp, 0x10
test eax, eax
je 0x67a6ca
push 0
push 0x100000
push dword [esi + 0xc8]
lea eax, [ebp - 0x40]
push eax
call fcn.004d0c50
add esp, 0x10
test eax, eax
je 0x67a6ca
cmp dword [ebp - 0x30], 4
mov dword [esi + 0xc8], 0
jmp 0x67a6ce
cmp dword [ebp - 0x30], 1
setne byte [ebp - 0x35]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 0x25
mov dword [ebp - 0x40], vtable.utils::CHandleGuardImpl_struct_utils::DebugBreaker_.0
test eax, eax
je 0x67a702
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x67a702
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x67a702
call fcn.0044e7f0
mov al, byte [ebp - 0x35]
mov dword [ebp - 4], 0xffffffff
cmp al, 1
je 0x67a72c
cmp edi, dword [esi + 0xd0]
jge 0x67a72c
push dword [esi + 0xcc]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x67a600
mov al, 1
movzx eax, al
xor eax, 1
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.0048b49a
mov esp, ebp
pop ebp
ret 4