Function at 0x401160
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401197
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4152d4
call fcn.00401930
add esp, 8
jmp 0x401446
push 1
push 0x41d988
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4011d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4152f0
call fcn.00401930
add esp, 8
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401446
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40122b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7a
jne 0x401210
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
jmp 0x40122b
mov eax, dword [ebp - 0xc]
push eax
push 0x41530c
call fcn.00401930
add esp, 8
jmp 0x401432
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x401263
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceConfig_failed___d_
call fcn.00401930
add esp, 8
jmp 0x401432
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
jne 0x4012bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7a
jne 0x4012a1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
jmp 0x4012bc
mov eax, dword [ebp - 0xc]
push eax
push 0x41534c
call fcn.00401930
add esp, 8
jmp 0x401432
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
jne 0x4012f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceConfig2_failed___d_
call fcn.00401930
add esp, 8
jmp 0x401432
push 0x41d988
push str._s_configuration:__n
call fcn.00401930
add esp, 8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push str.__Type:_0x_x_n
call fcn.00401930
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push str.__Start_Type:_0x_x_n
call fcn.00401930
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push str.__Error_Control:_0x_x_n
call fcn.00401930
add esp, 8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
push str.__Binary_path:__s_n
call fcn.00401930
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
push str.__Account:__s_n
call fcn.00401930
add esp, 8
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x40139b
push 0x4151a1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40139b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
push str.__Description:__s_n
call fcn.00401930
add esp, 8
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
je 0x4013ce
push 0x4151a2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4013ce
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
push str.__Load_order_group:__s_n
call fcn.00401930
add esp, 8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x14], 0
je 0x4013eb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
push str.__Tag_ID:__d_n
call fcn.00401930
add esp, 8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x18], 0
je 0x40141e
push 0x4151a3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40141e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
push str.__Dependencies:__s_n
call fcn.00401930
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret