Function at 0x4945f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5070e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, 0x10
call fcn.004048c0
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x34]
push ecx
xor ebp, ebp
mov ecx, str.Extract.RecentPath
mov dword [esp + 0x2c], ebp
call fcn.00401640
mov byte [esp + 0x28], 1
cmp dword [esp + 0x30], ebp
je 0x494780
mov ecx, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x494670
lea eax, [esp + 0x14]
call fcn.004014d0
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e4d4d
add esp, 8
cmp eax, ebp
jl 0x49481f
cmp eax, dword [edi - 8]
jg 0x49481f
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x1c], 5
mov edi, edi
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
mov byte [esp + 0x28], 2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x106
or eax, ecx
jge 0x4946f1
mov ecx, 0x106
lea eax, [esp + 0x30]
call fcn.004014d0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + ebp*4 + 0x18]
push 0
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e4d4d
add esp, 8
test eax, eax
jl 0x49481f
cmp eax, dword [esi - 8]
jg 0x49481f
xor ecx, ecx
push edi
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.004e4707
xor edx, edx
add esp, 8
test eax, eax
sete dl
mov byte [esp + 0x28], 1
mov eax, edx
test eax, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
jne 0x4947ee
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, 2
jl 0x4946b0
push 0x13
push str.Compress.RecentPath
lea eax, [esp + 0x3c]
call fcn.00401560
lea ecx, [esp + 0x14]
push ecx
call fcn.00492130
mov ecx, dword [esp + 0x38]
push eax
call fcn.004940f0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4947b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x28], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4947d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4947ad
push 0x80070057
call fcn.00401540
int3