Function at 0x4048d0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x134], 3
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x130], 0
push 0x103
push 0
lea eax, [ebp - 0x12f]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x130]
push ecx
call fcn.00404f40
add esp, 4
test eax, eax
jne 0x404946
mov eax, 4
jmp 0x404f08
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4049e7
cmp dword [ebp + 8], 0
je 0x404990
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x404990
push 0xf9
push 2
push 0x19
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x13c], eax
jmp 0x40499a
mov dword [ebp - 0x13c], 0x19
cmp dword [ebp + 8], 0
je 0x4049ce
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x4049ce
push 0xfa
push str.Insufficient_privilege_to_talk_to_the_Windows_Service_Control_Manager___set_the_FlexNet_Licensing_Service_to_auto_start
push 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x140], eax
jmp 0x4049d8
mov dword [ebp - 0x140], 0xc
mov dword [ebp - 0x134], 7
jmp 0x404eee
push 0x14
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404e5a
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0x41f
ja 0x404a63
cmp dword [ebp - 0x144], 0x41f
je 0x404d3e
cmp dword [ebp - 0x144], 5
je 0x404cb6
jmp case.0x404a8f.1
mov ecx, dword [ebp - 0x144]
sub ecx, 0x420
mov dword [ebp - 0x144], ecx
cmp dword [ebp - 0x144], 0x10
ja case.0x404a8f.1
mov edx, dword [ebp - 0x144]
movzx eax, byte [edx + 0x404f2c]
jmp dword [eax*4 + 0x404f18]
cmp dword [ebp + 8], 0
je 0x404ac7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x404ac7
push 0x109
push 3
push 0x19
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov dword [ebp - 0x148], eax
jmp 0x404ad1
mov dword [ebp - 0x148], 0x19
cmp dword [ebp + 8], 0
je 0x404b05
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x404b05
push 0x10a
push 0x521270
push 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x14c], eax
jmp 0x404b0f
mov dword [ebp - 0x14c], 0xc
mov dword [ebp - 0x134], 1
jmp 0x404e49
cmp dword [ebp + 8], 0
je 0x404b4f
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x404b4f
push 0x10e
push 5
push 0x19
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x150], eax
jmp 0x404b59
mov dword [ebp - 0x150], 0x19
cmp dword [ebp + 8], 0
je 0x404b8d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x404b8d
push 0x10f
push str.The_FlexNet_Licensing_Service_is_disabled
push 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x154], eax
jmp 0x404b97
mov dword [ebp - 0x154], 0xc
mov dword [ebp - 0x134], 8
jmp 0x404e49
cmp dword [ebp + 8], 0
je 0x404bd7
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x404bd7
push 0x113
push 6
push 0x19
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov dword [ebp - 0x158], eax
jmp 0x404be1
mov dword [ebp - 0x158], 0x19
cmp dword [ebp + 8], 0
je 0x404c15
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x404c15
push 0x114
push str.The_FlexNet_Licensing_Service_is_marked_for_delete___reboot__then_re_install
push 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x15c], eax
jmp 0x404c1f
mov dword [ebp - 0x15c], 0xc
mov dword [ebp - 0x134], 9
jmp 0x404e49
cmp dword [ebp + 8], 0
je 0x404c5f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x404c5f
push pe_nt_image_headers32
push 0
push 0x19
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov dword [ebp - 0x160], eax
jmp 0x404c69
mov dword [ebp - 0x160], 0x19
cmp dword [ebp + 8], 0
je 0x404c9d
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x404c9d
push 0x119
push str.The_FlexNet_Licensing_Service_is_already_running___no_action_required
push 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x164], eax
jmp 0x404ca7
mov dword [ebp - 0x164], 0xc
mov dword [ebp - 0x134], 0
jmp 0x404e49
cmp dword [ebp + 8], 0
je 0x404ce7
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x404ce7
push 0x11d
push 6
push 0x19
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x168], eax
jmp 0x404cf1
mov dword [ebp - 0x168], 0x19
cmp dword [ebp + 8], 0
je 0x404d25
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x404d25
push 0x11e
push str.Insufficient_privilege_to_talk_to_the_FlexNet_Licensing_Service___set_the_service_to_auto_start
push 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x16c], eax
jmp 0x404d2f
mov dword [ebp - 0x16c], 0xc
mov dword [ebp - 0x134], 9
jmp 0x404e49
cmp dword [ebp + 8], 0
je 0x404d6f
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x404d6f
push 0x122
push 6
push 0x19
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov dword [ebp - 0x170], eax
jmp 0x404d79
mov dword [ebp - 0x170], 0x19
cmp dword [ebp + 8], 0
je 0x404dad
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x404dad
push 0x123
push str.The_Windows_Service_Control_Manager_has_a_database_lock___check_which_app_is_using_it
push 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x174], eax
jmp 0x404db7
mov dword [ebp - 0x174], 0xc
mov dword [ebp - 0x134], 7
jmp 0x404e49
cmp dword [ebp + 8], 0
je 0x404df7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x404df7
push 0x12b
push 6
push 0x19
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov dword [ebp - 0x178], eax
jmp 0x404e01
mov dword [ebp - 0x178], 0x19
cmp dword [ebp + 8], 0
je 0x404e35
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x404e35
push 0x12c
push str.The__FlexNet_Licensing_Service_is_incorrectly_configured__please_re_install
push 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x17c], eax
jmp 0x404e3f
mov dword [ebp - 0x17c], 0xc
mov dword [ebp - 0x134], 9
jmp 0x404e55
mov dword [ebp - 0x134], 0
jmp 0x404eee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x404eee
cmp dword [ebp + 8], 0
je 0x404e9c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x404e9c
push 0x13a
push 3
push 0x19
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x180], eax
jmp 0x404ea6
mov dword [ebp - 0x180], 0x19
cmp dword [ebp + 8], 0
je 0x404eda
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x404eda
push 0x13b
push str.The_FlexNet_Licensing_Service_is_not_installed
push 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x184], eax
jmp 0x404ee4
mov dword [ebp - 0x184], 0xc
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret