Function at 0x405a20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4524d7
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea edx, [ecx + 0x14]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x405a7a
push ecx
mov ecx, esp
push edx
mov dword [ebp - 0x22c], ecx
call fcn.00405020
call fcn.00404980
add esp, 4
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00438850
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BIYOOChatPPT
lea ecx, [ebp - 0x234]
call fcn.00404e70
push eax
lea edx, [ebp - 0x21c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00405fa0
add esp, 4
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x234]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405af0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00438850
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BIYOOChatPPT
lea ecx, [ebp - 0x22c]
call fcn.00404e70
push eax
lea edx, [ebp - 0x21c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.00405fa0
add esp, 4
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405b63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x405bb5
push ecx
mov ecx, esp
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 0x220], ecx
call fcn.00405020
call fcn.00404980
mov eax, dword [ebp - 0x224]
add esp, 4
cmp dword [eax - 0xc], 0
je 0x405bb5
push ecx
mov ecx, esp
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], ecx
call fcn.00405020
call fcn.00404980
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.00404650
mov byte [ebp - 4], 7
push dword [ebp - 0x228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405bf1
push ecx
mov ecx, esp
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x220], ecx
call fcn.00405020
call fcn.00404980
add esp, 4
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405c12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405c33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x405c52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00435232
mov esp, ebp
pop ebp
ret