Function at 0x4030d0
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x4049a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
xor edi, edi
call sub.MFC42.DLL_CString::CString
push 1
push edi
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
jne 0x403135
push 0x89
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov esi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebp
call fcn.00402960
add esp, 0xc
jmp 0x4032a6
push 1
push str.SSLVPNDaemon
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4031aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x424
jne 0x403181
push 0x8a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.00402960
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4032a6
push 0x8b
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
push esi
push ecx
push ebp
call fcn.00402960
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4032a6
lea edx, [esp + 0x14]
push edx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x403229
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x40320a
mov eax, dword [esp + 0x14]
push eax
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x403229
push 0x8c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebp
call fcn.00402960
add esp, 0xc
jmp 0x40329a
push 0x8d
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
push edi
push eax
push ebp
call fcn.00402960
add esp, 0xc
jmp 0x40329a
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40326d
push 0x8e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebp
call fcn.00402960
add esp, 0xc
push edi
jmp 0x403294
mov edx, dword [edi + 0xc]
lea ecx, [ebp + 0x25c]
push edx
call fcn.0040453e
mov eax, dword [edi + 0xc]
add ebp, 0x228
push ebp
push eax
call fcn.00403300
add esp, 8
test eax, eax
push edi
jge 0x4032bb
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040440c
xor eax, eax
jmp 0x4032e3
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040440c
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4