Function at 0x4bfbe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1820
call fcn.00472970
mov eax, dword [0x541514]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x14d8], 0
mov dword [ebp - 0x14d4], 0
mov dword [ebp - 0x14dc], 0
mov dword [ebp - 4], 0
push 0x5141
mov eax, dword [ebp + 8]
push eax
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x14dc], eax
push 0x5141
mov ecx, dword [ebp + 8]
push ecx
call fcn.00495f00
add esp, 8
mov dword [ebp - 4], eax
push 0x14b4
push 0
lea edx, [ebp - 0x14c0]
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 0x4bffb3
mov byte [ebp - 0x16c8], 0
push 0x63
push 0
lea eax, [ebp - 0x16c7]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov byte [ebp - 0x1558], 0
push 0x63
push 0
lea ecx, [ebp - 0x1557]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x16e0], 0
mov dword [ebp - 0x16dc], 0
mov dword [ebp - 0x16d0], 0
mov dword [ebp - 0x16cc], 0
mov byte [ebp - 0x1660], 0
push 0x103
push 0
lea edx, [ebp - 0x165f]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov byte [ebp - 0x14ec], 0
xor eax, eax
mov byte [ebp - 0x14eb], al
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ab3a0
add esp, 4
mov dword [ebp - 0x16d4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.004ab4a0
add esp, 4
mov dword [ebp - 0x16d8], eax
push 0x5141
mov eax, dword [ebp + 8]
push eax
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x16e0], eax
push 0x3b
push 0x52f43c
lea ecx, [ebp - 0x14ec]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x16d8]
movsx eax, byte [edx]
test eax, eax
je 0x4bfd67
mov ecx, dword [ebp - 0x16d8]
mov dword [ebp - 0x1808], ecx
jmp 0x4bfd73
mov edx, dword [ebp - 0x16d4]
mov dword [ebp - 0x1808], edx
mov eax, dword [ebp - 0x1808]
push eax
push str._s_LICENSE_FILE
lea ecx, [ebp - 0x16c8]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x16d8]
movsx eax, byte [edx]
test eax, eax
je 0x4bfdaa
mov ecx, dword [ebp - 0x16d8]
mov dword [ebp - 0x180c], ecx
jmp 0x4bfdb6
mov edx, dword [ebp - 0x16d4]
mov dword [ebp - 0x180c], edx
mov eax, dword [ebp - 0x180c]
push eax
push str._s_LF
lea ecx, [ebp - 0x1558]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
push 0x5140
mov edx, dword [ebp - 0x16e0]
push edx
push str.LM_LICENSE_FILE
mov eax, dword [ebp + 8]
push eax
call fcn.0049cc00
add esp, 0x10
mov dword [ebp - 0x16dc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
and edx, 0x10
je 0x4bfe39
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
and ecx, 0x2000000
jne 0x4bfe39
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0049d7f0
add esp, 8
mov dword [ebp - 0x16d0], eax
mov eax, dword [ebp - 0x16d0]
mov dword [ebp - 0x16cc], eax
jmp 0x4bfebd
push 0x104
lea ecx, [ebp - 0x1660]
push ecx
lea edx, [ebp - 0x16c8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049cc00
add esp, 0x10
mov dword [ebp - 0x16d0], eax
cmp dword [ebp - 0x16d0], 0
jne 0x4bfebd
lea ecx, [ebp - 0x1558]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0049d0e0
add esp, 8
mov dword [ebp - 0x16d0], eax
cmp dword [ebp - 0x16d0], 0
jne 0x4bfebd
lea eax, [ebp - 0x16c8]
push eax
call fcn.0049fc10
add esp, 4
push 0x104
lea ecx, [ebp - 0x1660]
push ecx
lea edx, [ebp - 0x16c8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049cc00
add esp, 0x10
mov dword [ebp - 0x16d0], eax
cmp dword [ebp - 4], 0
je 0x4bff63
cmp dword [ebp - 0x16dc], 0
je 0x4bfede
mov ecx, dword [ebp - 0x16dc]
mov dword [ebp - 0x1810], ecx
jmp 0x4bfee8
mov dword [ebp - 0x1810], 0x546d38
cmp dword [ebp - 0x16d0], 0
je 0x4bff08
cmp dword [ebp - 0x16dc], 0
je 0x4bff08
lea edx, [ebp - 0x14ec]
mov dword [ebp - 0x1814], edx
jmp 0x4bff12
mov dword [ebp - 0x1814], 0x546d39
cmp dword [ebp - 0x16d0], 0
je 0x4bff29
mov eax, dword [ebp - 0x16d0]
mov dword [ebp - 0x1818], eax
jmp 0x4bff33
mov dword [ebp - 0x1818], 0x546d3a
mov ecx, dword [ebp - 0x1810]
push ecx
mov edx, dword [ebp - 0x1814]
push edx
mov eax, dword [ebp - 0x1818]
push eax
push str._s_s_s
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14d8], edx
cmp dword [ebp - 0x14d8], 0
je 0x4bff83
mov eax, dword [ebp - 0x14d8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4bff83
mov dword [ebp - 0x14d8], 0
cmp dword [ebp - 0x16cc], 0
je 0x4bff9b
mov edx, dword [ebp - 0x16cc]
push edx
call fcn.00496150
add esp, 4
cmp dword [ebp - 0x16e0], 0
je 0x4bffb3
mov eax, dword [ebp - 0x16e0]
push eax
call fcn.00496150
add esp, 4
cmp dword [0x52f438], 0xffffffff
jne 0x4bffd2
push str.FLEXLM_USE_FINDER
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049d0e0
add esp, 8
mov dword [0x52f438], eax
cmp dword [ebp - 0x14d8], 0
jne 0x4bfff0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd4]
movsx ecx, word [eax + 0x109a]
cmp ecx, 1
jne 0x4bfff9
cmp dword [0x52f438], 0
je 0x4c000b
mov edx, dword [ebp + 8]
push edx
call fcn.004efce0
add esp, 4
mov dword [ebp - 0x14d8], eax
cmp dword [ebp - 0x14d8], 0
jne 0x4c0037
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 8]
test edx, edx
je 0x4c0037
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14d8], edx
cmp dword [ebp - 0x14d8], 0
jne 0x4c0074
push 0xc7
lea eax, [ebp - 0x17a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx ecx, byte [ebp - 0x17a8]
cmp ecx, 0x41
jne 0x4c006a
mov dword [ebp - 0x14d8], str.A:_flexlmlicense.dat
jmp 0x4c0074
mov dword [ebp - 0x14d8], str.C:_flexlmlicense.dat
mov edx, dword [ebp + 8]
push edx
call fcn.0048a390
add esp, 4
mov eax, dword [ebp - 0x14dc]
push eax
mov ecx, dword [ebp - 0x14d8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c0980
add esp, 0xc
mov dword [ebp - 0x14d8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0xffffff48
jne 0x4c00e7
cmp dword [ebp - 4], 0
je 0x4c00c1
mov ecx, dword [ebp - 4]
push ecx
call fcn.00496150
add esp, 4
cmp dword [ebp - 0x14dc], 0
je 0x4c00d9
mov edx, dword [ebp - 0x14dc]
push edx
call fcn.00496150
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
jmp 0x4c083e
mov ecx, dword [ebp - 0x14d8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c1ba0
add esp, 8
mov dword [ebp - 0x14cc], eax
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14cc]
mov dword [eax + 0xec], ecx
mov edx, dword [ebp - 0x14d8]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
add eax, 3
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x14e8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14e8]
mov dword [ecx + 0xf4], edx
mov eax, dword [ebp - 0x14cc]
lea ecx, [eax*4 + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x14c4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14c4]
mov dword [eax + 0xe4], ecx
mov edx, dword [ebp - 0x14cc]
imul edx, edx, 0x434
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x14e0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14e0]
mov dword [ecx + 0xf0], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14e0]
mov dword [eax + 0xf0], ecx
mov dword [ebp - 0x14cc], 0
mov edx, dword [ebp - 0x14d8]
push edx
mov eax, dword [ebp - 0x14e8]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
cmp dword [ebp - 0x14e8], 0
je 0x4c02d1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14cc]
cmp edx, dword [ecx + 0xec]
jle 0x4c01fe
jmp 0x4c02d1
mov eax, dword [ebp - 0x14cc]
mov ecx, dword [ebp - 0x14c4]
mov edx, dword [ebp - 0x14e8]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x14cc]
imul eax, eax, 0x434
mov ecx, dword [ebp - 0x14e0]
mov dword [ecx + eax + 4], 0
mov edx, dword [ebp - 0x14cc]
imul edx, edx, 0x434
mov eax, dword [ebp - 0x14e0]
movzx ecx, byte [eax + edx + 0x10]
or ecx, 2
mov edx, dword [ebp - 0x14cc]
imul edx, edx, 0x434
mov eax, dword [ebp - 0x14e0]
mov byte [eax + edx + 0x10], cl
mov ecx, dword [ebp - 0x14cc]
add ecx, 1
imul ecx, ecx, 0x434
add ecx, dword [ebp - 0x14e0]
mov edx, dword [ebp - 0x14cc]
imul edx, edx, 0x434
mov eax, dword [ebp - 0x14e0]
mov dword [eax + edx], ecx
mov ecx, dword [ebp - 0x14e8]
push ecx
call fcn.004c08c0
add esp, 4
mov dword [ebp - 0x14e8], eax
cmp dword [ebp - 0x14e8], 0
je 0x4c02bd
mov edx, dword [ebp - 0x14e8]
mov byte [edx], 0
mov eax, dword [ebp - 0x14e8]
add eax, 1
mov dword [ebp - 0x14e8], eax
mov ecx, dword [ebp - 0x14cc]
add ecx, 1
mov dword [ebp - 0x14cc], ecx
jmp 0x4c01db
mov edx, dword [ebp - 0x14cc]
mov eax, dword [ebp - 0x14c4]
mov dword [eax + edx*4], 0
mov ecx, dword [ebp - 0x14cc]
sub ecx, 1
imul ecx, ecx, 0x434
mov edx, dword [ebp - 0x14e0]
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 0x4c060b
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.004deee0
add esp, 8
mov dword [ebp - 0x14e0], eax
cmp dword [ebp - 0x14e0], 0
je 0x4c05f1
mov eax, dword [ebp - 0x14e0]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14e4], ecx
mov edx, dword [ebp - 0x14d4]
add edx, 1
mov dword [ebp - 0x14d4], edx
push 0x14b4
push 0
lea eax, [ebp - 0x14c0]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14c0]
push ecx
mov edx, dword [ebp - 0x14e0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004eef50
add esp, 0xc
mov dword [ebp - 0x14c8], eax
push 0x50
push 0
lea ecx, [ebp - 0x17f8]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x80
push edx
lea eax, [ebp - 0x17f8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048ac30
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xfffffff3
jne 0x4c03f7
lea eax, [ebp - 0x17f8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x80
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048ac30
add esp, 0xc
lea eax, [ebp - 0x17f8]
push eax
call fcn.0048abc0
add esp, 4
mov dword [ebp - 0x14cc], 0
mov ecx, dword [ebp - 0x14c8]
mov dword [ebp - 0x14d0], ecx
jmp 0x4c043f
mov edx, dword [ebp - 0x14d0]
mov eax, dword [edx + 0x408]
mov dword [ebp - 0x14d0], eax
mov ecx, dword [ebp - 0x14cc]
add ecx, 1
mov dword [ebp - 0x14cc], ecx
cmp dword [ebp - 0x14d0], 0
je 0x4c044a
jmp 0x4c041e
cmp dword [ebp - 0x14cc], 0
jle 0x4c0563
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 0
mov edx, dword [ebp - 0x14cc]
imul edx, edx, 0x424
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x14d0], eax
mov ecx, dword [ebp - 0x14cc]
imul ecx, ecx, 0x424
push ecx
mov edx, dword [ebp - 0x14c8]
push edx
mov eax, dword [ebp - 0x14d0]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x1800], 0
jmp 0x4c04c0
mov ecx, dword [ebp - 0x1800]
add ecx, 1
mov dword [ebp - 0x1800], ecx
mov edx, dword [ebp - 0x1800]
cmp edx, dword [ebp - 0x14cc]
jge 0x4c04fe
mov eax, dword [ebp - 0x1800]
add eax, 1
imul eax, eax, 0x424
add eax, dword [ebp - 0x14d0]
mov ecx, dword [ebp - 0x1800]
imul ecx, ecx, 0x424
mov edx, dword [ebp - 0x14d0]
mov dword [edx + ecx + 0x408], eax
jmp 0x4c04b1
mov eax, dword [ebp - 0x1800]
sub eax, 1
imul eax, eax, 0x424
mov ecx, dword [ebp - 0x14d0]
mov dword [ecx + eax + 0x408], 0
push 8
mov edx, dword [ebp + 8]
push edx
call fcn.00495f00
add esp, 8
mov dword [ebp - 0x17fc], eax
mov eax, dword [ebp - 0x17fc]
mov ecx, dword [ebp - 0x14d0]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x17fc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x17fc]
mov dword [edx + 0x150], eax
jmp 0x4c056d
mov dword [ebp - 0x14d0], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xe8]
push edx
mov eax, dword [ebp - 0x14d0]
push eax
mov ecx, dword [ebp - 0x14e0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b8f50
add esp, 0x10
mov eax, dword [ebp - 0x14c4]
add eax, 4
mov dword [ebp - 0x14c4], eax
cmp dword [ebp - 0x14e4], 1
jne 0x4c05f1
mov ecx, dword [ebp - 0x14e0]
cmp dword [ecx + 4], 3
jne 0x4c05f1
mov edx, dword [ebp - 0x14e0]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1804], eax
mov ecx, dword [ebp - 0x14e0]
mov edx, dword [ebp - 0x14e4]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x14e0]
push eax
call fcn.00499280
add esp, 4
mov ecx, dword [ebp - 0x14e0]
mov edx, dword [ebp - 0x1804]
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 0x4c030d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
and ecx, 4
jne 0x4c065c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cf4]
and ecx, 0x10
jne 0x4c065c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov dword [eax + 0x1d20], 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.004edf30
add esp, 8
test eax, eax
jne 0x4c065c
mov dword [ebp - 0x14d4], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.004ed6e0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ed1d0
add esp, 4
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004ed6e0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.004c1440
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c2050
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0
jmp 0x4c06cd
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 0x4c0708
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xe8]
imul edx, edx, 0x434
mov eax, dword [ebp + 8]
add edx, dword [eax + 0xf0]
push edx
call fcn.00499280
add esp, 4
jmp 0x4c06b8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xe8], 0
cmp dword [0x546d34], 0
je 0x4c0724
call dword [0x546d34]
cmp dword [ebp - 0x14dc], 0
je 0x4c073c
mov edx, dword [ebp - 0x14dc]
push edx
call fcn.00496150
add esp, 4
cmp dword [ebp - 4], 0
je 0x4c074e
mov eax, dword [ebp - 4]
push eax
call fcn.00496150
add esp, 4
cmp dword [ebp - 0x14d4], 0
je 0x4c07ca
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0xffffffff
je 0x4c076f
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffffc3
jne 0x4c07c4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x4c0790
xor ecx, ecx
je 0x4c0790
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x181c], eax
jmp 0x4c079a
mov dword [ebp - 0x181c], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x181c]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0048a930
add esp, 0x1c
xor eax, eax
jmp 0x4c083e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x4c07e3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x4c083e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x4c0804
xor ecx, ecx
je 0x4c0804
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x1820], eax
jmp 0x4c080e
mov dword [ebp - 0x1820], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1820]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x168
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.0048a930
add esp, 0x1c
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047294a
mov esp, ebp
pop ebp
ret