Function at 0x1000ad90
Capabilities:
Query service configuration

Disassembly:
sub esp, 0x560
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x279]
mov byte [esp + 0x278], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x574]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0x104
push eax
push ecx
mov byte [esp + 0x1f], 0
call dword [0x1001a27c]
lea edx, [esp + 0x174]
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
call fcn.10006450
mov edi, dword [0x1001a148]
add esp, 0xc
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push eax
call fcn.1000f070
mov esi, dword [0x1001a34c]
add esp, 4
test al, al
jne 0x1000ae74
lea ecx, [esp + 0x2c]
push 0x20
push ecx
call esi
add esp, 8
test eax, eax
je 0x1000ae74
lea edx, [esp + 0x2c]
mov byte [eax], 0
push edx
call fcn.1000f070
add esp, 4
test al, al
je 0x1000ae50
lea eax, [esp + 0x2c]
push eax
call fcn.1000f070
add esp, 4
test al, al
jne 0x1000ae92
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x278]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push 0x2e
push eax
lea ebp, [esp + 0x34]
call esi
add esp, 8
test eax, eax
je 0x1000afb6
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x1000afb6
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edx
call ebp
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x37c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x37c]
push eax
push 0x10022e08
push ecx
call dword [0x1001a4b0]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x37c]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebx
test eax, eax
je 0x1000af5a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x560
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov ebx, dword [0x1001a350]
lea edx, [esp + 0x2c]
push 0x10022e04
push edx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1000afbc
lea eax, [esp + 0x2c]
push 0x10021a34
push eax
call ebx
add esp, 8
mov ebp, eax
jmp 0x1000afbc
mov ebx, dword [0x1001a350]
mov ecx, dword [esp + 0x574]
push 0x10022df4
push ecx
call ebx
add esp, 8
test eax, eax
je 0x1000b032
mov edi, 0x10021a00
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x174]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10023ff0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
jne 0x1000b059
mov esi, dword [0x1001a12c]
lea eax, [esp + 0x2c]
push 0x10021a00
push eax
call esi
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call esi
jmp 0x1000b068
lea eax, [esp + 0x174]
push eax
push ebp
call dword [0x1001a148]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x578]
mov dword [esp + 0x130], 0x44
test eax, eax
je 0x1000b09b
mov dword [esp + 0x138], 0x10021a04
jmp 0x1000b0a6
mov dword [esp + 0x15c], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x130]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push 0
push eax
push 0
call dword [0x1001a160]
test eax, eax
je 0x1000b0e9
mov ecx, dword [esp + 0x20]
mov esi, dword [0x1001a11c]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x574]
push 0x10022de8
push eax
call ebx
add esp, 8
test eax, eax
je 0x1000b111
push 4
lea ecx, [esp + 0x27c]
push 0
push ecx
call dword [0x1001a170]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8