Function at 0x540ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6323b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x6d8314]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push esi
push edi
mov eax, dword [0x6d8314]
xor eax, esp
push eax
lea eax, [esp + 0x2d0]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x578]
test ecx, ecx
je 0x540cf3
push 1
call fcn.005c52a0
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
push 0x50
mov dword [esp + 0x2dc], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp eax, 1
jle 0x540dad
push 2
mov ecx, edi
call fcn.004fd130
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov edi, eax
test edi, edi
je 0x540dad
push 8
push str.monitor
lea ecx, [esp + 0x64]
call fcn.00428400
mov edx, edi
lea ecx, [esp + 0x44]
call fcn.00432700
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x2e4], 1
call fcn.00431600
mov byte [esp + 0x2d8], 0
cmp dword [esp + 0x58], 8
jb 0x540d87
push dword [esp + 0x44]
call esi
add esp, 4
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
push str.param__s
push 0x7f3
push str.view::RootWindow::onMultiInstanceClicked
call fcn.00584a40
add esp, 0x10
lea ecx, [esp + 0x44]
call fcn.004f50b0
push eax
lea ecx, [esp + 0x18]
call fcn.0041af00
mov byte [esp + 0x2d8], 2
cmp dword [esp + 0x58], 8
jb 0x540dd8
push dword [esp + 0x44]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
cmp dword [esp + 0x28], 8
mov word [esp + 0x44], ax
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
push str.find_multi_by_register__s
push 0x7f9
push str.view::RootWindow::onMultiInstanceClicked
mov dword [esp + 0x64], 0
call fcn.00584a40
add esp, 0x10
cmp dword [esp + 0x24], 0
je 0x540e58
push 0x13
push str.dnmultiplayerex.exe
lea ecx, [esp + 0x1c]
call fcn.00428400
lea eax, [esp + 0x14]
push eax
call fcn.00598180
add esp, 4
test al, al
je 0x540e58
push 1
push 0
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00596380
add esp, 0x10
jmp 0x541360
xor eax, eax
push 0x206
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x540e9d
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xa8]
call fcn.00415d10
mov byte [esp + 0x2d8], 3
cmp dword [esp + 0xb4], 0
je 0x540fa7
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
push 0x682fb0
lea edx, [esp + 0xa8]
mov byte [esp + 0x2dc], 4
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x2d8], 5
push ecx
push eax
call fcn.005950f0
add esp, 8
mov byte [esp + 0x2d8], 4
cmp dword [esp + 0x40], 8
jb 0x540f2c
push dword [esp + 0x2c]
call esi
add esp, 4
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
push str.find_multi_by_shortcut__s
push 0x80c
push str.view::RootWindow::onMultiInstanceClicked
call fcn.00584a40
lea eax, [esp + 0x54]
push eax
call fcn.00598180
add esp, 0x14
test al, al
je 0x540f8f
push 1
push 0
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00596380
add esp, 0x10
cmp dword [esp + 0x58], 8
jb 0x54132a
push dword [esp + 0x44]
call esi
add esp, 4
jmp 0x54132a
mov byte [esp + 0x2d8], 3
cmp dword [esp + 0x58], 8
jb 0x540fa7
push dword [esp + 0x44]
call esi
add esp, 4
lea eax, [esp + 0x2c]
push eax
call fcn.00598920
mov edi, eax
add esp, 4
lea eax, [esp + 0x14]
cmp eax, edi
je 0x540fef
cmp dword [esp + 0x28], 8
jb 0x540fce
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0041aea0
cmp dword [esp + 0x40], 8
jb 0x540fff
push dword [esp + 0x2c]
call esi
add esp, 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00597f80
mov edi, eax
add esp, 8
lea eax, [esp + 0x14]
cmp eax, edi
je 0x54104c
cmp dword [esp + 0x28], 8
jb 0x54102b
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0041aea0
cmp dword [esp + 0x40], 8
jb 0x54105c
push dword [esp + 0x2c]
call esi
add esp, 4
push 0xd
push str.ldmutiplayer_
lea ecx, [esp + 0x1c]
call fcn.00428400
push str.dnmultiplayerex.exe
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
push eax
mov byte [esp + 0x2dc], 6
call fcn.00598180
add esp, 4
mov byte [esp + 0x2d8], 3
cmp dword [esp + 0x40], 8
mov bl, al
jb 0x5410ac
push dword [esp + 0x2c]
call esi
add esp, 4
test bl, bl
je 0x5410f8
push str.dnmultiplayerex.exe
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
push 1
push 0
lea ecx, [esp + 0x64]
mov byte [esp + 0x2e0], 7
push ecx
push eax
call fcn.00596380
add esp, 0x10
cmp dword [esp + 0x40], 8
jb 0x54132a
push dword [esp + 0x2c]
call esi
add esp, 4
jmp 0x54132a
lea eax, [esp + 0x8c]
push eax
call fcn.00598920
add esp, 4
push str.ldmutiplayer_
lea edx, [esp + 0x90]
mov byte [esp + 0x2dc], 8
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d8], 9
push ecx
push eax
call fcn.005982d0
add esp, 8
mov byte [esp + 0x2d8], 8
cmp dword [esp + 0x40], 8
jb 0x541156
push dword [esp + 0x2c]
call esi
add esp, 4
push str.010502
lea ecx, [esp + 0x30]
call fcn.00415d10
mov edx, eax
mov byte [esp + 0x2d8], 0xa
lea ecx, [esp + 0x14]
call fcn.004f51f0
mov byte [esp + 0x2d8], 8
cmp dword [esp + 0x40], 8
jb 0x54118f
push dword [esp + 0x2c]
call esi
add esp, 4
push str.vmsconfigleidians.config
lea edx, [esp + 0x90]
lea ecx, [esp + 0x78]
call fcn.00429ac0
add esp, 4
lea eax, [esp + 0x74]
mov byte [esp + 0x2d8], 0xb
push eax
call fcn.00598180
add esp, 4
test al, al
je 0x541285
push str.vms_
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
push eax
mov byte [esp + 0x2dc], 0xc
call fcn.005981a0
add esp, 4
mov byte [esp + 0x2d8], 0xb
cmp dword [esp + 0x40], 8
jb 0x541202
push dword [esp + 0x2c]
call esi
add esp, 4
push str.vmsconfig
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
push eax
mov byte [esp + 0x2dc], 0xd
call fcn.005981a0
add esp, 4
mov byte [esp + 0x2d8], 0xb
cmp dword [esp + 0x40], 8
jb 0x541240
push dword [esp + 0x2c]
call esi
add esp, 4
push str.vmsconfigleidians.config
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
push 1
push eax
lea eax, [esp + 0x7c]
mov byte [esp + 0x2e0], 0xe
push eax
call fcn.00598260
add esp, 0xc
mov byte [esp + 0x2d8], 0xb
cmp dword [esp + 0x40], 8
jb 0x541285
push dword [esp + 0x2c]
call esi
add esp, 4
push str.dnmultiplayerex.exe
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00429ac0
add esp, 4
push 1
push 0
lea ecx, [esp + 0x64]
mov byte [esp + 0x2e0], 0xf
push ecx
push eax
call fcn.00596380
add esp, 0x10
cmp dword [esp + 0x40], 8
jb 0x5412c4
push dword [esp + 0x2c]
call esi
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x5412d7
push dword [esp + 0x74]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
cmp dword [esp + 0xa0], 8
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
jb 0x54130a
push dword [esp + 0x8c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
cmp dword [esp + 0xb8], 8
jb 0x541340
push dword [esp + 0xa4]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
cmp dword [esp + 0x28], 8
jb 0x541370
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
cmp dword [esp + 0x70], 8
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
jb 0x541397
push dword [esp + 0x5c]
call esi
add esp, 4
mov ecx, dword [esp + 0x2d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.006116d0
mov esp, ebp
pop ebp
ret 4