Function at 0x496b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3718
call fcn.00409790
mov eax, dword [0x563a68]
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.00499500
add esp, 8
mov dword [ebp - 0x14dc], eax
push 0x5141
mov ecx, dword [ebp + 8]
push ecx
call fcn.00499500
add esp, 8
mov dword [ebp - 4], eax
push 0x14b4
push 0
lea edx, [ebp - 0x14c0]
push edx
call fcn.004054d0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 2]
test edx, edx
jne 0x496f4f
mov byte [ebp - 0x35c0], 0
push 0x63
push 0
lea eax, [ebp - 0x35bf]
push eax
call fcn.004054d0
add esp, 0xc
mov byte [ebp - 0x1558], 0
push 0x63
push 0
lea ecx, [ebp - 0x1557]
push ecx
call fcn.004054d0
add esp, 0xc
mov dword [ebp - 0x35d8], 0
mov dword [ebp - 0x35d4], 0
mov dword [ebp - 0x35c8], 0
mov dword [ebp - 0x35c4], 0
mov byte [ebp - 0x3558], 0
push 0x1fff
push 0
lea edx, [ebp - 0x3557]
push edx
call fcn.004054d0
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.004939a0
add esp, 4
mov dword [ebp - 0x35cc], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00493aa0
add esp, 4
mov dword [ebp - 0x35d0], eax
push 0x5141
mov eax, dword [ebp + 8]
push eax
call fcn.00499500
add esp, 8
mov dword [ebp - 0x35d8], eax
push 0x3b
push 0x56f66c
lea ecx, [ebp - 0x14ec]
push ecx
call fcn.004633a8
add esp, 0xc
mov edx, dword [ebp - 0x35d0]
movsx eax, byte [edx]
test eax, eax
je 0x496d06
mov ecx, dword [ebp - 0x35d0]
mov dword [ebp - 0x3700], ecx
jmp 0x496d12
mov edx, dword [ebp - 0x35cc]
mov dword [ebp - 0x3700], edx
mov eax, dword [ebp - 0x3700]
push eax
push str._s_LICENSE_FILE
lea ecx, [ebp - 0x35c0]
push ecx
call fcn.004633a8
add esp, 0xc
mov edx, dword [ebp - 0x35d0]
movsx eax, byte [edx]
test eax, eax
je 0x496d48
mov ecx, dword [ebp - 0x35d0]
mov dword [ebp - 0x3704], ecx
jmp 0x496d54
mov edx, dword [ebp - 0x35cc]
mov dword [ebp - 0x3704], edx
mov eax, dword [ebp - 0x3704]
push eax
push str._s_LF
lea ecx, [ebp - 0x1558]
push ecx
call fcn.004633a8
add esp, 0xc
push 0x5140
mov edx, dword [ebp - 0x35d8]
push edx
push str.LM_LICENSE_FILE
mov eax, dword [ebp + 8]
push eax
call fcn.0048e260
add esp, 0x10
mov dword [ebp - 0x35d4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x13c]
and edx, 0x10
je 0x496dd6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
and ecx, 0x2000000
jne 0x496dd6
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0048ee50
add esp, 8
mov dword [ebp - 0x35c8], eax
mov eax, dword [ebp - 0x35c8]
mov dword [ebp - 0x35c4], eax
jmp 0x496e5a
push 0x2000
lea ecx, [ebp - 0x3558]
push ecx
lea edx, [ebp - 0x35c0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048e260
add esp, 0x10
mov dword [ebp - 0x35c8], eax
cmp dword [ebp - 0x35c8], 0
jne 0x496e5a
lea ecx, [ebp - 0x1558]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048e740
add esp, 8
mov dword [ebp - 0x35c8], eax
cmp dword [ebp - 0x35c8], 0
jne 0x496e5a
lea eax, [ebp - 0x35c0]
push eax
call fcn.0048d490
add esp, 4
push 0x2000
lea ecx, [ebp - 0x3558]
push ecx
lea edx, [ebp - 0x35c0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048e260
add esp, 0x10
mov dword [ebp - 0x35c8], eax
cmp dword [ebp - 4], 0
je 0x496eff
cmp dword [ebp - 0x35d4], 0
je 0x496e7b
mov ecx, dword [ebp - 0x35d4]
mov dword [ebp - 0x3708], ecx
jmp 0x496e85
mov dword [ebp - 0x3708], 0x58b5a4
cmp dword [ebp - 0x35c8], 0
je 0x496ea5
cmp dword [ebp - 0x35d4], 0
je 0x496ea5
lea edx, [ebp - 0x14ec]
mov dword [ebp - 0x370c], edx
jmp 0x496eaf
mov dword [ebp - 0x370c], 0x58b5a5
cmp dword [ebp - 0x35c8], 0
je 0x496ec6
mov eax, dword [ebp - 0x35c8]
mov dword [ebp - 0x3710], eax
jmp 0x496ed0
mov dword [ebp - 0x3710], 0x58b5a6
mov ecx, dword [ebp - 0x3708]
push ecx
mov edx, dword [ebp - 0x370c]
push edx
mov eax, dword [ebp - 0x3710]
push eax
push str._s_s_s
mov ecx, dword [ebp - 4]
push ecx
call fcn.004633a8
add esp, 0x14
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14d8], edx
cmp dword [ebp - 0x14d8], 0
je 0x496f1f
mov eax, dword [ebp - 0x14d8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x496f1f
mov dword [ebp - 0x14d8], 0
cmp dword [ebp - 0x35c4], 0
je 0x496f37
mov edx, dword [ebp - 0x35c4]
push edx
call fcn.00499750
add esp, 4
cmp dword [ebp - 0x35d8], 0
je 0x496f4f
mov eax, dword [ebp - 0x35d8]
push eax
call fcn.00499750
add esp, 4
cmp dword [0x56f668], 0xffffffff
jne 0x496f6e
push str.FLEXLM_USE_FINDER
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048e740
add esp, 8
mov dword [0x56f668], eax
cmp dword [ebp - 0x14d8], 0
jne 0x496f8c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd4]
movsx ecx, word [eax + 0x10ca]
cmp ecx, 1
jne 0x496f95
cmp dword [0x56f668], 0
je 0x496fa7
mov edx, dword [ebp + 8]
push edx
call fcn.004e5f00
add esp, 4
mov dword [ebp - 0x14d8], eax
cmp dword [ebp - 0x14d8], 0
jne 0x496fd3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 8]
test edx, edx
je 0x496fd3
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 0x497010
push 0xc7
lea eax, [ebp - 0x36a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx ecx, byte [ebp - 0x36a0]
cmp ecx, 0x41
jne 0x497006
mov dword [ebp - 0x14d8], str.A:_flexlmlicense.dat
jmp 0x497010
mov dword [ebp - 0x14d8], str.C:_flexlmlicense.dat
mov edx, dword [ebp + 8]
push edx
call fcn.00486e30
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.00497c20
add esp, 0xc
mov dword [ebp - 0x14d8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0xffffff48
jne 0x497083
cmp dword [ebp - 4], 0
je 0x49705d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00499750
add esp, 4
cmp dword [ebp - 0x14dc], 0
je 0x497075
mov edx, dword [ebp - 0x14dc]
push edx
call fcn.00499750
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
jmp 0x497830
mov ecx, dword [ebp - 0x14d8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00498ee0
add esp, 8
mov dword [ebp - 0x14cc], eax
call fcn.00402cf0
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 fcn.004035e0
add esp, 4
add eax, 3
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00499500
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.00499500
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.00499500
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 fcn.004639c0
add esp, 8
cmp dword [ebp - 0x14e8], 0
je 0x49726c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14cc]
cmp edx, dword [ecx + 0xec]
jle 0x497199
jmp 0x49726c
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.004978b0
add esp, 4
mov dword [ebp - 0x14e8], eax
cmp dword [ebp - 0x14e8], 0
je 0x497258
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 0x497176
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 0x4975a5
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.004bd070
add esp, 8
mov dword [ebp - 0x14e0], eax
cmp dword [ebp - 0x14e0], 0
je 0x49758b
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 fcn.004054d0
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.004a5e90
add esp, 0xc
mov dword [ebp - 0x14c8], eax
push 0x50
push 0
lea ecx, [ebp - 0x36f0]
push ecx
call fcn.004054d0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x80
push edx
lea eax, [ebp - 0x36f0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004962e0
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xfffffff3
jne 0x497392
lea eax, [ebp - 0x36f0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x80
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004962e0
add esp, 0xc
lea eax, [ebp - 0x36f0]
push eax
call fcn.00496270
add esp, 4
mov dword [ebp - 0x14cc], 0
mov ecx, dword [ebp - 0x14c8]
mov dword [ebp - 0x14d0], ecx
jmp 0x4973da
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 0x4973e5
jmp 0x4973b9
cmp dword [ebp - 0x14cc], 0
jle 0x4974fd
call fcn.00402cf0
mov dword [eax], 0
mov edx, dword [ebp - 0x14cc]
imul edx, edx, 0x424
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00499500
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 fcn.00404070
add esp, 0xc
mov dword [ebp - 0x36f8], 0
jmp 0x49745a
mov ecx, dword [ebp - 0x36f8]
add ecx, 1
mov dword [ebp - 0x36f8], ecx
mov edx, dword [ebp - 0x36f8]
cmp edx, dword [ebp - 0x14cc]
jge 0x497498
mov eax, dword [ebp - 0x36f8]
add eax, 1
imul eax, eax, 0x424
add eax, dword [ebp - 0x14d0]
mov ecx, dword [ebp - 0x36f8]
imul ecx, ecx, 0x424
mov edx, dword [ebp - 0x14d0]
mov dword [edx + ecx + 0x408], eax
jmp 0x49744b
mov eax, dword [ebp - 0x36f8]
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.00499500
add esp, 8
mov dword [ebp - 0x36f4], eax
mov eax, dword [ebp - 0x36f4]
mov ecx, dword [ebp - 0x14d0]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x36f4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x158]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x36f4]
mov dword [edx + 0x158], eax
jmp 0x497507
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.004a05d0
add esp, 0x10
mov eax, dword [ebp - 0x14c4]
add eax, 4
mov dword [ebp - 0x14c4], eax
cmp dword [ebp - 0x14e4], 1
jne 0x49758b
mov ecx, dword [ebp - 0x14e0]
cmp dword [ecx + 4], 3
jne 0x49758b
mov edx, dword [ebp - 0x14e0]
mov eax, dword [edx + 4]
mov dword [ebp - 0x36fc], 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.004c0af0
add esp, 4
mov ecx, dword [ebp - 0x14e0]
mov edx, dword [ebp - 0x36fc]
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 0x4972a8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
and ecx, 4
jne 0x4975f6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d28]
and ecx, 0x10
jne 0x4975f6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov dword [eax + 0x1d54], 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e51f0
add esp, 8
test eax, eax
jne 0x4975f6
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.004e49a0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e4490
add esp, 4
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004e49a0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.00498710
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004993d0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0
jmp 0x497667
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 0x4976a2
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.004c0af0
add esp, 4
jmp 0x497652
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xe8], 0
cmp dword [0x58b5a0], 0
je 0x4976be
call dword [0x58b5a0]
cmp dword [ebp - 0x14dc], 0
je 0x4976d6
mov edx, dword [ebp - 0x14dc]
push edx
call fcn.00499750
add esp, 4
cmp dword [ebp - 4], 0
je 0x4976e8
mov eax, dword [ebp - 4]
push eax
call fcn.00499750
add esp, 4
cmp dword [ebp - 0x14d4], 0
je 0x4977b6
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0xffffffff
je 0x497755
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffffc3
je 0x497755
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0xfffffff1
je 0x497755
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0xffffffe2
je 0x497755
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffffa0
je 0x497755
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0xffffffc2
je 0x497755
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0xffffffef
je 0x497755
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xfffffff0
jne 0x4977b0
cmp dword [ebp + 8], 0
je 0x4977b0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x49777c
xor ecx, ecx
je 0x49777c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x3714], eax
jmp 0x497786
mov dword [ebp - 0x3714], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3714]
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.00495fc0
add esp, 0x1c
xor eax, eax
jmp 0x497830
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x4977cf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x497830
cmp dword [ebp + 8], 0
je 0x49782d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x4977f6
xor ecx, ecx
je 0x4977f6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x3718], eax
jmp 0x497800
mov dword [ebp - 0x3718], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3718]
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.00495fc0
add esp, 0x1c
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040526d
mov esp, ebp
pop ebp
ret