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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476614
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4922f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], 0
push 0x47dcbf
lea ecx, [ebp - 0x54]
call fcn.00401650
mov dword [ebp - 4], 0
push 0x48562c
lea ecx, [ebp - 0x70]
call fcn.00401650
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x2c]
push edx
call fcn.0045fb00
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004016d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.004016d0
lea ecx, [ebp - 0x2c]
call fcn.004018a0
movzx eax, al
test eax, eax
jne 0x46073f
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0045f2f0
add esp, 4
movzx edx, al
test edx, edx
je 0x46073f
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401690
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016d0
mov eax, dword [ebp + 8]
jmp 0x460a7b
push 0x47dcc3
lea ecx, [ebp - 0x8c]
call fcn.00401650
mov byte [ebp - 4], 5
push 0x485640
lea ecx, [ebp - 0xa8]
call fcn.00401650
mov byte [ebp - 4], 6
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0xa8]
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0xc4]
push ecx
call fcn.0045fb00
add esp, 0x10
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004016f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.004016d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa8]
call fcn.004016d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.004016d0
lea ecx, [ebp - 0x2c]
call fcn.004018a0
movzx ecx, al
test ecx, ecx
jne 0x46082f
lea edx, [ebp - 0x2c]
push edx
call fcn.0045f2f0
add esp, 4
movzx eax, al
test eax, eax
je 0x46082f
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401690
mov edx, dword [ebp - 0x11c]
or edx, 1
mov dword [ebp - 0x11c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016d0
mov eax, dword [ebp + 8]
jmp 0x460a7b
push 0x485654
call fcn.00460040
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00402d60
add esp, 0xc
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004016f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe0]
call fcn.004016d0
lea eax, [ebp - 0x2c]
push eax
call fcn.0045f2f0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4608c2
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401690
mov eax, dword [ebp - 0x11c]
or eax, 1
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016d0
mov eax, dword [ebp + 8]
jmp 0x460a7b
push 0x104
lea ecx, [ebp - 0x34]
call fcn.00401bb0
mov byte [ebp - 4], 9
push 0
push 0x26
lea ecx, [ebp - 0x34]
call fcn.00418f20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4609cd
lea ecx, [ebp - 0x34]
call fcn.00418f20
push eax
lea ecx, [ebp - 0xfc]
push ecx
call fcn.0045f720
add esp, 8
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 0xa
push str.MediaGetmediaget.exe
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00402d60
add esp, 0xc
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004016f0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x118]
call fcn.004016d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xfc]
call fcn.004016d0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0045f2f0
add esp, 4
movzx edx, al
test edx, edx
je 0x4609cd
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401690
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016d0
mov eax, dword [ebp + 8]
jmp 0x460a7b
call fcn.0045f970
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x460a46
lea ecx, [ebp - 0x34]
call fcn.00401b20
push eax
lea ecx, [ebp - 0x34]
call fcn.00418f20
push eax
push 0
mov edx, dword [ebp - 0x38]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExW
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.00418f20
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f720
add esp, 8
mov edx, dword [ebp - 0x11c]
or edx, 1
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016d0
mov eax, dword [ebp + 8]
jmp 0x460a7b
mov ecx, dword [ebp + 8]
call fcn.00401620
mov eax, dword [ebp - 0x11c]
or eax, 1
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442777
mov esp, ebp
pop ebp
ret