Function at 0x688360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00610fd0
push edi
mov dword [ebp - 0x14e0], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0x2711
mov eax, dword [ebp + 8]
push eax
call fcn.00650f70
add esp, 8
mov dword [ebp - 8], eax
push 0x2711
mov ecx, dword [ebp + 8]
push ecx
call fcn.00650f70
add esp, 8
mov dword [ebp - 0x10], eax
push 0x14b4
push 0
lea edx, [ebp - 0x14d0]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 2]
test edx, edx
jne 0x688715
mov byte [ebp - 0x16c0], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x16bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1658], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x1657]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x165c], 0
mov dword [ebp - 0x16c4], 0
mov dword [ebp - 0x14e8], 0
mov dword [ebp - 0x15f4], 0
mov byte [ebp - 0x15ec], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x15eb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x15f0], 0
xor eax, eax
mov byte [ebp - 0x15ef], al
mov ecx, dword [ebp + 8]
push ecx
call fcn.00662530
add esp, 4
mov dword [ebp - 0x14e4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.006625e6
add esp, 4
mov dword [ebp - 0x16c8], eax
push 0x2711
mov eax, dword [ebp + 8]
push eax
call fcn.00650f70
add esp, 8
mov dword [ebp - 0x165c], eax
push 0x3b
push 0x776848
lea ecx, [ebp - 0x15f0]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x16c8]
movsx eax, byte [edx]
test eax, eax
je 0x6884cf
mov ecx, dword [ebp - 0x16c8]
mov dword [ebp - 0x17f0], ecx
jmp 0x6884db
mov edx, dword [ebp - 0x14e4]
mov dword [ebp - 0x17f0], edx
mov eax, dword [ebp - 0x17f0]
push eax
push str._s_LICENSE_FILE
lea ecx, [ebp - 0x16c0]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x16c8]
movsx eax, byte [edx]
test eax, eax
je 0x688512
mov ecx, dword [ebp - 0x16c8]
mov dword [ebp - 0x17f4], ecx
jmp 0x68851e
mov edx, dword [ebp - 0x14e4]
mov dword [ebp - 0x17f4], edx
mov eax, dword [ebp - 0x17f4]
push eax
push str._s_LF
lea ecx, [ebp - 0x1658]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
push 0x2710
mov edx, dword [ebp - 0x165c]
push edx
push str.LM_LICENSE_FILE
mov eax, dword [ebp + 8]
push eax
call fcn.0065c95c
add esp, 0x10
mov dword [ebp - 0x16c4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
and edx, 0x10
test edx, edx
je 0x6885a5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
and ecx, 0x2000000
test ecx, ecx
jne 0x6885a5
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0065d535
add esp, 8
mov dword [ebp - 0x14e8], eax
mov eax, dword [ebp - 0x14e8]
mov dword [ebp - 0x15f4], eax
jmp 0x688629
push 0x104
lea ecx, [ebp - 0x15ec]
push ecx
lea edx, [ebp - 0x16c0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0065c95c
add esp, 0x10
mov dword [ebp - 0x14e8], eax
cmp dword [ebp - 0x14e8], 0
jne 0x688629
lea ecx, [ebp - 0x1658]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0065ce36
add esp, 8
mov dword [ebp - 0x14e8], eax
cmp dword [ebp - 0x14e8], 0
jne 0x688629
lea eax, [ebp - 0x16c0]
push eax
call fcn.006623e0
add esp, 4
push 0x104
lea ecx, [ebp - 0x15ec]
push ecx
lea edx, [ebp - 0x16c0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0065c95c
add esp, 0x10
mov dword [ebp - 0x14e8], eax
cmp dword [ebp - 0x16c4], 0
je 0x688640
mov ecx, dword [ebp - 0x16c4]
mov dword [ebp - 0x17f8], ecx
jmp 0x68864a
mov dword [ebp - 0x17f8], 0x7a0da8
cmp dword [ebp - 0x14e8], 0
je 0x68866a
cmp dword [ebp - 0x16c4], 0
je 0x68866a
lea edx, [ebp - 0x15f0]
mov dword [ebp - 0x17fc], edx
jmp 0x688674
mov dword [ebp - 0x17fc], 0x7a0dac
cmp dword [ebp - 0x14e8], 0
je 0x68868b
mov eax, dword [ebp - 0x14e8]
mov dword [ebp - 0x1800], eax
jmp 0x688695
mov dword [ebp - 0x1800], 0x7a0db0
mov ecx, dword [ebp - 0x17f8]
push ecx
mov edx, dword [ebp - 0x17fc]
push edx
mov eax, dword [ebp - 0x1800]
push eax
push str._s_s_s
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14e0], edx
cmp dword [ebp - 0x14e0], 0
je 0x6886e5
mov eax, dword [ebp - 0x14e0]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x6886e5
mov dword [ebp - 0x14e0], 0
cmp dword [ebp - 0x15f4], 0
je 0x6886fd
mov edx, dword [ebp - 0x15f4]
push edx
call fcn.006511ab
add esp, 4
cmp dword [ebp - 0x165c], 0
je 0x688715
mov eax, dword [ebp - 0x165c]
push eax
call fcn.006511ab
add esp, 4
cmp dword [0x776844], 0xffffffff
jne 0x688734
push str.FLEXLM_USE_FINDER
mov ecx, dword [ebp + 8]
push ecx
call fcn.0065ce36
add esp, 8
mov dword [0x776844], eax
cmp dword [ebp - 0x14e0], 0
jne 0x688752
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd4]
movsx ecx, word [eax + 0x109a]
cmp ecx, 1
jne 0x68875b
cmp dword [0x776844], 0
je 0x68876d
mov edx, dword [ebp + 8]
push edx
call fcn.006ac61b
add esp, 4
mov dword [ebp - 0x14e0], eax
cmp dword [ebp - 0x14e0], 0
jne 0x688799
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 8]
test edx, edx
je 0x688799
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14e0], edx
cmp dword [ebp - 0x14e0], 0
jne 0x6887d6
push 0xc7
lea eax, [ebp - 0x1790]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx ecx, byte [ebp - 0x1790]
cmp ecx, 0x41
jne 0x6887cc
mov dword [ebp - 0x14e0], str.A:_flexlmlicense.dat
jmp 0x6887d6
mov dword [ebp - 0x14e0], str.C:_flexlmlicense.dat
mov edx, dword [ebp + 8]
push edx
call fcn.0063b375
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14e0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00688fc6
add esp, 0xc
mov dword [ebp - 0x14e0], eax
mov eax, dword [ebp - 0x14e0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00689eac
add esp, 8
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0xec], eax
mov ecx, dword [ebp - 0x14e0]
push ecx
call sub.MSVCR80.dll_strlen
add esp, 4
add eax, 3
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00650f70
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xf4], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx*4 + 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00650f70
add esp, 8
mov dword [ebp - 0x14dc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14dc]
mov dword [edx + 0xe4], eax
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x434
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00650f70
add esp, 8
mov dword [ebp - 0x14d4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14d4]
mov dword [eax + 0xf0], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14d4]
mov dword [edx + 0xf0], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x14e0]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x68899e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0xec]
jle 0x6888f8
jmp 0x68899e
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14dc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x434
mov eax, dword [ebp - 0x14d4]
mov dword [eax + edx + 4], 0
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x434
mov edx, dword [ebp - 0x14d4]
mov al, byte [edx + ecx + 0x10]
or al, 2
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x434
mov edx, dword [ebp - 0x14d4]
mov byte [edx + ecx + 0x10], al
mov eax, dword [ebp - 0x18]
add eax, 1
imul eax, eax, 0x434
mov ecx, dword [ebp - 0x14d4]
add ecx, eax
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x434
mov eax, dword [ebp - 0x14d4]
mov dword [eax + edx], ecx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00688f08
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x688990
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x6888db
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14dc]
mov dword [eax + edx*4], 0
mov ecx, dword [ebp - 0x18]
sub ecx, 1
imul ecx, ecx, 0x434
mov edx, dword [ebp - 0x14d4]
mov dword [edx + ecx], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xe8], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xe8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xe4]
cmp dword [ecx + edx*4], 0
je 0x688c75
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.0068d060
add esp, 8
mov dword [ebp - 0x14d4], eax
cmp dword [ebp - 0x14d4], 0
je 0x688c5b
mov eax, dword [ebp - 0x14d4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14d8], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x14d0]
push eax
mov ecx, dword [ebp - 0x14d4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.006ab92a
add esp, 0xc
mov dword [ebp - 4], eax
push 0x50
push 0
lea eax, [ebp - 0x17e0]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x80
push ecx
lea edx, [ebp - 0x17e0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00651fcf
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0xfffffff3
jne 0x688a9e
lea edx, [ebp - 0x17e0]
push edx
mov eax, dword [ebp + 8]
add eax, 0x80
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651fcf
add esp, 0xc
lea edx, [ebp - 0x17e0]
push edx
call fcn.00651f6f
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x688ad1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x408]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0
je 0x688ad9
jmp 0x688abc
cmp dword [ebp - 0x18], 0
jle 0x688bd3
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 0
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x424
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00650f70
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x424
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x17e4], 0
jmp 0x688b3d
mov eax, dword [ebp - 0x17e4]
add eax, 1
mov dword [ebp - 0x17e4], eax
mov ecx, dword [ebp - 0x17e4]
cmp ecx, dword [ebp - 0x18]
jge 0x688b74
mov edx, dword [ebp - 0x17e4]
add edx, 1
imul edx, edx, 0x424
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x17e4]
imul ecx, ecx, 0x424
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx + 0x408], eax
jmp 0x688b2e
mov eax, dword [ebp - 0x17e4]
sub eax, 1
imul eax, eax, 0x424
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax + 0x408], 0
push 8
mov edx, dword [ebp + 8]
push edx
call fcn.00650f70
add esp, 8
mov dword [ebp - 0x17e8], eax
mov eax, dword [ebp - 0x17e8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x17e8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x17e8]
mov dword [edx + 0x150], eax
jmp 0x688bda
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xe8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14d4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00667f10
add esp, 0x10
mov eax, dword [ebp - 0x14dc]
add eax, 4
mov dword [ebp - 0x14dc], eax
cmp dword [ebp - 0x14d8], 1
jne 0x688c5b
mov ecx, dword [ebp - 0x14d4]
cmp dword [ecx + 4], 3
jne 0x688c5b
mov edx, dword [ebp - 0x14d4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x17ec], eax
mov ecx, dword [ebp - 0x14d4]
mov edx, dword [ebp - 0x14d8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x14d4]
push eax
call fcn.006542f6
add esp, 4
mov ecx, dword [ebp - 0x14d4]
mov edx, dword [ebp - 0x17ec]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xe8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], ecx
jmp 0x6889d4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
and ecx, 4
test ecx, ecx
jne 0x688cc7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1ce4]
and ecx, 0x10
test ecx, ecx
jne 0x688cc7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov dword [eax + 0x1d10], 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.006aab50
add esp, 8
test eax, eax
jne 0x688cc7
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.006aa780
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0069abac
add esp, 4
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.006aa780
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.00689843
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0068a34c
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0
jmp 0x688d38
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xe8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xe8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xe4]
cmp dword [eax + ecx*4], 0
je 0x688d75
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xe8]
imul edx, edx, 0x434
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf0]
add ecx, edx
push ecx
call fcn.006542f6
add esp, 4
jmp 0x688d23
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0
cmp dword [0x7a0da4], 0
je 0x688d91
call dword [0x7a0da4]
cmp dword [ebp - 8], 0
je 0x688da3
mov eax, dword [ebp - 8]
push eax
call fcn.006511ab
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x688db5
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.006511ab
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x688e2e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffffff
je 0x688dd3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0xffffffc3
jne 0x688e2a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x688df6
xor edx, edx
test edx, edx
je 0x688df6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x1804], ecx
jmp 0x688e00
mov dword [ebp - 0x1804], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1804]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651d00
add esp, 0x1c
xor eax, eax
jmp 0x688ea2
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x688e45
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
jmp 0x688ea2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x688e68
xor edx, edx
test edx, edx
je 0x688e68
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x1808], ecx
jmp 0x688e72
mov dword [ebp - 0x1808], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1808]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x168
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651d00
add esp, 0x1c
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret