Function at 0x409290
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x41d9f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov al, byte [esp + 0x58]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x3c], al
call fcn.0040cc10
mov edi, 0x401008
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x401008
lea ecx, [esp + 0x40]
call fcn.0040cc60
mov cl, byte [esp + 0x68]
push ebx
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], ebx
call fcn.0040cc10
mov edi, 0x401008
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x401008
lea ecx, [esp + 0x20]
call fcn.0040cc60
push 0xf003f
push ebx
push ebx
mov byte [esp + 0x6c], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
jne 0x40933c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x4035d0
jmp 0x409371
push 0x4035b0
call fcn.00414d8e
add esp, 4
push 0xf01ff
push 0x4035a8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
cmp ebp, ebx
jne 0x4093c6
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push esi
call edi
push 0x403594
call fcn.00414d8e
mov esi, dword [esp + 0x6c]
mov dl, byte [esp + 0x1c]
add esp, 4
mov ecx, esi
mov byte [esi], dl
push ebx
call fcn.0040cc10
mov eax, dword [0x407740]
lea ecx, [esp + 0x18]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0040c540
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0
call fcn.0040cc10
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040cc10
jmp 0x409610
push 0x40357c
call fcn.00414d8e
add esp, 4
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dl, byte [esp + 0x68]
push ebx
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x2c], dl
call fcn.0040cc10
mov edi, 0x401008
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x401008
lea ecx, [esp + 0x30]
call fcn.0040cc60
lea eax, [esp + 0x14]
mov bl, 2
push eax
push 0x400
push esi
push 1
push ebp
mov byte [esp + 0x74], bl
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
je 0x40955e
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.0040cc60
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, edi
jbe 0x409560
mov eax, dword [0x407740]
push 1
lea ecx, [esp + 0x17]
push eax
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f], 0x24
call fcn.0040c9d0
mov edx, dword [0x407740]
inc eax
push edx
push eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x40]
push eax
call fcn.0040c190
mov ecx, dword [0x407740]
mov byte [esp + 0x60], 3
push ecx
push edi
push eax
lea ecx, [esp + 0x34]
call fcn.0040c540
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], bl
call fcn.0040cc10
mov eax, dword [0x407740]
push 1
lea edx, [esp + 0x17]
push eax
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x1f], 0x5f
call fcn.0040c9d0
push eax
lea eax, [esp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x34]
call fcn.0040c190
mov ecx, dword [0x407740]
mov byte [esp + 0x60], 4
push ecx
mov ecx, dword [esp + 0x70]
push edi
push eax
call fcn.0040c540
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], bl
call fcn.0040cc10
mov eax, dword [0x407740]
push 1
lea edx, [esp + 0x70]
push eax
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 0x5f
call fcn.0040c9d0
mov ecx, dword [0x407740]
inc eax
push ecx
lea edx, [esp + 0x4c]
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.0040c190
mov ecx, dword [0x407740]
mov byte [esp + 0x60], 5
push ecx
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0040c540
mov byte [esp + 0x60], bl
push 1
lea ecx, [esp + 0x4c]
call fcn.0040cc10
jmp 0x409560
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x68]
mov dl, byte [esp + 0x18]
push edi
mov ecx, esi
mov byte [esi], dl
call fcn.0040cc10
mov eax, dword [0x407740]
lea ecx, [esp + 0x18]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0040c540
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
je 0x4095b0
mov al, byte [ecx - 1]
test al, al
je 0x4095a6
cmp al, 0xff
je 0x4095a6
dec al
mov byte [ecx - 1], al
jmp 0x4095b0
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
cmp ecx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x4095e0
mov al, byte [ecx - 1]
test al, al
je 0x4095d6
cmp al, 0xff
je 0x4095d6
dec al
mov byte [ecx - 1], al
jmp 0x4095e0
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
cmp ecx, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x409610
mov al, byte [ecx - 1]
test al, al
je 0x409606
cmp al, 0xff
je 0x409606
dec al
mov byte [ecx - 1], al
jmp 0x409610
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x58]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret