Function at 0x40141a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22f4
call fcn.004b4840
push edi
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0xcc]
mov edx, dword [ecx + 0x38]
push edx
call fcn.0041e9e7
add esp, 4
mov dword [ebp - 0x2298], eax
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0xc48], 0
mov dword [ebp - 0x2294], 0
mov dword [ebp - 0x1064], 1
mov dword [ebp - 0x22e8], 0
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0x22e4]
rep stosd dword es:[edi], eax
push 0
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc44]
push ecx
mov edx, dword [0x4e7604]
push edx
call fcn.0041ced0
add esp, 0x14
mov dword [ebp - 0xc48], eax
cmp dword [ebp - 0xc48], 0
je 0x4014bd
mov eax, 1
jmp 0x401b51
push 0x400
lea eax, [ebp - 0x1054]
push eax
call fcn.0041ceb0
mov dword [ebp - 0xc50], 1
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x10]
push edx
call fcn.0041c989
mov word [ebp - 0xc4c], ax
lea eax, [ebp - 0x2290]
push eax
lea ecx, [ebp - 0x1054]
push ecx
lea edx, [ebp - 0xc50]
push edx
push 0
lea eax, [ebp - 0xc44]
push eax
mov ecx, dword [0x4e7604]
push ecx
call fcn.0041b0f0
add esp, 0x18
mov dword [ebp - 0x1060], eax
cmp dword [ebp - 0x1060], 0
jge 0x40157c
push 0
push 1
call fcn.0040f302
add esp, 8
mov edx, dword [ebp + 8]
push edx
push str.Cant_connect_to_the_license_server_system._Shutdown__s_failed.__n
call fcn.0040f492
add esp, 8
push 0
push 1
call fcn.0040f302
add esp, 8
mov eax, dword [0x4e7604]
push eax
call fcn.0041a5c0
add esp, 4
push eax
push 0x4c811c
call fcn.0040f492
add esp, 8
mov dword [ebp - 0x105c], 1
jmp 0x401a79
push 0
push 0
mov cl, byte [ebp - 0x1064]
push ecx
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0xcc]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0x1060]
push edx
mov eax, dword [0x4e7604]
push eax
call fcn.00419dd0
add esp, 0x18
mov dword [ebp - 0xc48], eax
cmp dword [ebp - 0xc48], 0
je 0x4015e7
push 0
push 1
call fcn.0040f302
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push str.Cant_write_to_the_license_server_system.__First_try_of_shutdown__s_failed._n
call fcn.0040f492
add esp, 8
mov dword [ebp - 0x105c], 1
jmp 0x401a79
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0xcc]
cmp dword [eax + 0x38], 3
jge 0x40167e
push 0
push 1
call fcn.0040f302
add esp, 8
push 0
mov ecx, dword [0x4e7604]
push ecx
call fcn.00419271
add esp, 8
push eax
mov edx, dword [ebp + 8]
push edx
push str.Shut_down_FLEXnet__s_license_server_system_on_node__s_n
call fcn.0040f492
add esp, 0xc
call fcn.00418ab0
test eax, eax
je 0x401679
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22e8], eax
push 0
mov ecx, dword [0x4e7604]
push ecx
call fcn.00419271
add esp, 8
mov dword [ebp - 0x22e4], eax
push 0
push 0
lea edx, [ebp - 0x22e8]
push edx
push 2
push 0x400002f3
push 4
push 4
mov eax, dword [0x4e7604]
push eax
call fcn.00418cd8
add esp, 0x20
jmp 0x401a79
mov ecx, dword [0x4e7604]
mov edx, dword [ecx + 0xcc]
mov eax, dword [ebp - 0x1060]
mov dword [edx + 0xc], eax
lea ecx, [ebp - 0x1068]
push ecx
mov edx, dword [0x4e7604]
push edx
call fcn.004183c0
add esp, 8
mov word [ebp - 0x1058], ax
mov eax, dword [ebp - 0x1068]
push eax
mov ecx, dword [0x4e7604]
push ecx
call fcn.0041816e
add esp, 8
mov edx, dword [ebp - 0x1058]
and edx, 0xffff
test edx, edx
jne 0x40176a
mov eax, dword [0x4e7604]
cmp dword [eax + 0x80], 0
je 0x401702
xor ecx, ecx
test ecx, ecx
je 0x401702
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x22ec], eax
jmp 0x40170c
mov dword [ebp - 0x22ec], 0xfffffff0
mov ecx, dword [0x4e7604]
mov edx, dword [ebp - 0x22ec]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x162
push 0xfffffffffffffff0
mov eax, dword [0x4e7604]
push eax
call fcn.00417930
add esp, 0x1c
push 0
push 1
call fcn.0040f302
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push str.Cant_read_from_license_server_system.__First_try_of_shutdown__s_failed.__n
call fcn.0040f492
add esp, 8
mov dword [ebp - 0x105c], 1
jmp 0x401a79
mov edx, dword [ebp - 0x1058]
and edx, 0xffff
cmp edx, 0x4f
jne 0x4017ff
push 0
push 1
call fcn.0040f302
add esp, 8
push 0
mov eax, dword [0x4e7604]
push eax
call fcn.00419271
add esp, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4c81f8
call fcn.0040f492
add esp, 0xc
call fcn.00418ab0
test eax, eax
je 0x4017fa
mov edx, dword [ebp + 8]
mov dword [ebp - 0x22e8], edx
push 0
mov eax, dword [0x4e7604]
push eax
call fcn.00419271
add esp, 8
mov dword [ebp - 0x22e4], eax
push 0
push 0
lea ecx, [ebp - 0x22e8]
push ecx
push 2
push 0x400002f3
push 4
push 4
mov edx, dword [0x4e7604]
push edx
call fcn.00418cd8
add esp, 0x20
jmp 0x401a79
mov eax, dword [ebp - 0x1058]
and eax, 0xffff
cmp eax, 0x48
jne 0x4018a4
mov ecx, dword [0x4e7604]
cmp dword [ecx + 0x80], 0
je 0x40183b
xor edx, edx
test edx, edx
je 0x40183b
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x22f0], ecx
jmp 0x401845
mov dword [ebp - 0x22f0], 0xffffffc1
mov edx, dword [0x4e7604]
mov eax, dword [ebp - 0x22f0]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x163
push 0xffffffffffffffc1
mov ecx, dword [0x4e7604]
push ecx
call fcn.00417930
add esp, 0x1c
push 0
push 1
call fcn.0040f302
add esp, 8
mov edx, dword [ebp + 8]
push edx
push str.Unauthorized_shutdown_detected.__Shutdown__s_failed._n
call fcn.0040f492
add esp, 8
mov dword [ebp - 0x105c], 0xffffffc1
jmp 0x401a79
mov eax, dword [ebp - 0x1058]
and eax, 0xffff
cmp eax, 0x42
jne 0x401a43
call fcn.00404b23
test eax, eax
je 0x40197e
cmp dword [0x4e2ee8], 0
je 0x4018ff
mov dword [ebp - 0x1064], 0
cmp dword [0x4d9b94], 0
je 0x4018fa
push 0xffffffffffffffff
push 1
call fcn.0040f302
add esp, 8
push str.forcing_shutdown..._n
call fcn.0040f492
add esp, 4
jmp 0x40157c
cmp dword [0x4d9b94], 0
je 0x401921
push 0xffffffffffffffff
push 1
call fcn.0040f302
add esp, 8
push str.Not_forced_n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Redo_lmdown_with__force_arg._n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Required_when_borrowed_licenses_outstanding_n
call fcn.0040f492
add esp, 4
call fcn.00418ab0
test eax, eax
je 0x40197c
push 0
push 0
push 0
push 0
push 0x800002fd
push 4
push 2
mov ecx, dword [0x4e7604]
push ecx
call fcn.00418cd8
add esp, 0x20
jmp 0x4019a0
cmp dword [0x4d9b94], 0
je 0x4019a0
push 0xffffffffffffffff
push 1
call fcn.0040f302
add esp, 8
push str.Not_local_n
call fcn.0040f492
add esp, 4
mov dword [0x4d9b90], 0
mov edx, dword [0x4e7604]
cmp dword [edx + 0x80], 0
je 0x4019d3
xor eax, eax
test eax, eax
je 0x4019d3
mov ecx, dword [0x4e7604]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x22f4], edx
jmp 0x4019dd
mov dword [ebp - 0x22f4], 0xffffff88
mov eax, dword [0x4e7604]
mov ecx, dword [ebp - 0x22f4]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x237
push 0xffffffffffffff88
mov edx, dword [0x4e7604]
push edx
call fcn.00417930
add esp, 0x1c
push 0
push 1
call fcn.0040f302
add esp, 8
mov eax, dword [0x4e7604]
push eax
call fcn.0041a5c0
add esp, 4
push eax
push 0x4c82ec
call fcn.0040f492
add esp, 8
mov dword [ebp - 0x105c], 0xffffff88
jmp 0x401a79
push 0
push 1
call fcn.0040f302
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1058]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1058]
and eax, 0xffff
push eax
push str.Unknown_response___c__0x_x.__First_try_of_shutdown__s_failed._n
call fcn.0040f492
add esp, 0x10
push 0
mov ecx, dword [0x4e7604]
push ecx
call fcn.00417820
add esp, 8
cmp dword [ebp - 0x105c], 1
jne 0x401b4b
mov edx, dword [ebp - 0x2294]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401b2e
push 0
push 1
call fcn.0040f302
add esp, 8
push 0
mov edx, dword [0x4e7604]
push edx
call fcn.00419271
add esp, 8
push eax
mov eax, dword [ebp + 8]
push eax
push str.Shut_down_FLEXnet__s_license_server_system_on_machine__s_n
call fcn.0040f492
add esp, 0xc
call fcn.00418ab0
test eax, eax
je 0x401b2c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x22e8], ecx
push 0
mov edx, dword [0x4e7604]
push edx
call fcn.00419271
add esp, 8
mov dword [ebp - 0x22e4], eax
push 0
push 0
lea eax, [ebp - 0x22e8]
push eax
push 2
push 0x400002f3
push 4
push 4
mov ecx, dword [0x4e7604]
push ecx
call fcn.00418cd8
add esp, 0x20
jmp 0x401b4b
push 0
push 1
call fcn.0040f302
add esp, 8
mov edx, dword [ebp + 8]
push edx
push str.Cant_shutdown_the_license_server_system.__Shutdown__s_failed._n
call fcn.0040f492
add esp, 8
mov eax, dword [ebp - 0x105c]
pop edi
mov esp, ebp
pop ebp
ret