Function at 0x410e50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x424284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x230], 0
cmp edi, 1
jge 0x410e97
call fcn.00408460
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
mov eax, 1
call fcn.0040c9c0
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
jne 0x410ed7
push 0x400001fb
call fcn.004147fb
add eax, 0x40
push eax
call fcn.00402220
add esp, 8
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
call fcn.00408bd0
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], eax
test edi, edi
jle 0x41109f
jmp 0x410f00
mov ecx, dword [ebp - 0x240]
mov eax, dword [ecx + eax*4]
push 0x100
lea edx, [ebp - 0x208]
push edx
push 4
push eax
push esi
call fcn.0040c9f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x410f32
inc dword [ebp - 0x230]
jmp 0x41107d
lea eax, [ebp - 0x244]
push eax
push 0x24
lea ecx, [ebp - 0x22c]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x410f90
mov edi, ebx
call fcn.00402080
push eax
lea edx, [ebp - 0x208]
push edx
push str._s:__s_n
call fcn.004147fb
add eax, 0x40
push eax
call fcn.00414cb9
add esp, 0x10
inc dword [ebp - 0x230]
jmp 0x41107d
push 0x40
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.0041a110
mov eax, dword [ebp - 0x210]
add esp, 0xc
mov dword [ebp - 0x27c], eax
test eax, eax
je 0x41107d
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x284], eax
test eax, eax
jne 0x411003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
mov ecx, dword [ebp - 0x27c]
push eax
push ecx
lea edx, [ebp - 0x208]
push edx
push str._s:__lu:__s_n
call fcn.004147fb
add eax, 0x40
push eax
call fcn.00414cb9
add esp, 0x14
jmp 0x41107d
lea ecx, [ebp - 0x25c]
push ecx
push eax
call fcn.00408da0
add esp, 8
test eax, eax
jne 0x41107d
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.0040db30
mov esi, eax
test esi, esi
jne 0x411037
inc dword [ebp - 0x230]
jmp 0x41107d
lea eax, [ebp - 0x208]
push eax
push 0x4200a8
push 0xffffffffffffffff
lea edi, [esi + 2]
push 0x100
push edi
call fcn.004149b0
mov ecx, dword [ebp - 0x27c]
add esp, 0x14
push ecx
lea edx, [ebp - 0x288]
push edx
push 0x4097d0
push esi
mov dword [ebp - 0x288], edi
call fcn.00409420
add esp, 0x10
call fcn.0040db70
mov eax, dword [ebp - 0x238]
mov esi, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x238], eax
cmp eax, dword [ebp + 8]
jl 0x410f00
mov ebx, dword [ebp - 0x23c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, 0xffffffff
je 0x4110b2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x230]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041427b
mov esp, ebp
pop ebp
ret