Function at 0x4af720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a458
mov eax, dword fs:[0]
push eax
mov eax, 0x14a1c
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
test ecx, ecx
je 0x4af7fa
mov eax, dword [0x5be230]
mov ecx, dword [eax + 0xbc]
mov edx, dword [ecx + 0xba0]
test edx, edx
js 0x4af790
mov eax, dword [ecx + 0xb94]
sub eax, dword [ecx + 0xb90]
sar eax, 2
cmp edx, eax
jae 0x4af790
mov eax, dword [ecx + 0xb90]
mov eax, dword [eax + edx*4]
mov esi, dword [eax + 0x1c]
jmp 0x4af792
xor esi, esi
cmp dword [esi], 1
jne 0x4afdd3
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4af7a6
mov eax, dword [eax]
push ecx
push 1
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0x56c344
push eax
mov ecx, 0x5be2e4
call fcn.004be890
cmp eax, 0xffffffff
je 0x4afdd3
push 1
push eax
mov ecx, 0x5be2e4
mov dword [esi + 0x28], 1
call fcn.004bec00
mov ecx, dword [0x5be2f0]
call fcn.004dc6e0
mov ecx, 0x5be2e4
call fcn.004be4a0
jmp 0x4afdd3
xor eax, eax
mov dword [ebp - 0x14970], 0
mov dword [ebp - 0x1496c], 0
mov dword [ebp - 0x1496c], 7
mov dword [ebp - 0x14970], 0
mov word [ebp - 0x14980], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14928], eax
mov dword [ebp - 0x14924], eax
mov dword [ebp - 0x14924], 7
mov dword [ebp - 0x14928], eax
mov word [ebp - 0x14938], 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 0x4af8b3
lea eax, [ebp - 0x14980]
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 0x4af8fe
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 0x4af8fe
push 0xffffffffffffffff
push 0
push 0x5be398
lea ecx, [ebp - 0x14938]
call fcn.00401c40
jmp 0x4af9f9
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x14a24], 0
push 0
push eax
call fcn.005032d0
add esp, 0xc
lea eax, [ebp - 0x14a24]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x14a24]
test eax, eax
je 0x4af9f9
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4af9f9
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x14968]
call fcn.00421630
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14958]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x4af980
push str.invalid_string_position
call fcn.004ffb7d
cmp dword [ebp - 0x14954], 8
lea eax, [ebp - 0x14968]
cmovae eax, dword [ebp - 0x14968]
cmp word [eax + ecx*2], 0x5c
je 0x4af9ab
push 0x571f54
lea ecx, [ebp - 0x14968]
call fcn.0040e370
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14968]
push eax
lea ecx, [ebp - 0x14938]
call fcn.00401c40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14954], 8
jb 0x4af9dc
push dword [ebp - 0x14968]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14954], 7
mov dword [ebp - 0x14958], 0
mov word [ebp - 0x14968], ax
xor eax, eax
mov dword [ebp - 0x149ac], 0
mov dword [ebp - 0x149a8], 0
mov dword [ebp - method.OpenFileDlg.virtual_0], vtable.OpenFileDlg.0
mov dword [ebp - 0x149a8], 7
mov dword [ebp - 0x149ac], 0
mov word [ebp - 0x149bc], ax
mov byte [ebp - 4], 3
push 0x58
push eax
mov dword [ebp - 0x149a0], eax
lea eax, [ebp - 0x14a1c]
push eax
call fcn.005032d0
add esp, 0xc
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14938]
cmp dword [ebp - 0x14924], 8
push 0
cmovae eax, dword [ebp - 0x14938]
push eax
push ecx
lea eax, [ebp - 0x14920]
push eax
push ecx
push dword [0x5bdd04]
lea ecx, [ebp - 0x14a20]
call fcn.00420970
test eax, eax
je 0x4afd1b
mov ecx, dword [0x5be230]
mov eax, dword [ecx + 0xbc]
mov edi, dword [eax + 0xba0]
mov eax, dword [ecx]
call dword [eax + 0x78]
movzx eax, word [ebp - 0x149e4]
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 - 0x149e4]
add eax, eax
cmp eax, 0x208
jae 0x4afdef
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 0x4afb0f
push 0x571f54
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00501676
add esp, 0xc
movzx eax, word [ebp - 0x149e4]
lea esi, [ebp - 0x14920]
mov dword [ebp - 0x14940], 0
mov dword [ebp - 0x1493c], 0
mov dword [ebp - 0x1493c], 7
lea esi, [esi + eax*2]
mov dword [ebp - 0x14940], 0
xor eax, eax
mov word [ebp - 0x14950], ax
mov byte [ebp - 4], 5
cmp word [esi], ax
je 0x4afc2c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
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 ebx
push esi
lea eax, [ebp - 0xa6a0]
push eax
call ebx
lea edx, [ebp - 0x14950]
lea ecx, [ebp - 0xa6a0]
call fcn.004c1480
test eax, eax
jne 0x4afbe2
cmp word [ebp - 0xa6a0], ax
jne 0x4afbb5
xor ecx, ecx
jmp 0x4afbcf
lea ecx, [ebp - 0xa6a0]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afbc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa6a0]
push eax
lea ecx, [ebp - 0x14950]
call fcn.00401f10
cmp dword [ebp - 0x1493c], 8
lea eax, [ebp - 0x14950]
push ecx
cmovae eax, dword [ebp - 0x14950]
mov ecx, 0x5be2e4
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0x56c344
push eax
call fcn.004be890
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x4afb63
mov ecx, dword [0x5be2f0]
call fcn.00495890
push 1
push edi
mov ecx, 0x5be2e4
call fcn.004bec00
mov ecx, dword [0x5be2f0]
call fcn.004dc6e0
mov ecx, 0x5be2e4
call fcn.004be4a0
mov ecx, 0x5be2e4
call fcn.004bf230
mov eax, dword [0x5be360]
and eax, 0x400
or eax, 0
jne 0x4afcd4
mov dword [ebp - 0x14988], eax
mov dword [ebp - 0x14984], eax
mov dword [ebp - 0x14984], 7
mov dword [ebp - 0x14988], eax
mov word [ebp - 0x14998], ax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14998]
push eax
xor edx, edx
lea ecx, [ebp - 0xa6a0]
call fcn.004bfe20
add esp, 4
lea eax, [ebp - 0x14998]
mov ecx, 0x5be398
push 0xffffffffffffffff
push 0
push eax
call fcn.00401c40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14998]
call fcn.00402220
mov ecx, dword [0x5be230]
test ecx, ecx
je 0x4afce3
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1493c], 8
jb 0x4afcfe
push dword [ebp - 0x14950]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x1493c], 7
mov dword [ebp - 0x14940], 0
mov word [ebp - 0x14950], ax
mov byte [ebp - 4], 1
mov dword [ebp - method.OpenFileDlg.virtual_0], vtable.OpenFileDlg.0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x149a8], 8
jb 0x4afd44
push dword [ebp - 0x149bc]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x149a8], 7
mov dword [ebp - 0x149ac], 0
mov word [ebp - 0x149bc], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x14924], 8
jb 0x4afd7b
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 dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1496c], 8
jb 0x4afdb6
push dword [ebp - 0x14980]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x1496c], 7
mov dword [ebp - 0x14970], 0
mov word [ebp - 0x14980], 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