Function at 0x4068c0
Capabilities:
Get common file path
Set console window title
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19b4
call fcn.004b4840
push edi
mov dword [ebp - 0x5c4], 0
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0x5c0]
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x14], 0
jne 0x406c8a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [0x4e2ee4], ecx
push 0
call fcn.004b53a5
add esp, 4
mov dword [0x4e2ef4], eax
lea edx, [ebp - 0x754]
push edx
push 0x101
call fcn.0041ca0a
push 0x19c
push 0
lea eax, [ebp - 0x8f0]
push eax
call fcn.004b4340
add esp, 0xc
lea ecx, [ebp - 0x19a0]
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x8f0], 0x67
mov word [ebp - 0x908], 1
mov word [ebp - 0x906], 1
push 0x4e7604
push 0x4c9300
push 0x4c959c
lea edx, [ebp - 0x8f0]
push edx
call fcn.00431cd6
add esp, 0x10
test eax, eax
je 0x4069ce
mov eax, dword [0x4e7604]
cmp dword [eax + 0x80], 0xffffffd8
jne 0x4069a9
push 0x4c95a4
call fcn.00426980
add esp, 4
mov ecx, dword [0x4e7604]
mov edx, dword [ecx + 0x80]
push edx
call fcn.004b4c8d
push str.FLEXnet_Licensing_initialize_failed_n
mov eax, dword [0x4e7604]
push eax
call fcn.0041adc2
add esp, 8
mov ecx, dword [0x4e7604]
mov edx, dword [ecx + 0x80]
push edx
call fcn.004b4c8d
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0x134]
or ch, 0x80
mov edx, dword [0x4e7604]
mov dword [edx + 0x134], ecx
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0x198]
add ecx, 0xd34
push 0
push ecx
call fcn.004b5484
add esp, 8
test eax, eax
je 0x406a27
push 0x4c95e4
call fcn.00426980
add esp, 4
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0x80]
push eax
call fcn.004b4c8d
push 0
push 0x4e
mov ecx, dword [0x4e7604]
push ecx
call fcn.0042f396
add esp, 0xc
cmp dword [0x4e7604], 0
je 0x406a51
mov edx, dword [0x4e7604]
mov eax, dword [0x4e7604]
mov dword [edx + 0x78], eax
push 0x4d8c90
mov ecx, dword [0x4e7604]
push ecx
call fcn.0042d759
add esp, 8
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0x134]
or al, 0x20
mov ecx, dword [0x4e7604]
mov dword [ecx + 0x134], eax
cmp dword [0x4e7604], 0
je 0x406b76
mov edx, dword [0x4e7604]
cmp dword [edx + 0x198], 0
je 0x406b76
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0x198]
cmp dword [ecx + 0x1cf0], 0
jne 0x406b76
push 0
call fcn.0040d3e0
add esp, 4
mov edx, dword [0x4e7604]
mov ecx, dword [edx + 0x198]
mov dword [ecx + 0x1cf0], eax
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0x198]
cmp dword [eax + 0x1cf0], 0
jne 0x406b76
mov ecx, dword [0x4e7604]
cmp dword [ecx + 0x80], 0
je 0x406b14
xor edx, edx
test edx, edx
je 0x406b14
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x19b4], ecx
jmp 0x406b1e
mov dword [ebp - 0x19b4], 0xffffffd8
mov edx, dword [0x4e7604]
mov eax, dword [ebp - 0x19b4]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x9c5c
push 0xffffffffffffffd8
mov ecx, dword [0x4e7604]
push ecx
call fcn.00417930
add esp, 0x1c
push 0x4c95fc
mov edx, dword [0x4e7604]
push edx
call fcn.0041adc2
add esp, 8
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0x80]
push ecx
call fcn.004b4c8d
mov edx, dword [ebp + 0xc]
mov dword [0x4e2f18], edx
mov eax, dword [ebp + 8]
mov dword [0x4e2f1c], eax
call fcn.0042f2e0
push 0x104
lea ecx, [ebp - 0x508]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx edx, byte [ebp - 0x508]
cmp edx, 0x41
jne 0x406bb7
mov eax, dword [str.c:_flexlm_]
mov cl, byte [ebp - 0x508]
mov byte [eax], cl
push 0x4c9614
call fcn.00410fe0
add esp, 4
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0x134]
or ah, 0x80
mov ecx, dword [0x4e7604]
mov dword [ecx + 0x134], eax
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0x198]
add eax, 0xd34
push 0
push eax
call fcn.004b5484
add esp, 8
test eax, eax
je 0x406c2a
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Out_of_memory__exiting_n
call fcn.0040f492
add esp, 4
mov ecx, dword [0x4e7604]
mov edx, dword [ecx + 0x80]
push edx
call fcn.004b4c8d
mov dword [0x4e2ee0], 0x5460
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407393
add esp, 8
cmp dword [0x4d8c8c], 0
jne 0x406c54
call fcn.00407a80
jmp 0x406c5f
push str.lmgrd:__FLEXnet_license_server
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0xd0]
mov dword [eax + 0x1c], 5
call fcn.00410fa0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0040926e
add esp, 4
call fcn.00408ec5
cmp dword [0x4d8c78], 0
je 0x406ca2
mov dword [0x4c8bb8], 0xffffffff
jmp 0x407315
mov eax, dword [0x4e7604]
push eax
call fcn.0042f140
add esp, 4
mov dword [ebp - 0x510], eax
cmp dword [ebp - 0x510], 0
jne 0x406d8c
mov ecx, dword [0x4c9588]
push ecx
push str._s:_cant_initialize
lea edx, [ebp - 0x574]
push edx
call fcn.004b486f
add esp, 0xc
lea eax, [ebp - 0x574]
push eax
mov ecx, dword [0x4e7604]
push ecx
call fcn.0041adc2
add esp, 8
mov edx, dword [0x4e7604]
push edx
call fcn.00417d30
add esp, 4
cmp eax, 0xffffffff
jne 0x406d72
push 0
push 1
call fcn.0040f302
add esp, 8
mov eax, dword [0x4e7604]
push eax
call fcn.0042f0c0
add esp, 4
push eax
push 0x4c966c
call fcn.0040f492
add esp, 8
call fcn.00418ab0
test eax, eax
je 0x406d72
mov ecx, dword [0x4e7604]
push ecx
call fcn.0042f0c0
add esp, 4
mov dword [ebp - 0x5c4], eax
push 0
push 0
lea edx, [ebp - 0x5c4]
push edx
push 1
push 0x400002f1
push 4
push 4
mov eax, dword [0x4e7604]
push eax
call fcn.00418cd8
add esp, 0x20
call fcn.00409458
mov ecx, dword [0x4e7604]
push ecx
call fcn.00417d30
add esp, 4
push eax
call fcn.004b4c8d
cmp dword [ebp + 0x14], 0
jne 0x406f4f
mov dword [ebp - 0x19a8], 0xffffff9d
mov edx, dword [0x4e7604]
mov eax, dword [edx + 0xd8]
mov dword [ebp - 0x19a4], eax
jmp 0x406dc6
mov ecx, dword [ebp - 0x19a4]
mov edx, dword [ecx + 0x370]
mov dword [ebp - 0x19a4], edx
cmp dword [ebp - 0x19a4], 0
je 0x406f4f
mov eax, dword [ebp - 0x19a4]
cmp dword [eax + 0x260], 0
jne 0x406de4
jmp 0x406db4
mov ecx, dword [ebp - 0x19a4]
mov edx, dword [ecx + 0x260]
cmp dword [edx + 0x410], 0
je 0x406f32
cmp dword [ebp - 0x19a8], 0xffffff9d
je 0x406f32
mov eax, dword [ebp - 0x19a4]
mov ecx, dword [eax + 0x260]
mov edx, dword [ecx + 0x410]
cmp edx, dword [ebp - 0x19a8]
je 0x406f32
push 0
push 1
call fcn.0040f302
add esp, 8
push str.ERROR:_license_files_have_conflicting_port_numbers_n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
mov eax, dword [ebp - 0x19a4]
mov ecx, dword [eax + 0x260]
mov edx, dword [ecx + 0x410]
push edx
mov eax, dword [ebp - 0x19a8]
push eax
push str.____d_and__d_n
call fcn.0040f492
add esp, 0xc
push 0
push 1
call fcn.0040f302
add esp, 8
push str.____Please_edit_the_license_files_so_the_port_numbers_n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.____on_the_SERVER_line_are_identical._n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.____License_files_include:
call fcn.0040f492
add esp, 4
mov ecx, dword [0x4e7604]
mov edx, dword [ecx + 0xe0]
mov dword [ebp - 0x19ac], edx
jmp 0x406ee2
mov eax, dword [ebp - 0x19ac]
add eax, 4
mov dword [ebp - 0x19ac], eax
mov ecx, dword [ebp - 0x19ac]
cmp dword [ecx], 0
je 0x406f05
mov edx, dword [ebp - 0x19ac]
mov eax, dword [edx]
push eax
push 0x4c9748
call fcn.0040f492
add esp, 8
jmp 0x406ed3
push 0x4c974c
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Exiting_n
call fcn.0040f492
add esp, 4
push 2
call fcn.004b4c8d
mov ecx, dword [ebp - 0x19a4]
mov edx, dword [ecx + 0x260]
mov eax, dword [edx + 0x410]
mov dword [ebp - 0x19a8], eax
jmp 0x406db4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x510]
mov dword [ecx], edx
mov dword [ebp - 0x50c], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x510], ecx
jmp 0x406f83
mov edx, dword [ebp - 0x510]
mov eax, dword [edx + 0x408]
mov dword [ebp - 0x510], eax
cmp dword [ebp - 0x510], 0
je 0x406f9d
mov ecx, dword [ebp - 0x50c]
add ecx, 1
mov dword [ebp - 0x50c], ecx
jmp 0x406f71
mov edx, dword [ebp - 0x50c]
and edx, reloc.WSOCK32.dll_accept
jns 0x406fb0
dec edx
or edx, 0xfffffffe
inc edx
test edx, edx
jne 0x407045
push 0
push 1
call fcn.0040f302
add esp, 8
push 0x4c975c
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
mov eax, dword [ebp - 0x50c]
push eax
push str.WARNING:__d_license_server_systems_specified_in_license_file._n
call fcn.0040f492
add esp, 8
cmp dword [ebp - 0x50c], 1
jle 0x40702c
push 0
push 1
call fcn.0040f302
add esp, 8
push str._an_even_number_of_server_systems_is_probably_a_mistake.__n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push str.You_may_have_duplicated_a_SERVER_line_by_mistake_n
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
push 0x4c9810
call fcn.0040f492
add esp, 4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x510], edx
cmp dword [ebp - 0x510], 0
je 0x4070bd
mov eax, dword [ebp - 0x510]
push eax
call fcn.004108f0
add esp, 4
test eax, eax
jne 0x4070bd
mov ecx, dword [ebp - 0x510]
movsx edx, byte [ecx + 0x418]
and edx, 2
test edx, edx
je 0x4070a9
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.0041ceb0
lea ecx, [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x510]
push edx
call fcn.004b4b70
add esp, 8
jmp 0x4070bd
mov eax, dword [ebp - 0x510]
mov ecx, dword [eax + 0x408]
mov dword [ebp - 0x510], ecx
jmp 0x407050
cmp dword [ebp - 0x510], 0
jne 0x407193
push 0x400
lea edx, [ebp - 0x404]
push edx
call fcn.0041ceb0
push 0
push 1
call fcn.0040f302
add esp, 8
lea eax, [ebp - 0x404]
push eax
push str.__s_:_Not_a_valid_server_hostname__exiting._n
call fcn.0040f492
add esp, 8
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Valid_license_server_system_hosts_are:
call fcn.0040f492
add esp, 4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x510], edx
jmp 0x407133
mov eax, dword [ebp - 0x510]
mov ecx, dword [eax + 0x408]
mov dword [ebp - 0x510], ecx
cmp dword [ebp - 0x510], 0
je 0x407152
mov edx, dword [ebp - 0x510]
push edx
push 0x4c986c
call fcn.0040f492
add esp, 8
jmp 0x407121
push 0x4c9874
call fcn.0040f492
add esp, 4
push 0
push 1
call fcn.0040f302
add esp, 8
mov eax, dword [0x4e7604]
push eax
call fcn.0042f0c0
add esp, 4
push eax
push str.Using_license_file___s__n
call fcn.0040f492
add esp, 8
call fcn.00409458
push 2
call fcn.004b4c8d
cmp dword [ebp + 0x14], 0
jne 0x4071ad
mov ecx, dword [0x4e7604]
push ecx
call fcn.00428c20
add esp, 4
mov dword [0x4d8c68], eax
push 0x400
mov edx, dword [ebp - 0x510]
push edx
push 0x4e7200
call fcn.0041eac7
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x407315
mov dword [ebp - 0x19b0], 0xffffffff
mov eax, dword [ebp - 0x510]
cmp dword [eax + 0x410], 0xffffffff
jne 0x40728a
call fcn.00407d81
mov ecx, dword [ebp - 0x510]
mov dword [ecx + 0x410], 0x6978
mov edx, dword [ebp - 0x510]
mov eax, dword [0x4e7604]
mov ecx, dword [edx + 0x410]
cmp ecx, dword [eax + 0x188]
jg 0x407266
cmp dword [ebp - 0x19b0], 0
jge 0x407266
mov edx, dword [ebp - 0x510]
push edx
push 0
push 0x4c8bb8
call fcn.004079a3
add esp, 0xc
mov dword [ebp - 0x19b0], eax
cmp dword [ebp - 0x19b0], 0
jge 0x407264
mov eax, dword [ebp - 0x510]
mov ecx, dword [eax + 0x410]
add ecx, 1
mov edx, dword [ebp - 0x510]
mov dword [edx + 0x410], ecx
jmp 0x407202
cmp dword [ebp - 0x19b0], 0xffffffff
jne 0x407288
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Failed_to_open_any_default_TCP_port._n
call fcn.0040f492
add esp, 4
jmp 0x407300
mov eax, dword [ebp - 0x510]
push eax
push 0
push 0x4c8bb8
call fcn.004079a3
add esp, 0xc
mov dword [ebp - 0x19b0], eax
mov dword [0x4c8bb0], 0xffffffff
cmp dword [ebp - 0x19b0], 0xffffffff
jne 0x407300
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Failed_to_open_the_TCP_port_number_in_the_license._n
call fcn.0040f492
add esp, 4
call fcn.00418ab0
test eax, eax
je 0x407300
push 0
push 0
lea ecx, [ebp - 0x5c4]
push ecx
push 0
push 0xc0000301
push 0xc
push 1
mov edx, dword [0x4e7604]
push edx
call fcn.00418cd8
add esp, 0x20
cmp dword [ebp - 0x19b0], 0xffffffff
jne 0x407315
call fcn.00409458
push 0x1a
call fcn.004b4c8d
cmp dword [ebp + 0x14], 0
jne 0x407352
mov dword [ebp - 0x50c], 1
jmp 0x407336
mov eax, dword [ebp - 0x50c]
add eax, 1
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0x17
jge 0x407352
push 1
mov ecx, dword [ebp - 0x50c]
push ecx
call fcn.004b5184
add esp, 8
jmp 0x407327
push fcn.00401260
push 2
call fcn.004b5184
add esp, 8
push fcn.00401260
push 0xf
call fcn.004b5184
add esp, 8
push 0
push 1
call fcn.0040f302
add esp, 8
push str.Done_rereading_n
call fcn.0040f492
add esp, 4
mov eax, dword [0x4c8bb8]
pop edi
mov esp, ebp
pop ebp
ret