Function at 0x47d4be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x750
mov eax, dword [0x5ef0d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x72c], eax
lea edi, [ebp - 0x750]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x730], eax
mov eax, dword [ebp + 0x18]
push 8
mov dword [ebp - 0x728], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x70c]
push 0x280
push edi
push eax
mov dword [ebp - 0x71c], edi
mov dword [ebp - 0x710], edi
mov dword [ebp - 0x714], edi
mov dword [ebp - 0x720], edi
mov dword [ebp - 0x724], edi
call fcn.005683c0
push 0x208
lea eax, [ebp - 0x48c]
push edi
push eax
call fcn.005683c0
mov esi, 0x140
mov dword [ebp - 0x718], edi
push esi
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.005683c0
push esi
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.005683c0
add esp, 0x30
lea eax, [ebp - 0x714]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x47d77c
cmp byte [ebx], al
je 0x47d5d6
lea eax, [ebp - 0x71c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x47d5d6
push 0x104
lea eax, [ebp - 0x48c]
push ebx
push eax
call fcn.00492329
mov eax, dword [ebp - 0x71c]
lea edx, [ebp - 0x720]
add esp, 0xc
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x710]
push edx
lea edx, [ebp - 0x724]
push edx
lea edx, [ebp - 0x48c]
push edx
push edi
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x728]
xor esi, esi
inc esi
test eax, eax
je 0x47d627
cmp byte [eax], 0
je 0x47d627
push 0x140
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0046f46a
push esi
lea eax, [ebp - 0x144]
push 0x140
push eax
call fcn.0046ae60
push 0x140
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0047d886
add esp, 0x24
cmp dword [ebp - 0x710], edi
jne 0x47d657
lea eax, [ebp - 0x710]
push eax
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x47d77c
cmp dword [ebp - 0x710], edi
je 0x47d77c
push 0x20
lea eax, [ebp - 0x750]
push edi
push eax
call fcn.005683c0
mov ecx, dword [ebp - 0x72c]
lea eax, [ebp - 0x718]
push eax
test ecx, ecx
mov eax, 0x598678
cmovne eax, ecx
push eax
call fcn.004923af
push 0x140
lea eax, [ebp - 0x70c]
push eax
push dword [ebp - 0x718]
call fcn.00491cf5
mov eax, dword [ebp - 0x730]
add esp, 0x20
mov dword [ebp - 0x750], eax
mov eax, dword [ebp - 0x710]
mov dword [ebp - 0x74c], eax
lea eax, [ebp - 0x70c]
mov dword [ebp - 0x744], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x738], eax
lea eax, [ebp - 0x750]
push eax
mov dword [ebp - 0x740], 0x41
mov dword [ebp - 0x73c], 0x47d9df
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
lea eax, [ebp - 0x718]
push eax
call fcn.004917e1
pop ecx
test edi, edi
je 0x47d73b
lea eax, [ebp - 0x48c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x48c]
push eax
push ebx
call fcn.00491c72
push esi
push dword [ebp + 0x14]
push ebx
call fcn.0046ae60
mov eax, dword [ebp - 0x714]
add esp, 0x18
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
jmp 0x47d743
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push ebx
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0047dbf3
mov ecx, dword [ebp - 0x714]
add esp, 0xc
push dword [ebp - 0x710]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x714]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, esi
jmp 0x47d77e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00565e42
leave
ret