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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4449d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov dword [ebp - 0x17c], eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [ebp - 0x1fc]
add edx, 0x44
push edx
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x1fc]
add eax, 0x48
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [ebp - 0x1fc]
add ecx, 0x4c
push ecx
push 1
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x178], 0
push 0xa08
push 0x160
lea edx, [ebp - 0x174]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ecx, [ebp - 0x178]
push ecx
lea edx, [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1fc]
add ecx, 0x50
call fcn.0041c1bb
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x190], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x190], 0
je 0x40d680
mov ecx, dword [ebp - 0x190]
add ecx, 0x1c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x190]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x190]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x190]
mov dword [eax], 0
mov ecx, dword [ebp - 0x190]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x190]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x190]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x190]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x190]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x200], eax
jmp 0x40d68a
mov dword [ebp - 0x200], 0
mov ecx, dword [ebp - 0x200]
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x184], edx
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x194]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x194]
push ecx
mov ecx, dword [ebp - 0x184]
add ecx, 0x1c
call fcn.004423b4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x198]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x19c]
mov dword [eax + 0xc], ecx
push 0x10
mov edx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0x40]
mov ecx, dword [edx]
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x1fc]
add ecx, 0x50
call fcn.0041ba26
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x1fc]
add ecx, 0x50
call fcn.0041bc42
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0x1fc]
add eax, 0x70
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1a0]
cmp ecx, dword [eax + 8]
jl 0x40dc40
mov edx, dword [ebp - 0x1a0]
add edx, 1
mov dword [ebp - 0x1f4], edx
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x40d7ce
mov ecx, dword [ebp - 0x1f8]
mov dword [ecx + 0x10], 0xffffffff
cmp dword [ebp - 0x1f4], 0
jne 0x40d87b
mov edx, dword [ebp - 0x1f8]
cmp dword [edx + 4], 0
je 0x40d85c
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c0], eax
jmp 0x40d816
mov ecx, dword [ebp - 0x1c0]
add ecx, 4
mov dword [ebp - 0x1c0], ecx
mov edx, dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x1c4]
sub eax, 1
mov dword [ebp - 0x1c4], eax
test edx, edx
je 0x40d831
jmp 0x40d807
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1b0]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x1f8]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x1f8]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x1f8]
mov dword [eax + 8], 0
jmp 0x40dc40
mov ecx, dword [ebp - 0x1f8]
cmp dword [ecx + 4], 0
jne 0x40d943
mov edx, dword [ebp - 0x1f4]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1b4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1d0], edx
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1d0]
shl edx, 2
push edx
push 0
mov eax, dword [ebp - 0x1cc]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x40d8f9
mov ecx, dword [ebp - 0x1cc]
add ecx, 4
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1d0]
mov eax, dword [ebp - 0x1d0]
sub eax, 1
mov dword [ebp - 0x1d0], eax
test edx, edx
je 0x40d920
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1c8], ecx
jmp 0x40d8ea
mov edx, dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f4]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ebp - 0x1f4]
mov dword [ecx + 8], edx
jmp 0x40dc40
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1f4]
cmp ecx, dword [eax + 0xc]
jg 0x40da70
mov edx, dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f4]
cmp eax, dword [edx + 8]
jle 0x40d9f2
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ebp - 0x1f4]
sub edx, dword [ecx + 8]
mov dword [ebp - 0x1dc], edx
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 4]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1dc]
shl edx, 2
push edx
push 0
mov eax, dword [ebp - 0x1d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x40d9c9
mov ecx, dword [ebp - 0x1d8]
add ecx, 4
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x1dc]
sub eax, 1
mov dword [ebp - 0x1dc], eax
test edx, edx
je 0x40d9f0
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1d4], ecx
jmp 0x40d9ba
jmp 0x40da5c
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x1f4]
jle 0x40da5c
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x1f4]
lea eax, [ecx + edx*4]
mov dword [ebp - 0x1e0], eax
jmp 0x40da41
mov ecx, dword [ebp - 0x1e0]
add ecx, 4
mov dword [ebp - 0x1e0], ecx
mov edx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x1e4]
sub eax, 1
mov dword [ebp - 0x1e4], eax
test edx, edx
je 0x40da5c
jmp 0x40da32
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ebp - 0x1f4]
mov dword [ecx + 8], edx
jmp 0x40dc40
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1a8], ecx
cmp dword [ebp - 0x1a8], 0
jne 0x40daf1
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 4
jge 0x40dab5
mov dword [ebp - 0x204], 4
jmp 0x40dae5
cmp dword [ebp - 0x1a8], 0x400
jle 0x40dacd
mov dword [ebp - 0x208], 0x400
jmp 0x40dad9
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x204], ecx
mov edx, dword [ebp - 0x204]
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x1a8]
cmp dword [ebp - 0x1f4], ecx
jge 0x40db1f
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], eax
jmp 0x40db2b
mov ecx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 8]
shl edx, 2
push edx
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x1a4]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1f4]
sub ecx, dword [eax + 8]
mov dword [ebp - 0x1f0], ecx
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1a4]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x1ec], edx
mov eax, dword [ebp - 0x1f0]
shl eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x1ec]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x40dbce
mov edx, dword [ebp - 0x1ec]
add edx, 4
mov dword [ebp - 0x1ec], edx
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f0]
sub ecx, 1
mov dword [ebp - 0x1f0], ecx
test eax, eax
je 0x40dbf5
mov edx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1e8], edx
jmp 0x40dbbf
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1bc]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1a4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ebp - 0x1ac]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x184]
mov dword [ecx + edx*4], eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x180]
push eax
mov ecx, dword [ebp - 0x1fc]
call fcn.0040dcc4
mov ecx, dword [ebp - 0x1fc]
cmp dword [ecx + 0x40], 0
je 0x40dca2
cmp dword [ebp - 0x10], 0
je 0x40dca2
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 0x40]
mov edx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0x40]
mov edx, dword [eax]
push ecx
call dword [edx + 0x14]
mov eax, dword [ebp - 0x180]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x180]
push edx
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4