Function at 0x1006c640
Capabilities:
Get common file path
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x1009c6ee
mov eax, dword fs:[0]
push eax
sub esp, 0x5dc
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x5d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cd8ec]
xor eax, esp
push eax
lea eax, [esp + 0x5f0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x600]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x5f8], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
call fcn.1006b6d0
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
push 0x2b0
lea eax, [esp + 0x2c]
push ebx
mov esi, 1
push eax
mov dword [esp + 0x604], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
call sub.MSVCR80.dll_memset
push 0x208
lea ecx, [esp + 0x3f2]
push ebx
push ecx
mov word [esp + 0x3f8], bx
call sub.MSVCR80.dll_memset
push 0x104
lea edx, [esp + 0x2f5]
push ebx
push edx
mov byte [esp + 0x2fc], bl
call sub.MSVCR80.dll_memset
add esp, 0x24
push ebx
push 5
lea eax, [esp + 0x3e8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x200
push 0x2b4
lea ecx, [esp + 0x2c]
push ecx
push ebx
lea edx, [esp + 0x3f0]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x54
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x5f8], esi
je 0x1006c750
mov ecx, eax
call fcn.1006a9c0
mov esi, eax
jmp 0x1006c752
xor esi, esi
lea eax, [esp + 0x3e0]
mov byte [esp + 0x5f8], bl
mov dword [esp + 0x14], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006c767
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3e4]
push eax
lea ecx, [esp + 0x2e0]
push ecx
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea edx, [esp + 0x2d8]
push edx
lea ecx, [esi + 0x1c]
call dword [0x1009f138]
push 0x105
lea eax, [esp + 0x2dc]
push ebx
push eax
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x3c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006c7c2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2e0]
push edx
push 0xfde9
call fcn.1007e4c0
lea eax, [esp + 0x2e8]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1006c7f6
sub eax, edx
mov ecx, esi
je 0x1006c80f
lea eax, [esp + 0x2d8]
push eax
jmp 0x1006c814
push str.Documents
call dword [0x1009f138]
push 0x100ae02c
lea ecx, [esi + 0x38]
call dword [0x1009f138]
mov esi, dword [ebp + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
mov ecx, ebp
call fcn.10010d50
push 1
mov ecx, ebp
mov edi, eax
call fcn.1006b780
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
push ebx
mov dword [eax], edi
push ebx
lea eax, [esp + 0x3e8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x200
push 0x2b4
lea ecx, [esp + 0x2c]
push ecx
push ebx
lea edx, [esp + 0x3f0]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x54
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x5f8], 2
je 0x1006c8a6
mov ecx, eax
call fcn.1006a9c0
mov esi, eax
jmp 0x1006c8a8
xor esi, esi
push 0x105
lea eax, [esp + 0x2dc]
push ebx
push eax
mov byte [esp + 0x604], bl
mov dword [esp + 0x20], esi
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x3ec]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006c8d3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x3e4]
push ecx
lea edx, [esp + 0x2e0]
push edx
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea eax, [esp + 0x2d8]
push eax
lea ecx, [esi + 0x1c]
call dword [0x1009f138]
push 0x105
lea ecx, [esp + 0x2dc]
push ebx
push ecx
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x3c]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006c930
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2e0]
push eax
push 0xfde9
call fcn.1007e4c0
lea eax, [esp + 0x2e8]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1006c964
sub eax, edx
je 0x1006c97b
lea ecx, [esp + 0x2d8]
push ecx
jmp 0x1006c980
push str.Desktop
mov ecx, esi
call dword [0x1009f138]
push 0x100ae02c
lea ecx, [esi + 0x38]
call dword [0x1009f138]
mov esi, dword [ebp + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
push esi
mov ecx, ebp
call fcn.10010d50
push 1
mov ecx, ebp
mov edi, eax
call fcn.1006b780
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, ebp
mov ecx, dword [esp + 0x5f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5d8]
xor ecx, esp
call fcn.10090e24
add esp, 0x5e8
ret