Function at 0x1000ccb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x1002bea0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002d7af], 0
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x428], ebx
je 0x1000ccee
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001025d
mov esp, ebp
pop ebp
ret 0x10
push esi
call fcn.1000ddd0
call fcn.1000dbf0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x1002d7d4
push 0x1002d7c4
mov dword [0x1002d7a4], eax
call fcn.1000d620
mov eax, dword [0x1002d7d0]
add esp, 8
sub eax, dword [0x1002d7c8]
mov ecx, dword [0x1002d7ec]
cdq
idiv ecx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dword [0x1002d800], eax
mov eax, ecx
sub eax, dword [0x1002d7e8]
sub ecx, dword [0x1002d7c0]
cdq
sub eax, edx
sar eax, 1
mov dword [0x1002d7f8], eax
mov eax, ecx
push 0
cdq
push 0x1002d838
sub eax, edx
push 0
sar eax, 1
push 0x1002
mov dword [0x1002d7fc], eax
call esi
cmp dword [0x1002d838], 0
je 0x1000cd7f
push 0
push 0
push 0
push 0x1003
call esi
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
lea ecx, [ebp - 0x434]
mov word [ebp - 0x448], ax
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x444], 0
push ecx
push ebx
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x43c], 0xffffffff
mov dword [ebp - 0x438], 1
call dword [eax + 0xc]
test eax, eax
js 0x1000d110
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx]
mov esi, eax
push ebx
call dword [ecx + 4]
mov dword [0x1002d834], 0
test edi, edi
je 0x1000cefd
push edi
call fcn.1000ec60
mov ecx, dword [0x1002d790]
add esp, 4
mov dword [0x1002b02c], eax
mov dword [0x1002d830], 1
imul eax, dword [esi], 0x208
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov ebx, eax
mov dword [0x1002d834], ebx
mov ecx, dword [esi + 4]
add ecx, esi
push ecx
push dword [0x1002d794]
call fcn.10004190
mov ecx, dword [esi]
add esp, 8
inc ecx
mov dword [ebp - 0x424], 1
mov edx, eax
mov dword [ebp - 0x418], edx
cmp ecx, 1
jbe 0x1000cec3
lea edi, [esi + 8]
nop
mov eax, dword [edi]
push 0x8000
push 0x208
push ebx
add eax, esi
push eax
push edx
call fcn.10004050
mov eax, ebx
add esp, 0x14
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ce80
sub eax, edx
inc eax
add ebx, eax
mov eax, dword [edi]
add eax, esi
push eax
push dword [ebp - 0x418]
call fcn.10003d00
add esp, 8
test eax, 0x40000000
je 0x1000ced1
mov ecx, dword [ebp - 0x424]
add edi, 4
mov eax, dword [esi]
inc ecx
mov edx, dword [ebp - 0x418]
inc eax
mov dword [ebp - 0x424], ecx
cmp ecx, eax
jb 0x1000ce60
mov byte [ebx], 0
mov eax, dword [edx]
push edx
call dword [eax + 8]
jmp 0x1000d06b
mov eax, dword [0x1002d790]
push dword [0x1002d834]
mov dword [0x1002d830], 0xffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x418]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x1000d0e9
mov dword [0x1002d830], 0
mov eax, dword [esi + 8]
add eax, esi
push eax
mov eax, dword [esi + 4]
add eax, esi
push eax
call fcn.1000ebe0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
add esp, 8
mov dword [0x1002b02c], eax
lea eax, [ebp - 0x420]
push eax
push 0xb
push 0
call edi
push dword [0x1002b02c]
mov eax, dword [0x1002d794]
push dword [ebp - 0x420]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ecx, dword [0x1002d790]
mov esi, eax
push dword [ebp - 0x420]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test si, si
jne 0x1000d06b
mov eax, dword [0x1002d790]
push dword [0x1002b02c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp byte [0x1002e0b8], 0
jne 0x1000cf9a
push 0x1002b04c
push 0x104
push 0x1002e0b8
call fcn.1001557c
add esp, 0xc
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push 0x1002e0b8
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x1002d794]
lea edx, [ebp - 0x41c]
push 0
push 0x1002b02c
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x414]
push edx
push 0
push 0
push eax
call dword [ecx + 0xc]
cmp dword [0x1002b02c], 0
jne 0x1000d06b
mov dword [ebp - 0x41c], 0
xor eax, eax
imul eax, eax, 0x108
add eax, 0x1002b04c
push eax
push 0x1002e0b8
call fcn.100156cd
add esp, 8
test eax, eax
jne 0x1000d02a
imul eax, dword [ebp - 0x41c], 0x108
push 0x1002b02c
push dword [eax + 0x1002b048]
push 0
call edi
mov eax, dword [ebp - 0x41c]
inc eax
mov dword [ebp - 0x41c], eax
cmp eax, 7
jb 0x1000cff4
cmp dword [0x1002b02c], 0
jne 0x1000d06b
push 0x1002b02c
push dword [0x1002b048]
push 0
call edi
push 0x1002b04c
push 0x104
push 0x1002e0b8
call fcn.1001557c
add esp, 0xc
push dword [0x1002b02c]
push dword [0x1002d794]
call fcn.10003d00
add esp, 8
mov dword [0x1002b030], eax
test eax, 0x10000
je 0x1000d0d3
push dword [0x1002b02c]
push dword [0x1002d794]
call fcn.10004320
add esp, 8
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1000d0d3
push eax
push dword [0x1002d794]
call fcn.10003d00
or eax, 0x10000
add esp, 8
mov dword [0x1002b030], eax
mov eax, dword [0x1002d790]
push dword [ebp - 0x420]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [0x1002e2fc]
xor ecx, ecx
cmp dword [0x1002e300], 1
cmove eax, ecx
mov dword [0x1002e2fc], eax
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov ecx, dword [ebp - 0x428]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1001025d
mov esp, ebp
pop ebp
ret 0x10