Function at 0x547f24
Capabilities:
Get common file path

Disassembly:
push 0x6c
mov eax, 0x606b35
call fcn.004db48b
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1032
push dword [ebx + 0x230]
call edi
test eax, eax
jne 0x547f5a
mov eax, 0x80004005
jmp 0x548357
imul esi, eax, 0x208
lea eax, [esi + 0x16]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x548352
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
lea ecx, [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x14
mov dword [eax + 0xc], 1
call fcn.005ca213
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x14], 0
push 2
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
lea eax, [ecx + 0x14]
push 0x100c
push dword [ebx + 0x230]
lea ecx, [eax + esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], eax
call edi
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x5483ce
push esi
lea ecx, [ebp - 0x28]
lea eax, [ebx + 0x1dc]
push ecx
mov ecx, eax
call fcn.0041791d
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00414841
test eax, eax
je 0x548079
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
je 0x548036
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d36e
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi - 8]
add eax, eax
push eax
push esi
push dword [ebp - 0x10]
call fcn.004dd610
mov eax, dword [esi - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add ecx, 2
jmp 0x54805b
push 0
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.00407a7f
mov esi, dword [ebp - 0x30]
push dword [esi - 8]
push esi
push dword [ebp - 0x10]
call fcn.004dd610
mov ecx, dword [ebp - 0x10]
add esp, 0x10
inc ecx
add ecx, dword [esi - 8]
mov dword [ebp - 0x10], ecx
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x54806e
call fcn.00407965
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x10], eax
jae 0x5480ac
mov esi, dword [ebp - 0x20]
lea ecx, [edi - 0xc]
cmp ecx, 0x668010
je 0x548089
call fcn.00407965
push 2
push esi
push 0x100c
push dword [ebx + 0x230]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp - 0x20], eax
cmp esi, 0xffffffff
je 0x5480bc
jmp 0x547fdb
lea ecx, [edi - 0xc]
cmp ecx, 0x668010
je 0x5480bc
call fcn.00407965
cmp dword [ebp - 0x14], 0
je 0x5483ce
xor esi, esi
mov edi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x54830f
lea ecx, [ebp - 0x64]
call fcn.0041b9fb
mov ebx, esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x24]
push esi
mov dword [ebp - 0x10], esi
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x5482ff
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ILGetSize]
mov esi, eax
lea ecx, [ebp - 0x64]
push esi
call fcn.0041ba0f
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x54816d
test esi, esi
je 0x54816d
mov eax, esi
mov ecx, esi
and eax, 0x7ff
sub ecx, eax
add ecx, 0x800
push ecx
lea ecx, [ebp - 0x48]
call fcn.00419163
mov ebx, dword [ebp - 0x40]
test eax, eax
je 0x54816d
mov eax, dword [ebp - 0x44]
push esi
add eax, ebx
push edi
push eax
call fcn.004dd610
mov ebx, esi
add esp, 0xc
mov dword [ebp - 0x40], ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [ebp - 0x14], 0
jle 0x54827b
mov eax, dword [ebp - 0x18]
xor esi, esi
mov edi, dword [ebp - 0x1c]
cmp dword [eax + 0x10], esi
je 0x5481b4
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x10]
push esi
push edx
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push edi
push esi
push dword [edx + 4]
push eax
call dword [ecx + 0xc]
push edi
mov esi, eax
call fcn.00505bb3
lea edi, [edi + eax*2]
add edi, 2
jmp 0x548202
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push 0
mov edx, edi
call fcn.00407b07
pop ecx
push 0
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 4
mov ecx, dword [esi]
push edx
push 0
push dword [eax]
mov eax, dword [ebp - 0x24]
push 0
push dword [eax + 4]
push esi
call dword [ecx + 0xc]
mov byte [ebp - 4], 3
mov esi, eax
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5481f9
call fcn.00407965
push edi
call fcn.00505070
inc edi
add edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
test esi, esi
js 0x548271
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ILGetSize]
mov esi, eax
lea ecx, [ebp - 0x64]
push esi
call fcn.0041ba0f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x548268
test esi, esi
je 0x548268
lea edi, [ebx + esi]
cmp dword [ebp - 0x48], edi
jae 0x548253
mov eax, edi
lea ecx, [ebp - 0x48]
and eax, 0xfffff800
add eax, 0x800
push eax
call fcn.00419163
mov ebx, dword [ebp - 0x40]
test eax, eax
je 0x548268
mov eax, dword [ebp - 0x30]
push esi
push eax
mov eax, dword [ebp - 0x44]
add eax, ebx
push eax
call fcn.004dd610
mov ebx, edi
add esp, 0xc
mov dword [ebp - 0x40], ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ILFree]
sub dword [ebp - 0x14], 1
jne 0x548180
mov eax, dword [ebp - 0x60]
lea esi, [eax*4 + 8]
lea eax, [ebx + esi]
mov dword [ebp - 0x2c], esi
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x5482ff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x24], edx
lea ecx, [eax - 1]
mov dword [edx], ecx
mov ecx, esi
xor esi, esi
mov dword [ebp - 0x28], ecx
test eax, eax
jle 0x5482e6
mov edi, eax
mov ebx, edx
mov dword [ebx + esi*4 + 4], ecx
lea ecx, [ebp - 0x64]
push esi
call fcn.0041ba49
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax]
inc esi
mov dword [ebp - 0x28], ecx
cmp esi, edi
jl 0x5482c3
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x44]
add eax, edx
push eax
call fcn.004dd610
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x48]
call fcn.00419148
lea ecx, [ebp - 0x64]
call fcn.0041ba68
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x548320
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x20
call fcn.004da873
pop ecx
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.00415bec
mov esi, eax
test esi, esi
jne 0x54835f
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call esi
test edi, edi
je 0x548352
push edi
call esi
mov eax, 0x8007000e
call fcn.004db459
ret 8
and dword [ebp - 0x74], 0
xor eax, eax
or dword [ebp - 0x6c], 0xffffffff
inc eax
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x54], eax
test edi, edi
je 0x54839d
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 1
lea ecx, [ebp - 0x54]
mov word [ebp - 0x78], ax
push ecx
mov dword [ebp - 0x50], edi
lea ecx, [ebp - 0x78]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x1c]
push 0xf
pop eax
push 1
lea ecx, [ebp - 0x54]
mov word [ebp - 0x78], ax
push ecx
mov dword [ebp - 0x50], ebx
lea ecx, [ebp - 0x78]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
js 0x5483c4
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
jmp 0x5483ca
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, edi
jmp 0x548357
mov eax, dword [0x668294]
push 0x8ca0
push ecx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0041129f
mov eax, dword [0x668294]
push 0x8ca1
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
call fcn.0041129f
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
push 0x30
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
mov ebx, 0x668010
cmp ecx, ebx
je 0x54841e
call fcn.00407965
lea ecx, [edi - 0xc]
cmp ecx, ebx
je 0x54842a
call fcn.00407965
or eax, 0xffffffff
jmp 0x548357