Function at 0x47e52a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.00403a64
push eax
lea ecx, [ebp - 0x210]
call fcn.00402a6b
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404550
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0047dedf
push str.appdata
lea ecx, [ebp - 0x214]
call fcn.00402af5
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0047de51
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x14]
call fcn.00402bd6
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004042e9
xor eax, eax
mov ebx, 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404550
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0047dedf
push str.windir
lea ecx, [ebp - 0x214]
call fcn.00402af5
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0047de51
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x14]
call fcn.00402bd6
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004042e9
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404550
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0047dedf
push str.system32
lea ecx, [ebp - 0x214]
call fcn.00402af5
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0047de51
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x14]
call fcn.00402bd6
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004042e9
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404550
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0047dedf
push str.temp
lea ecx, [ebp - 0x214]
call fcn.00402af5
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0047de51
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x14]
call fcn.00402bd6
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004042e9
lea eax, [ebp - 0x214]
push eax
call fcn.0047eb8a
push dword [eax]
lea eax, [ebp - 0x210]
push 0x533f34
push eax
call fcn.00415254
mov ecx, dword [ebp - 0x214]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.004042e9
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0047dedf
push str.iepath
lea ecx, [ebp - 0x214]
call fcn.0043947e
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0047de51
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x14]
call fcn.00402bd6
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ebx, 0x527fb4
push ebx
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x210]
call fcn.00404550
lea eax, [ebp - 0x210]
push eax
call fcn.0047ea27
pop ecx
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00410c3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404550
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0047dedf
push str.flashpath
lea ecx, [ebp - 0x214]
call fcn.00402af5
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0047de51
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x14]
call fcn.00402bd6
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret 4