Function at 0x425838
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x425a3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x4c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
call fcn.0046940c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x425a1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.USER32.DLL_IsWindow
test eax, eax
je 0x425899
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x30], eax
jmp 0x4258d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x492a1c]
call fcn.00468814
test al, al
je 0x4258be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0049cc44
mov dword [ebp - 0x30], eax
jmp 0x4258d0
mov eax, dword [0x4d45c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0049cc44
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x51], 1
jne 0x4258e0
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x425903
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x51]
mov eax, dword [eax*4 + 0x4cf0a0]
push eax
mov eax, dword [0x4d45c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00469868
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.00469868
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp al, 7
ja 0x42593a
and eax, 0x7f
bt dword [edx + 0x50], eax
jae 0x42594b
xor eax, eax
mov al, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x4cf088]
or dword [ebp - 0x20], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 6
jne 0x425929
mov eax, 0x4244b0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, 0x4c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
call fcn.0046940c
mov eax, dword [ebp - 4]
mov byte [eax + 0x5c], 0
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.0046940c
lea eax, [ebp - 0x30]
push eax
call sub.SHELL32.DLL_SHBrowseForFolderA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
jne 0x425978
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4259ff
lea eax, [ebp - 0x135]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x135]
call fcn.00456a08
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0046940c
mov eax, dword [ebp - 4]
add eax, 0x4c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
call fcn.0046940c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x44], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425a26
mov eax, dword [ebp - 0xc]
push eax
call sub.OLE32.DLL_CoTaskMemFree
mov eax, dword [ebp - 0x2c]
push eax
call sub.OLE32.DLL_CoTaskMemFree
ret