Function at 0x40263c
Capabilities:
Query service configuration
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40912e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x20bc
call fcn.00403580
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x102c], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x24], 0
push str.wuauserv
call fcn.00402d9f
add esp, 4
mov dword [ebp - 0x1030], eax
cmp dword [ebp - 0x1030], 0
jbe 0x4026c5
cmp dword [ebp - 0x1030], 4
je 0x4026c5
push str.GetServiceStartRegKey_finds_that_wuauserv_is_enabled
call fcn.00401000
add esp, 4
mov al, 1
jmp 0x40294b
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4026e4
xor al, al
jmp 0x40294b
cmp dword [0x40daa8], 3
jne 0x4026fa
push str.OpenSCManager_is_successfull_
call fcn.00401000
add esp, 4
mov dword [ebp - 4], 0
push 0xf01ff
push str.wuauserv
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402752
push 0x40000000
push str.wuauserv
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402752
push 0x2001c
push str.wuauserv
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402773
cmp dword [0x40daa8], 3
jne 0x40276e
push str.Service_cannot_be_opened_
call fcn.00401000
add esp, 4
jmp 0x4028ed
lea eax, [ebp - 0x104c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1048], 4
jne 0x4027ac
mov byte [ebp - 0x24], 1
cmp dword [0x40daa8], 3
jne 0x4027a7
push str.Service_is_running...
call fcn.00401000
add esp, 4
jmp 0x4028ed
cmp dword [0x40daa8], 3
jne 0x4027c2
push str.Checking_service_startup_status...
call fcn.00401000
add esp, 4
mov byte [ebp - 4], 1
lea edx, [ebp - 0x1028]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], 0x1000
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x4027f9
mov byte [ebp - 0x1c], 1
jmp 0x402886
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x102c], eax
cmp dword [0x40daa8], 3
jne 0x402838
mov ecx, dword [ebp - 0x102c]
push ecx
push str.QueryServiceConfig_error__d_n
lea edx, [ebp - 0x204c]
push edx
call fcn.0040352b
add esp, 0xc
lea eax, [ebp - 0x204c]
push eax
call fcn.00401000
add esp, 4
cmp dword [ebp - 0x102c], 0x7a
jne 0x402886
cmp dword [0x40daa8], 3
jne 0x402857
push str.Before_QueryServiceConfig
call fcn.00401000
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x402882
jmp 0x402886
mov byte [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0xff
test eax, eax
je 0x4028de
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2050], edx
cmp dword [0x40daa8], 3
jne 0x4028d1
mov eax, dword [ebp - 0x2050]
push eax
push str.Service_auto_start:__d_n
lea ecx, [ebp - 0x20cc]
push ecx
call fcn.0040352b
add esp, 0xc
lea edx, [ebp - 0x20cc]
push edx
call fcn.00401000
add esp, 4
cmp dword [ebp - 0x2050], 4
je 0x4028de
mov byte [ebp - 0x24], 1
jmp 0x4028e6
mov dword [ebp - 4], 0
jmp 0x4028f5
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 4
cmp dword [ebp - 0x14], 0
je 0x402913
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40291b
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 6
cmp dword [ebp - 0x20], 0
je 0x402939
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402941
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret