Function at 0x5272c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1820
call fcn.0049d0d0
mov eax, dword [0x5dca44]
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.00509c00
add esp, 8
mov dword [ebp - 0x14dc], eax
push 0x5141
mov ecx, dword [ebp + 8]
push ecx
call fcn.00509c00
add esp, 8
mov dword [ebp - 4], eax
push 0x14b4
push 0
lea edx, [ebp - 0x14c0]
push edx
call fcn.0049d100
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 2]
test edx, edx
jne 0x52768f
mov byte [ebp - 0x16c8], 0
push 0x63
push 0
lea eax, [ebp - 0x16c7]
push eax
call fcn.0049d100
add esp, 0xc
mov byte [ebp - 0x1558], 0
push 0x63
push 0
lea ecx, [ebp - 0x1557]
push ecx
call fcn.0049d100
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 fcn.0049d100
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.0051a810
add esp, 4
mov dword [ebp - 0x16d4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.0051a910
add esp, 4
mov dword [ebp - 0x16d8], eax
push 0x5141
mov eax, dword [ebp + 8]
push eax
call fcn.00509c00
add esp, 8
mov dword [ebp - 0x16e0], eax
push 0x3b
push 0x5cba54
lea ecx, [ebp - 0x14ec]
push ecx
call fcn.0049cf34
add esp, 0xc
mov edx, dword [ebp - 0x16d8]
movsx eax, byte [edx]
test eax, eax
je 0x527446
mov ecx, dword [ebp - 0x16d8]
mov dword [ebp - 0x1808], ecx
jmp 0x527452
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 fcn.0049cf34
add esp, 0xc
mov edx, dword [ebp - 0x16d8]
movsx eax, byte [edx]
test eax, eax
je 0x527488
mov ecx, dword [ebp - 0x16d8]
mov dword [ebp - 0x180c], ecx
jmp 0x527494
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 fcn.0049cf34
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.00511900
add esp, 0x10
mov dword [ebp - 0x16dc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
and edx, 0x10
je 0x527516
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
and ecx, 0x2000000
jne 0x527516
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.005124e0
add esp, 8
mov dword [ebp - 0x16d0], eax
mov eax, dword [ebp - 0x16d0]
mov dword [ebp - 0x16cc], eax
jmp 0x52759a
push 0x104
lea ecx, [ebp - 0x1660]
push ecx
lea edx, [ebp - 0x16c8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00511900
add esp, 0x10
mov dword [ebp - 0x16d0], eax
cmp dword [ebp - 0x16d0], 0
jne 0x52759a
lea ecx, [ebp - 0x1558]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00511de0
add esp, 8
mov dword [ebp - 0x16d0], eax
cmp dword [ebp - 0x16d0], 0
jne 0x52759a
lea eax, [ebp - 0x16c8]
push eax
call fcn.00512c50
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.00511900
add esp, 0x10
mov dword [ebp - 0x16d0], eax
cmp dword [ebp - 4], 0
je 0x52763f
cmp dword [ebp - 0x16dc], 0
je 0x5275bb
mov ecx, dword [ebp - 0x16dc]
mov dword [ebp - 0x1810], ecx
jmp 0x5275c5
mov dword [ebp - 0x1810], 0x5e60a8
cmp dword [ebp - 0x16d0], 0
je 0x5275e5
cmp dword [ebp - 0x16dc], 0
je 0x5275e5
lea edx, [ebp - 0x14ec]
mov dword [ebp - 0x1814], edx
jmp 0x5275ef
mov dword [ebp - 0x1814], 0x5e60a9
cmp dword [ebp - 0x16d0], 0
je 0x527606
mov eax, dword [ebp - 0x16d0]
mov dword [ebp - 0x1818], eax
jmp 0x527610
mov dword [ebp - 0x1818], 0x5e60aa
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 fcn.0049cf34
add esp, 0x14
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14d8], edx
cmp dword [ebp - 0x14d8], 0
je 0x52765f
mov eax, dword [ebp - 0x14d8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x52765f
mov dword [ebp - 0x14d8], 0
cmp dword [ebp - 0x16cc], 0
je 0x527677
mov edx, dword [ebp - 0x16cc]
push edx
call fcn.00509e30
add esp, 4
cmp dword [ebp - 0x16e0], 0
je 0x52768f
mov eax, dword [ebp - 0x16e0]
push eax
call fcn.00509e30
add esp, 4
cmp dword [0x5cba50], 0xffffffff
jne 0x5276ae
push str.FLEXLM_USE_FINDER
mov ecx, dword [ebp + 8]
push ecx
call fcn.00511de0
add esp, 8
mov dword [0x5cba50], eax
cmp dword [ebp - 0x14d8], 0
jne 0x5276cc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd4]
movsx ecx, word [eax + 0x109e]
cmp ecx, 1
jne 0x5276d5
cmp dword [0x5cba50], 0
je 0x5276e7
mov edx, dword [ebp + 8]
push edx
call fcn.0054ee80
add esp, 4
mov dword [ebp - 0x14d8], eax
cmp dword [ebp - 0x14d8], 0
jne 0x527713
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 8]
test edx, edx
je 0x527713
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 0x527750
push 0xc7
lea eax, [ebp - 0x17a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx ecx, byte [ebp - 0x17a8]
cmp ecx, 0x41
jne 0x527746
mov dword [ebp - 0x14d8], str.A:_flexlmlicense.dat
jmp 0x527750
mov dword [ebp - 0x14d8], str.C:_flexlmlicense.dat
mov edx, dword [ebp + 8]
push edx
call fcn.004f7620
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.00528060
add esp, 0xc
mov dword [ebp - 0x14d8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0xffffff48
jne 0x5277c3
cmp dword [ebp - 4], 0
je 0x52779d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00509e30
add esp, 4
cmp dword [ebp - 0x14dc], 0
je 0x5277b5
mov edx, dword [ebp - 0x14dc]
push edx
call fcn.00509e30
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
jmp 0x527f18
mov ecx, dword [ebp - 0x14d8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00529220
add esp, 8
mov dword [ebp - 0x14cc], eax
call fcn.0049fc65
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.0049fd40
add esp, 4
add eax, 3
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00509c00
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.00509c00
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.00509c00
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.0049f6a0
add esp, 8
cmp dword [ebp - 0x14e8], 0
je 0x5279ac
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14cc]
cmp edx, dword [ecx + 0xec]
jle 0x5278d9
jmp 0x5279ac
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.00527fa0
add esp, 4
mov dword [ebp - 0x14e8], eax
cmp dword [ebp - 0x14e8], 0
je 0x527998
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 0x5278b6
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 0x527ce5
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00509f00
add esp, 8
mov dword [ebp - 0x14e0], eax
cmp dword [ebp - 0x14e0], 0
je 0x527ccb
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.0049d100
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.004efd80
add esp, 0xc
mov dword [ebp - 0x14c8], eax
push 0x50
push 0
lea ecx, [ebp - 0x17f8]
push ecx
call fcn.0049d100
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.004f3b10
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xfffffff3
jne 0x527ad2
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.004f3b10
add esp, 0xc
lea eax, [ebp - 0x17f8]
push eax
call fcn.004f3aa0
add esp, 4
mov dword [ebp - 0x14cc], 0
mov ecx, dword [ebp - 0x14c8]
mov dword [ebp - 0x14d0], ecx
jmp 0x527b1a
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 0x527b25
jmp 0x527af9
cmp dword [ebp - 0x14cc], 0
jle 0x527c3d
call fcn.0049fc65
mov dword [eax], 0
mov edx, dword [ebp - 0x14cc]
imul edx, edx, 0x424
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00509c00
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.0049d180
add esp, 0xc
mov dword [ebp - 0x1800], 0
jmp 0x527b9a
mov ecx, dword [ebp - 0x1800]
add ecx, 1
mov dword [ebp - 0x1800], ecx
mov edx, dword [ebp - 0x1800]
cmp edx, dword [ebp - 0x14cc]
jge 0x527bd8
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 0x527b8b
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.00509c00
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 0x527c47
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.0051f930
add esp, 0x10
mov eax, dword [ebp - 0x14c4]
add eax, 4
mov dword [ebp - 0x14c4], eax
cmp dword [ebp - 0x14e4], 1
jne 0x527ccb
mov ecx, dword [ebp - 0x14e0]
cmp dword [ecx + 4], 3
jne 0x527ccb
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.00509100
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 0x5279e8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
and ecx, 4
jne 0x527d36
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1d00]
and ecx, 0x10
jne 0x527d36
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov dword [eax + 0x1d2c], 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0054ede0
add esp, 8
test eax, eax
jne 0x527d36
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.0054e590
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00542230
add esp, 4
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0054e590
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.00528ad0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.005296d0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0
jmp 0x527da7
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 0x527de2
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.00509100
add esp, 4
jmp 0x527d92
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xe8], 0
cmp dword [0x5e60a4], 0
je 0x527dfe
call dword [0x5e60a4]
cmp dword [ebp - 0x14dc], 0
je 0x527e16
mov edx, dword [ebp - 0x14dc]
push edx
call fcn.00509e30
add esp, 4
cmp dword [ebp - 4], 0
je 0x527e28
mov eax, dword [ebp - 4]
push eax
call fcn.00509e30
add esp, 4
cmp dword [ebp - 0x14d4], 0
je 0x527ea4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0xffffffff
je 0x527e49
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffffc3
jne 0x527e9e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x527e6a
xor ecx, ecx
je 0x527e6a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x181c], eax
jmp 0x527e74
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.004f3810
add esp, 0x1c
xor eax, eax
jmp 0x527f18
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x527ebd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
jmp 0x527f18
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x527ede
xor ecx, ecx
je 0x527ede
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x1820], eax
jmp 0x527ee8
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.004f3810
add esp, 0x1c
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049c81f
mov esp, ebp
pop ebp
ret