Function at 0x422511
Capabilities:
Get common file path

Disassembly:
push ebp
mov eax, 0x51f0
mov ebp, esp
call fcn.00448e60
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0x50]
cmp word [eax + 2], bx
jne 0x4225f4
push 0x3b
lea eax, [ebp - 0xaa]
push 0x49045c
push eax
call fcn.00448ae2
add esp, 0xc
lea eax, [esi + 0xa7]
cmp byte [eax], bl
jne 0x42255c
lea eax, [esi + 0x9c]
push eax
lea ecx, [ebp - 0x78]
push str._s_LICENSE_FILE
push ecx
call fcn.00448ae2
add esp, 0xc
push str.LM_LICENSE_FILE
call fcn.00419eaf
add esp, 4
mov edi, eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00419eaf
add esp, 4
test eax, eax
jne 0x4225a5
lea eax, [ebp - 0x78]
push eax
call fcn.0041b377
add esp, 4
lea eax, [ebp - 0x78]
push eax
call fcn.00419eaf
add esp, 4
mov edx, edi
test edi, edi
jne 0x4225b0
mov edx, 0x49a270
test eax, eax
je 0x4225be
lea ecx, [ebp - 0xaa]
test edi, edi
jne 0x4225c3
mov ecx, 0x49a270
test eax, eax
jne 0x4225cc
mov eax, 0x49a270
push edx
push ecx
push eax
lea edx, [ebp - 0x2adc]
push str._s_s_s
lea ebx, [ebp - 0x2adc]
push edx
call fcn.00448ae2
add esp, 0x14
cmp byte [ebp - 0x2adc], 0
jne 0x4225f4
xor ebx, ebx
cmp dword [0x492d9c], 0xffffffff
jne 0x42260f
push str.FLEXLM_USE_FINDER
call fcn.00419eaf
add esp, 4
mov dword [0x492d9c], eax
test ebx, ebx
jne 0x422620
mov eax, dword [esi + 0x50]
cmp word [eax + 0x132], 1
jne 0x422629
cmp dword [0x492d9c], 0
je 0x422634
push esi
call fcn.00429159
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x42266e
mov eax, dword [esi + 0x50]
cmp word [eax + 0xa], 0
je 0x422645
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x42266e
push 0xc7
lea eax, [ebp - 0x170]
push eax
mov ebx, str.A:_flexlmlicense.dat
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x170], 0x41
je 0x42266e
mov ebx, str.C:_flexlmlicense.dat
push esi
call fcn.00418a83
add esp, 4
lea eax, [ebp - 0x51f0]
push 0x2711
push 0
push eax
call fcn.00449290
add esp, 0xc
lea eax, [ebp - 0x51f0]
mov edi, 1
push eax
push ebx
push esi
call fcn.00422a43
add esp, 0xc
mov dword [ebp - 4], eax
push eax
call fcn.004229d1
add esp, 4
test eax, eax
je 0x4226b7
inc eax
inc edi
jmp 0x4226a6
call fcn.0044a4b8
push dword [ebp - 4]
mov dword [eax], 0
mov dword [esi + 0x68], edi
call fcn.00449210
add esp, 4
add eax, 3
push eax
push esi
call fcn.00419601
mov dword [esi + 0x70], eax
add esp, 8
mov ebx, eax
lea eax, [edi*4 + 4]
imul edi, edi, 0x2c
push eax
push esi
call fcn.00419601
add esp, 8
mov dword [ebp - 8], eax
mov dword [esi + 0x60], eax
push edi
push esi
call fcn.00419601
add esp, 8
mov dword [ebp - 0xac], eax
mov dword [esi + 0x6c], eax
test ebx, ebx
je 0x42294b
cmp dword [ebp - 8], 0
je 0x42294b
cmp dword [ebp - 0xac], 0
je 0x42294b
push dword [ebp - 4]
push ebx
mov ecx, dword [ebp - 0xac]
mov dword [esi + 0x6c], ecx
mov dword [ebp - 0x18], 0
call fcn.00449120
add esp, 8
test ebx, ebx
je 0x42278f
mov edi, dword [ebp - 0xac]
mov eax, dword [ebp - 8]
add edi, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x28]
push ebx
mov dword [eax], ebx
mov dword [edi], 0
mov dword [edi - 4], ecx
call fcn.004229d1
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x422781
mov byte [ebx], 0
inc ebx
add edi, 0x2c
inc dword [ebp - 0x18]
add dword [ebp - 4], 4
test ebx, ebx
jne 0x42275d
mov ecx, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [eax + ecx*4], edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xac]
imul eax, eax, 0x2c
mov dword [eax + ecx - 0x2c], edi
mov edx, dword [esi + 0x60]
mov dword [esi + 0x64], edi
cmp dword [edx], edi
je 0x422944
push 2
push esi
call fcn.00423cfe
add esp, 8
mov dword [ebp - 0xac], eax
cmp eax, edi
je 0x422931
add eax, 4
lea edx, [ebp - 0x3c8]
push edx
mov dword [ebp - 8], eax
mov ecx, dword [eax]
inc dword [ebp - 0xc]
push dword [ebp - 0xac]
push esi
mov dword [ebp - 0x10], ecx
call fcn.00428b5c
add esp, 0xc
lea ecx, [ebp - 0xa8]
lea ebx, [esi + 0x14]
mov dword [ebp - 4], eax
push 0x30
push edi
push ecx
call fcn.00449290
add esp, 0xc
lea eax, [ebp - 0xa8]
push ebx
push eax
push esi
call fcn.00413e37
add esp, 0xc
cmp dword [ebx], 0xfffffff3
jne 0x422834
lea eax, [ebp - 0xa8]
push eax
push ebx
push esi
call fcn.00413e37
add esp, 0xc
cmp dword [ebp - 0x84], edi
je 0x42284a
push dword [ebp - 0x84]
call fcn.00448616
add esp, 4
cmp dword [ebp - 0x94], edi
je 0x422860
push dword [ebp - 0x94]
call fcn.00448616
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], edi
cmp eax, edi
je 0x422874
mov eax, dword [eax + 0x48]
inc dword [ebp - 0x18]
test eax, eax
jne 0x42286a
cmp dword [ebp - 0x18], edi
jle 0x4228f4
call fcn.0044a4b8
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x78
push eax
mov dword [ebp - 0x14], eax
push esi
call fcn.00419601
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x42299a
push dword [ebp - 0x14]
push dword [ebp - 4]
push ebx
call fcn.004492f0
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x18], edi
jle 0x4228c9
lea ecx, [ebx + 0x48]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 0x30]
mov dword [ecx], edx
add ecx, 0x78
dec dword [ebp - 0x18]
jne 0x4228bc
imul eax, eax, 0x78
push 8
push esi
mov dword [eax + ebx - 0x30], edi
call fcn.00419601
add esp, 8
test eax, eax
je 0x42299f
lea ecx, [esi + 0x1a4]
mov dword [eax + 4], ebx
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [ecx], eax
jmp 0x4228f6
xor ebx, ebx
push dword [esi + 0x64]
push ebx
push dword [ebp - 0xac]
push esi
call fcn.0041e8f2
add esp, 0x10
cmp dword [ebp - 0x10], 1
jne 0x422931
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
cmp ebx, 3
jne 0x422931
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push dword [ebp - 0xac]
call fcn.0042318b
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], ebx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
inc eax
mov dword [esi + 0x64], eax
cmp dword [ecx + eax*4], edi
jne 0x4227b8
mov dword [esi + 0x64], 0
push esi
call fcn.00425f4b
add esp, 4
push esi
call fcn.0042898f
add esp, 4
cmp dword [0x4a54b0], 0
je 0x42296c
call dword [0x4a54b0]
cmp dword [ebp - 0xc], 0
mov eax, dword [esi + 0x14]
je 0x4229a4
cmp eax, 0xffffffff
je 0x42297f
cmp eax, 0xffffffc3
jne 0x422996
xor eax, eax
push 0xff
push eax
mov dword [esi + 0x14], eax
push eax
push eax
push eax
push esi
call fcn.00413cf0
add esp, 0x18
xor eax, eax
jmp 0x4229ca
mov eax, dword [esi + 0x14]
jmp 0x4229ca
mov eax, dword [esi + 0x14]
jmp 0x4229ca
test eax, eax
jne 0x4229ca
mov edi, 0xffffffff
push 0xff
push 0
mov dword [esi + 0x14], edi
push 0
push 0x168
push edi
push esi
call fcn.00413cf0
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret