Function at 0x49e644
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x49e64d
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f14
mov eax, dword [ebp - 0xc]
call fcn.00404f14
mov eax, dword [ebp + 0x18]
call fcn.00404f14
mov eax, dword [ebp + 0x14]
call fcn.00404f14
mov eax, dword [ebp + 0x10]
call fcn.00404f14
mov eax, dword [ebp + 0xc]
call fcn.00404f14
xor eax, eax
push ebp
push 0x49e940
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [0x4a9b44]
call fcn.0049d720
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x49e950
call fcn.0040669c
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x49e960
call fcn.0040669c
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp + 0x14]
call fcn.00404f24
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push 0x49e970
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
call fcn.00409cbc
mov eax, dword [ebp - 0x1c]
mov edx, 0x49e97c
call fcn.00404e70
je 0x49e727
mov eax, dword [ebp - 0x1c]
mov edx, 0x49e98c
call fcn.00404e70
jne 0x49e734
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0x10]
call fcn.00404af8
jmp 0x49e744
lea eax, [ebp - 0x20]
mov ecx, 0x49e97c
mov edx, dword [ebp + 0x10]
call fcn.00404d70
cmp dword [ebp - 8], 0xffffff17
jne 0x49e787
lea eax, [ebp - 0x2c]
push eax
push 0x1a
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov dword [ebp - 0x30], eax
test byte [ebp - 0x2d], 0x80
sete byte [ebp - 0x31]
cmp byte [ebp - 0x31], 0
je 0x49e7c1
mov eax, 0x104
call fcn.0040a07c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
jmp 0x49e7c1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov dword [ebp - 0x38], eax
test byte [ebp - 0x35], 0x80
sete byte [ebp - 0x39]
cmp byte [ebp - 0x39], 0
je 0x49e7c1
mov eax, 0x104
call fcn.0040a07c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x49e8cb
cmp byte [eax], 0
je 0x49e8cb
cmp dword [ebp - 8], 0xffffff17
jne 0x49e80e
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x24]
call fcn.00404c58
push dword [ebp - 0x44]
push 0x49e99c
push dword [ebp - 0x20]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404de4
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
call fcn.004053bc
jmp 0x49e844
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
call fcn.00404c58
push dword [ebp - 0x4c]
push 0x49e9d0
push dword [ebp - 0xc]
push 0x49e9d0
push dword [ebp - 0x20]
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00404de4
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
call fcn.004053bc
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x28]
call fcn.00404ce8
mov eax, dword [ebp - 0x50]
call fcn.00409758
test al, al
jne 0x49e8cb
cmp dword [ebp + 0x18], 0
jne 0x49e880
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00409b98
mov eax, dword [ebp - 0x54]
call fcn.00404f24
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
jmp 0x49e892
mov eax, dword [ebp + 0x18]
call fcn.00404f24
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
cmp dword [ebp + 0xc], 0
je 0x49e8ac
push 0
mov eax, dword [ebp + 0xc]
call fcn.00404f24
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push 0
mov eax, dword [ebp - 0x28]
call fcn.004053cc
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
call fcn.00404ce8
mov eax, dword [ebp - 0x2c]
call fcn.0049e4d8
mov eax, dword [ebp - 0x24]
call fcn.0040a0c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e947
lea eax, [ebp - 0x54]
mov edx, 6
call fcn.00404a84
lea eax, [ebp - 0x28]
call fcn.0040526c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404a84
lea eax, [ebp - 0x18]
call fcn.00406658
lea eax, [ebp - 0x14]
call fcn.00406658
lea eax, [ebp - 0x10]
call fcn.00406658
lea eax, [ebp - 0xc]
call fcn.00404a60
lea eax, [ebp - 4]
call fcn.00404a60
lea eax, [ebp + 0xc]
mov edx, 4
call fcn.00404a84
ret