Function at 0x41a014
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 4
call fcn.00430d7d
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
push connect
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a086
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a27c
mov dword [ebp - 0x1c], esp
push 1
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a0bf
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41a25a
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 1
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a101
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [0x9c8004]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a120
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0xc]
push 8
push dword [ebp - 0x20]
xor eax, eax
call dword [0x9c8008]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x41a14d
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 1
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a181
push 6
call fcn.00430d71
add esp, 4
test eax, eax
je 0x41a1ec
mov dword [ebp - 0x1c], esp
push 4
push dword [ebp - 0x10]
push dword [ebp - 0x14]
xor eax, eax
call dword [0x9c800c]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a1b3
push 6
call fcn.00430d71
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x41a1d7
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41a1e8
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a20e
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [0x9c8004]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a22d
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x20]
xor eax, eax
call dword [0x9c8010]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x41a25a
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41a27c
push 6
call fcn.00430d71
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a298
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41a29d
push eax
mov ebx, dword [ebp - 0x14]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41a2b2
push ebx
call fcn.00430d89
add esp, 4
pop ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41a2cb
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4