Function at 0x4186d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445a08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45d0bc]
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 0x418787
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 0x418732
call edi
cmp dword [ebp - 0x28], 2
jne 0x4187a7
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 0x41877e
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41877e
call edi
cmp dword [ebp - 0x28], 4
je 0x4187a7
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [esi + 0xd4]
jge 0x418795
inc ecx
jmp 0x418704
push dword [ebp + 8]
mov ecx, esi
call fcn.004189a0
test eax, eax
jne 0x418982
xor ecx, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x41882c
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 0x4187d7
call edi
cmp dword [ebp - 0x28], 3
jne 0x41884c
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 0x418823
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x418823
call edi
cmp dword [ebp - 0x28], 1
je 0x41884c
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [esi + 0xd8]
jge 0x41883a
inc ecx
jmp 0x4187a9
push dword [ebp + 8]
mov ecx, esi
call fcn.00418ac0
test eax, eax
jne 0x418982
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.00417be0
test eax, eax
jne 0x41897a
test byte [ebp - 0x34], 0xb
jne 0x41897a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4188bb
mov dword [esi + 0xc8], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0x447ac0
push 0
push 0x1000
push dword [esi + 0xc8]
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0x24
push eax
call fcn.00422310
add esp, 0x10
test eax, eax
je 0x41891a
push 0
push 0x100000
push dword [esi + 0xc8]
lea eax, [ebp - 0x40]
push eax
call fcn.00422310
add esp, 0x10
test eax, eax
je 0x41891a
cmp dword [ebp - 0x30], 4
mov dword [esi + 0xc8], 0
jmp 0x41891e
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 0x418952
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x418952
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x418952
call fcn.00406f80
mov al, byte [ebp - 0x35]
mov dword [ebp - 4], 0xffffffff
cmp al, 1
je 0x41897c
cmp edi, dword [esi + 0xd0]
jge 0x41897c
push dword [esi + 0xcc]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x418850
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.00424185
mov esp, ebp
pop ebp
ret 4