Function at 0x4020d0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x22c
cmp eax, 0x309
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x40211f
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call fcn.00402540
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4023a3
mov ecx, dword [esi + 4]
push 3
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
cmp eax, 0x6f1
jne 0x402308
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x74]
xor ebx, ebx
cmp ecx, ebx
je 0x402168
mov eax, dword [esi + 0x70]
cmp eax, ebx
je 0x402168
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x3c]
mov esi, dword [esi + 0x70]
push 1
push ebx
push esi
mov edx, dword [esi]
call dword [edx + 0x3c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x546610
push ecx
call dword [eax + 0x44]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4023a3
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push edx
push 0x5423a4
push 2
push eax
call dword [ecx + 0x3c]
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4023a3
xor eax, eax
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov al, byte [0x56341c]
test al, 1
jne 0x4021da
mov cl, al
push str.Shell_IDList_Array
or cl, 1
mov byte [0x56341c], cl
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x563420], eax
mov cx, word [0x563420]
mov edx, dword [esi]
mov eax, 1
mov word [esp + 0x28], cx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ebx
push eax
push esi
mov dword [esp + 0x3c], 0xffffffff
call dword [edx + 0x14]
test eax, eax
jl 0x402292
mov ecx, dword [esi]
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push esi
call dword [ecx + 0xc]
test eax, eax
jl 0x402292
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402292
mov esi, eax
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, edi
mov ebp, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x24]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
test ebp, ebp
mov edi, ebp
je 0x40227e
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, ebp
mov ecx, dword [esp + 0x1c]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
jmp 0x402298
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
je 0x4022ac
mov eax, dword [ebx]
test eax, eax
jne 0x4022cd
test edi, edi
je 0x4023a3
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
mov esi, 1
inc eax
cmp eax, esi
jbe 0x4022f7
lea ebp, [ebx + 8]
mov eax, dword [esp + 0x10]
mov ecx, ebx
add ecx, dword [ebp]
push 1
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x38]
mov edx, dword [ebx]
inc esi
add ebp, 4
inc edx
cmp esi, edx
jb 0x4022da
test edi, edi
je 0x4023a3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4022b7
cmp eax, 0x30a
jne 0x402395
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4023a3
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4023a3
mov edx, dword [0x553d9c]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], edx
push 0xff
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, dword [esi + 0x74]
mov dword [esp + 0x10], eax
test esi, esi
je 0x4023a3
mov edx, dword [esi]
push 0
push eax
push esi
call dword [edx + 0x34]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
cmp eax, 0x6f2
jne 0x4023a3
mov ecx, esi
call fcn.004031c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10