Function at 0x4010a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0x423a98
push 0
call fcn.00404455
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4012b8
lea eax, [esp + 0x14]
push eax
push 0xa
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x4012b2
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov edi, eax
test edi, edi
js 0x401140
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
cmp word [edx], 0
mov ecx, dword [eax]
je 0x401127
lea esi, [esp + 0x10]
push esi
push 0x423aa4
push 0
push edx
push eax
call dword [ecx + 0x14]
jmp 0x401134
lea edx, [esp + 0x10]
push edx
push 0x423aa4
push eax
call dword [ecx]
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [esp + 0x14]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
test edi, edi
js 0x4012b2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x60
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4012a8
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4012a8
mov ebx, dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
mov edi, dword [esp + 0xc]
push edx
push 1
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
test eax, eax
js 0x4011d2
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x38]
push eax
call ebx
test eax, eax
js 0x4011d2
push dword [esp + 0x14]
push 0x423a88
call fcn.00401020
add esp, 8
push dword [esp + 0x14]
call esi
push 0x423a9c
call fcn.00401060
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x34]
mov edi, dword [esp + 0x10]
add esp, 4
mov ecx, dword [eax]
push edx
push 0
push edi
push eax
call dword [ecx + 0x2c]
test eax, eax
js 0x401221
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x38]
push eax
call ebx
test eax, eax
js 0x401221
push dword [esp + 0x18]
push 0x423a88
call fcn.00401020
add esp, 8
push dword [esp + 0x18]
call esi
push 0x423a9c
call fcn.00401060
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
add esp, 4
mov ecx, dword [eax]
push edx
push 0x423a74
push dword [esp + 0x14]
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x40127a
push 8
push 0
lea eax, [esp + 0x28]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x40126f
push dword [esp + 0x28]
push 0x423a90
call fcn.00401020
add esp, 8
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x423aa0
call fcn.00401060
add esp, 4
push dword [esp + 0xc]
call esi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x401190
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x13c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004012cf
mov esp, ebp
pop ebp
ret