Function at 0x12184670
Capabilities:
Query service configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0
je 0x12184696
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x1218469d
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
shl ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x10], 0
je 0x121846c9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x50], eax
jmp 0x121846d0
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0
je 0x121846fc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x54], eax
jmp 0x12184703
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 0
je 0x1218472f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x58], eax
jmp 0x12184736
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x20], 0
je 0x12184762
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x5c], eax
jmp 0x12184769
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
shl eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x24]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
push 0x24
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x38], eax
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x3c]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 0x10