Function at 0x491330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004047f0
mov eax, dword [ebp - 8]
call fcn.004047f0
mov eax, dword [ebp - 0xc]
call fcn.004047f0
xor eax, eax
push ebp
push 0x491595
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409124
test al, al
je 0x49153a
cmp dword [ebp - 8], 0
jne 0x4913cf
lea edx, [ebp - 0x428]
mov eax, dword [ebp - 4]
call fcn.004092dc
mov eax, dword [ebp - 0x428]
lea ecx, [ebp - 8]
xor edx, edx
call fcn.00409214
lea edx, [ebp - 0x10]
mov eax, dword [0x49540c]
call fcn.00467f10
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x4915a8
call fcn.00406110
mov eax, dword [ebp - 4]
call fcn.00404800
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x42c]
mov eax, dword [ebp - 4]
call fcn.004092a8
mov eax, dword [ebp - 0x42c]
call fcn.00404800
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
cmp dword [ebp - 0xc], 0
jne 0x49142e
cmp esi, 0xffffffff
jne 0x49142e
xor esi, esi
cmp esi, 0xffffffff
jle 0x49149e
lea eax, [ebp - 0x1c]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x421]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x440], eax
mov byte [ebp - 0x43c], 6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x438], eax
mov byte [ebp - 0x434], 0xb
lea edx, [ebp - 0x440]
mov ecx, 1
mov eax, 0x4915c0
call fcn.00409b04
mov edx, dword [ebp - 0x430]
lea eax, [ebp - 0x20]
call fcn.00404bc8
jmp 0x491510
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 0xc]
call fcn.0040d7b4
mov edx, dword [ebp - 0x444]
lea eax, [ebp - 0xc]
call fcn.004043d8
mov eax, dword [ebp - 0xc]
call fcn.00409134
test al, al
je 0x49153a
lea eax, [ebp - 0x448]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x440], eax
mov byte [ebp - 0x43c], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x438], eax
mov byte [ebp - 0x434], 0xb
lea edx, [ebp - 0x440]
mov ecx, 1
mov eax, 0x4915c0
call fcn.00409b04
mov edx, dword [ebp - 0x448]
lea eax, [ebp - 0x20]
call fcn.00404bc8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x4915cc
call fcn.00406110
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404bd8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
jne 0x49153a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49159c
lea eax, [ebp - 0x448]
mov edx, 2
call fcn.00404364
lea eax, [ebp - 0x430]
mov edx, 3
call fcn.00404364
lea eax, [ebp - 0x20]
call fcn.00404a4c
lea eax, [ebp - 0x18]
call fcn.004060cc
lea eax, [ebp - 0x14]
call fcn.004060cc
lea eax, [ebp - 0x10]
call fcn.004060cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404364
ret