Function at 0x4ab990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a0a8
mov eax, dword fs:[0]
push eax
mov eax, 0x14a3c
call fcn.0050c350
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1498c], 0
mov dword [ebp - 0x14988], 0
mov dword [ebp - 0x14988], 7
mov dword [ebp - 0x1498c], 0
mov word [ebp - 0x1499c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14944], eax
mov dword [ebp - 0x14940], eax
mov dword [ebp - 0x14940], 7
mov dword [ebp - 0x14944], eax
mov word [ebp - 0x14954], ax
mov byte [ebp - 4], 1
push 0xa280
push eax
lea eax, [ebp - 0x14920]
push eax
call fcn.005032d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.005032d0
add esp, 0xc
mov ecx, 0x5be200
push str.MAIN_FRAMEHOMEMOUNT
push str.WindowToolBarClass
call fcn.0045eec0
test eax, eax
je 0x4aba7b
lea eax, [ebp - 0x1499c]
mov ecx, 0x5be200
push eax
push str.OPEN_FILE
push str.SysDialog
call fcn.0045ec80
mov eax, dword [0x5be360]
and eax, 0x400
or eax, 0
jne 0x4abac6
cmp dword [0x5be3ac], 8
mov eax, 0x5be398
push 0
cmovae eax, dword [0x5be398]
push eax
call fcn.005008a4
add esp, 8
cmp eax, 0xffffffff
je 0x4abac6
push 0xffffffffffffffff
push 0
push 0x5be398
lea ecx, [ebp - 0x14954]
call fcn.00401c40
jmp 0x4abbc1
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x14a2c], 0
push 0
push eax
call fcn.005032d0
add esp, 0xc
lea eax, [ebp - 0x14a2c]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x14a2c]
test eax, eax
je 0x4abbc1
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4abbc1
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x1496c]
call fcn.00421630
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1495c]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x4abb48
push str.invalid_string_position
call fcn.004ffb7d
cmp dword [ebp - 0x14958], 8
lea eax, [ebp - 0x1496c]
cmovae eax, dword [ebp - 0x1496c]
cmp word [eax + ecx*2], 0x5c
je 0x4abb73
push 0x571f54
lea ecx, [ebp - 0x1496c]
call fcn.0040e370
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1496c]
push eax
lea ecx, [ebp - 0x14954]
call fcn.00401c40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14958], 8
jb 0x4abba4
push dword [ebp - 0x1496c]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14958], 7
mov dword [ebp - 0x1495c], 0
mov word [ebp - 0x1496c], ax
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x1493c]
push 2
push 0
push 0
push 0
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x149b4], 0
mov dword [ebp - 0x149b0], 0
mov dword [ebp - method.OpenFileDlg.virtual_0], vtable.OpenFileDlg.0
mov dword [ebp - 0x149b0], 7
mov dword [ebp - 0x149b4], 0
mov word [ebp - 0x149c4], ax
mov byte [ebp - 4], 3
push 0x58
push eax
mov dword [ebp - 0x149a8], eax
lea eax, [ebp - 0x14a24]
push eax
call fcn.005032d0
add esp, 0xc
mov byte [ebp - 4], 4
xor edx, edx
cmp dword [0x5be24c], edx
lea ecx, [ebp - 0x14954]
setne dl
cmp dword [ebp - 0x14940], 8
cmovae ecx, dword [ebp - 0x14954]
xor eax, eax
test edx, edx
sete al
push eax
push ecx
push ecx
lea eax, [ebp - 0x14920]
push eax
push ecx
push dword [0x5bdd04]
lea ecx, [ebp - 0x14a28]
call fcn.00420970
test eax, eax
je 0x4ac0ef
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x14a48]
push eax
call ebx
mov ecx, dword [0x5be230]
mov eax, dword [ecx + 0xbc]
mov esi, dword [eax + 0xba0]
mov eax, dword [ecx]
call dword [eax + 0x78]
movzx eax, word [ebp - 0x149ec]
push eax
lea eax, [ebp - 0x14920]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx eax, word [ebp - 0x149ec]
add eax, eax
cmp eax, 0x208
jae 0x4ac1c3
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x4abd10
push 0x571f54
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00501676
add esp, 0xc
movzx eax, word [ebp - 0x149ec]
lea edi, [ebp - 0x14920]
mov dword [ebp - 0x14928], 0
mov dword [ebp - 0x14924], 0
mov dword [ebp - 0x14a2c], 0xffffffff
lea edi, [edi + eax*2]
mov dword [ebp - 0x14924], 7
xor eax, eax
mov dword [ebp - 0x14928], 0
mov word [ebp - 0x14938], ax
mov byte [ebp - 4], 5
cmp word [edi], ax
je 0x4abe9b
jmp 0x4abd70
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x14a48]
push 2
push 0
push 0
push 0
push eax
call ebx
push 0xa280
lea eax, [ebp - 0xa6a0]
push 0
push eax
call fcn.005032d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa6a0]
push eax
call esi
push edi
lea eax, [ebp - 0xa6a0]
push eax
call esi
lea edx, [ebp - 0x14938]
lea ecx, [ebp - 0xa6a0]
call fcn.004c1480
test eax, eax
jne 0x4abe04
cmp word [ebp - 0xa6a0], ax
jne 0x4abdd9
xor ecx, ecx
jmp 0x4abdf1
lea ecx, [ebp - 0xa6a0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4abde2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa6a0]
push eax
lea ecx, [ebp - 0x14938]
call fcn.00401f10
cmp dword [0x5be24c], 0
jne 0x4abe5e
cmp dword [0x5bd8a4], 0
je 0x4abe5e
cmp dword [ebp - 0x14924], 8
lea eax, [ebp - 0x14938]
push ecx
cmovae eax, dword [ebp - 0x14938]
mov ecx, 0x5be2e4
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0x56c344
push eax
call fcn.004be890
push 2
push 0
push 0
mov dword [ebp - 0x14a2c], eax
lea eax, [ebp - 0x14a48]
push 0
push eax
call ebx
cmp dword [ebp - 0x14924], 8
lea eax, [ebp - 0x14938]
mov ecx, dword [0x5be2f4]
cmovae eax, dword [ebp - 0x14938]
push 0
push 0xffffffffffffffff
push eax
call fcn.0049a8a0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], 0
jne 0x4abd70
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x14a48]
push eax
call ebx
mov ecx, dword [0x5be2f4]
cmp dword [ecx + 0x1e4], esi
je 0x4abecc
test esi, esi
js 0x4abed1
push esi
add ecx, 0x114
call fcn.004f2860
jmp 0x4abed1
call fcn.0049aea0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x14a48]
push eax
call ebx
mov ecx, 0x5be2e4
call fcn.004bf460
cmp dword [0x5bd8a4], 0
je 0x4abf34
mov ecx, dword [0x5be2f0]
call fcn.00495890
mov esi, dword [ebp - 0x14a2c]
mov ecx, 0x5be2e4
push 1
push esi
call fcn.004bec00
mov ecx, 0x5be2e4
call fcn.004be4a0
mov eax, dword [0x5be230]
push esi
mov ecx, dword [eax + 0xbc]
add ecx, 0x1348
call fcn.004db350
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x14a48]
push eax
call ebx
mov eax, dword [0x5be230]
push 1
mov ecx, dword [eax + 0xbc]
call fcn.004622a0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x14a48]
push eax
call ebx
mov eax, dword [0x5be230]
mov ecx, dword [eax + 0xbc]
test dword [ecx + 0x248], 0x100
je 0x4abfa8
cmp dword [ecx + 0x394], 0
jne 0x4abfa8
mov eax, dword [ecx + 0xb94]
sub eax, dword [ecx + 0xb90]
test eax, 0xfffffffc
jle 0x4abfa8
push 1
add ecx, 0x1e4
call fcn.004e6d40
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x14a48]
push eax
call ebx
mov eax, dword [0x5be230]
mov esi, dword [eax + 0xbc]
add esi, 0x9bc
test byte [esi + 0x60], 1
je 0x4abff9
mov eax, dword [esi + 0x64]
test al, 0x40
jne 0x4abff9
shr eax, 7
and eax, 1
je 0x4abff9
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4abff9
push 0
push esi
call fcn.004c78d0
test eax, eax
je 0x4abff9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [0x5be360]
and eax, 0x400
or eax, 0
jne 0x4ac097
mov dword [ebp - 0x14974], eax
mov dword [ebp - 0x14970], eax
mov dword [ebp - 0x14970], 7
mov dword [ebp - 0x14974], eax
mov word [ebp - 0x14984], ax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14984]
push eax
xor edx, edx
lea ecx, [ebp - 0xa6a0]
call fcn.004bfe20
add esp, 4
lea eax, [ebp - 0x14984]
mov ecx, 0x5be398
push 0xffffffffffffffff
push 0
push eax
call fcn.00401c40
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14970], 8
jb 0x4ac07a
push dword [ebp - 0x14984]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14970], 7
mov dword [ebp - 0x14974], 0
mov word [ebp - 0x14984], ax
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x14a48]
push eax
call ebx
mov ecx, dword [0x5be230]
test ecx, ecx
je 0x4ac0b7
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x14924], 8
jb 0x4ac0d2
push dword [ebp - 0x14938]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14924], 7
mov dword [ebp - 0x14928], 0
mov word [ebp - 0x14938], ax
mov byte [ebp - 4], 1
mov dword [ebp - method.OpenFileDlg.virtual_0], vtable.OpenFileDlg.0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x149b0], 8
jb 0x4ac118
push dword [ebp - 0x149c4]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x149b0], 7
mov dword [ebp - 0x149b4], 0
mov word [ebp - 0x149c4], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x14940], 8
jb 0x4ac14f
push dword [ebp - 0x14954]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14940], 7
mov dword [ebp - 0x14944], 0
mov word [ebp - 0x14954], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14988], 8
jb 0x4ac18a
push dword [ebp - 0x1499c]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14988], 7
mov dword [ebp - 0x1498c], 0
mov word [ebp - 0x1499c], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
call fcn.0050159a
int3