Function at 0x41e028
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x47dad4]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x54
mov eax, 0x4616a3
call fcn.0044a6d8
mov eax, dword [ebp + 0x70]
mov edi, 0x4656f9
xor esi, esi
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x38], esi
call fcn.004088e0
push str.SoftwareMediaget
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.004088e0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
xor ebx, ebx
lea eax, [ebp + 0x48]
push SysReAllocStringLen
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0041c2f4
add esp, 0x10
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00407efb
push esi
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00407efb
cmp dword [ebp + 0x5c], esi
je 0x41e0ca
lea eax, [ebp + 0x48]
push eax
call fcn.0041aec8
pop ecx
test al, al
je 0x41e0ca
mov ecx, dword [ebp + 0x44]
lea eax, [ebp + 0x48]
push eax
call fcn.004086e5
jmp 0x41e257
push str.mediaget.exe
call fcn.0041bf68
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00408aee
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 5
call fcn.00408577
push esi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
call fcn.00407efb
lea eax, [ebp + 0x48]
push eax
call fcn.0041aec8
pop ecx
test al, al
jne 0x41e0b9
push edi
lea ecx, [ebp + 0x1c]
call fcn.004088e0
push str.SOFTWAREMediaget
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.004088e0
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov byte [ebp - 4], 7
call fcn.0041c2f4
add esp, 0x10
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 8
call fcn.00408577
push esi
push ebx
lea ecx, [ebp]
call fcn.00407efb
push esi
push ebx
lea ecx, [ebp - 0x60]
call fcn.00407efb
push esi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
call fcn.00407efb
cmp dword [ebp + 0x5c], esi
je 0x41e18d
lea eax, [ebp + 0x48]
push eax
call fcn.0041aec8
pop ecx
test al, al
jne 0x41e0b9
push 0x104
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
call fcn.00407059
mov edi, dword [ebp + 0x3c]
push esi
push 0x26
push edi
push esi
mov byte [ebp - 4], 9
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41e21a
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0041bc26
push str.MediaGetmediaget.exe
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0xa
call fcn.00408aee
add esp, 0x14
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xb
call fcn.00408577
push esi
push ebx
lea ecx, [ebp]
call fcn.00407efb
push esi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.00407efb
lea eax, [ebp + 0x48]
push eax
call fcn.0041aec8
pop ecx
test al, al
je 0x41e21a
mov ecx, dword [ebp + 0x44]
lea eax, [ebp + 0x48]
push eax
call fcn.004086e5
jmp 0x41e24f
call fcn.0041dd78
mov dword [ebp + 0x38], eax
cmp eax, esi
je 0x41e247
push dword [ebp + 0x40]
push edi
push esi
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push dword [ebp + 0x44]
call fcn.0041bc26
pop ecx
pop ecx
jmp 0x41e24f
mov ecx, dword [ebp + 0x44]
call fcn.004081f5
lea ecx, [ebp + 0x3c]
call fcn.00406ffd
push esi
push ebx
lea ecx, [ebp + 0x48]
call fcn.00407efb
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.0044a6c9
add ebp, 0x68
leave
ret