Function at 0x46ae0c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffb6c
mov esi, eax
xor eax, eax
mov dword [esp], eax
push esp
call sub.SHELL32.DLL_SHGetDesktopFolder
test eax, eax
jl 0x46b027
mov dword [esp + 4], 0xf0000000
push 0xffff0000
push 0
push 0x1101
push dword [esi]
call sub.USER32.DLL_SendMessageA
lea edx, [esp + 8]
push edx
push 0
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0xc]
push eax
push 1
mov edx, dword [esp + 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x24]
push 0x28
push 0
lea eax, [esp + 0x18]
push eax
call fcn.00494dd8
add esp, 0xc
mov dword [esp + 0x10], 0x27
test byte [esp + 7], 0x80
je 0x46ae97
mov dword [esp + 0x30], 1
or dword [esp + 0x10], 0x40
push 0xc
mov edx, dword [0x4caa0c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
jne 0x46aeb2
xor eax, eax
jmp 0x46b038
lea edx, [esp + 0x6c]
push edx
push 0
mov ecx, 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
call fcn.0046b0d4
lea ecx, [esp + 0x6c]
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x104
mov edx, dword [esp + 8]
call fcn.0046b044
mov ebp, eax
mov eax, dword [esp + 8]
call fcn.0046b0a4
mov dword [edi + 4], eax
lea ecx, [esp + 0x10]
mov edx, ebp
mov eax, esi
call fcn.0046b1c0
mov edx, dword [esp]
mov dword [edi], edx
mov ecx, dword [esp]
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 8]
xor eax, eax
call fcn.0046b044
mov dword [edi + 8], eax
mov dword [esp + 0x34], edi
push esi
lea esi, [esp + 0x14]
lea edi, [esp + 0x44]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x38], 0xffff0000
push edx
push 0
push 0x1100
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov ebx, eax
push dword [esp + 8]
push ebx
mov ecx, dword [esp + 8]
mov edx, dword [esi]
mov eax, esi
call fcn.0046b1f0
mov edi, ebx
push edi
push 2
push 0x1102
push dword [esi]
call sub.USER32.DLL_SendMessageA
lea eax, [esp + 0xc]
push eax
push 0x11
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push edi
push 4
push 0x110a
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov ebx, eax
test ebx, ebx
je 0x46b00a
mov dword [esp + 0x46c], 4
mov dword [esp + 0x470], ebx
lea edx, [esp + 0x46c]
push edx
push 0
push 0x110c
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov edi, dword [esp + 0x490]
push dword [edi + 8]
push dword [esp + 0x10]
push 0
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test eax, eax
jne 0x46aff5
push ebx
push 2
push 0x1102
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov dword [esi + 4], ebx
jmp 0x46b00a
push ebx
push 1
push 0x110a
push dword [esi]
call sub.USER32.DLL_SendMessageA
mov ebx, eax
test ebx, ebx
jne 0x46af9b
push ebp
mov ecx, dword [0x4caa0c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
push dword [esp + 8]
mov edx, dword [0x4caa0c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
cmp dword [esp], 0
je 0x46b036
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
add esp, 0x494
pop ebp
pop edi
pop esi
pop ebx
ret