Function at 0x403120
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x420348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x429874]
push ebx
push esi
mov dword [esp + 0x64], eax
mov esi, ecx
mov al, byte [esi + 0x3c]
xor ebx, ebx
test al, al
mov dword [esp + 0x70], ebx
jne 0x403170
cmp dword [esp + 0x90], 0x10
jb 0x403169
mov eax, dword [esp + 0x7c]
push eax
call fcn.0041a20d
add esp, 4
xor al, al
jmp 0x40335c
push ebp
lea ecx, [esp + 0x2c]
call fcn.00412350
push 1
push ebx
push ebx
mov byte [esp + 0x80], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
jne 0x4031cb
push ebx
push 0xc0000019
lea ecx, [esp + 0x34]
call fcn.00412890
lea ecx, [esp + 0x2c]
call fcn.00402980
cmp dword [esp + 0x94], 0x10
jb 0x4031c4
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0041a20d
add esp, 4
xor al, al
jmp 0x40335b
cmp dword [esi + 0x18], 0x10
jb 0x4031d6
mov esi, dword [esi + 4]
jmp 0x4031d9
add esi, 4
push edi
push 1
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
jne 0x40322c
push ebx
push 0xc0000020
lea ecx, [esp + 0x38]
call fcn.00412890
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x30]
call fcn.00402980
cmp dword [esp + 0x98], 0x10
jb 0x403358
mov edx, dword [esp + 0x84]
push edx
call fcn.0041a20d
add esp, 4
jmp 0x403358
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x40325f
push ebx
push 0xc0000030
lea ecx, [esp + 0x38]
call fcn.00412890
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebp
call esi
jmp 0x403343
lea eax, [esp + 0x10]
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40329c
push ebx
push 0xc0000029
lea ecx, [esp + 0x38]
call fcn.00412890
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebp
call esi
jmp 0x403343
mov ecx, dword [esi + 0xc]
push ecx
call fcn.00412a90
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
mov ecx, dword [esi + 0xc]
cmp byte [ecx], 0x22
mov eax, ecx
mov byte [esp + 0x78], 2
lea ebx, [eax + 1]
jne 0x4032e0
jmp 0x4032d0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032d0
sub eax, ebx
add eax, 0xfffffffe
inc ecx
jmp 0x4032e9
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032e0
sub eax, ebx
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401480
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebp
call esi
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x18]
call fcn.00402890
test eax, eax
lea ecx, [esp + 0x14]
jne 0x40333e
call fcn.00401350
lea ecx, [esp + 0x30]
call fcn.00402980
lea ecx, [esp + 0x80]
call fcn.00401350
mov al, 1
jmp 0x40335a
call fcn.00401350
lea ecx, [esp + 0x30]
call fcn.00402980
lea ecx, [esp + 0x80]
call fcn.00401350
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x68]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x60]
pop ebx
call fcn.0040612e
add esp, 0x6c
ret 0x1c