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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53442b
mov eax, dword fs:[0]
push eax
mov eax, 0x2e20
call fcn.004b8600
mov eax, dword [0x589644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d7bd0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push str.birdwp.exe
push dword [esi]
push eax
call edi
push 0x800
lea eax, [ebp - 0xe28]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0xe28]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2e2c]
push eax
call fcn.00453240
push str.paperLite
push dword [eax]
call fcn.00502591
mov edx, dword [ebp - 0x2e2c]
add esp, 0xc
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44299e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x800
push 0
test bl, bl
je 0x4429ff
lea eax, [ebp - 0x1628]
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0xe28]
push 0x549d80
push eax
lea eax, [ebp - 0x1628]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1628]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x549da0
mov ecx, esi
call fcn.00442cb0
test eax, eax
jne 0x442a45
xor eax, eax
jmp 0x442b78
lea eax, [ebp - 0x1e28]
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0xe28]
push 0x549db8
push eax
lea eax, [ebp - 0x1e28]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1e28]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x549dd0
jmp 0x4429ed
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x549dd0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x442aa0
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x2628]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x549db8
push eax
lea eax, [ebp - 0x2628]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
lea eax, [ebp - 0x2628]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x549dd0
call fcn.00442cb0
test eax, eax
je 0x4429f8
push 0x800
lea eax, [ebp - 0x2e28]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x549de0
push eax
lea eax, [ebp - 0x2e28]
push eax
call edi
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x549ce4
push dword [esi]
push eax
call edi
push 1
push 0
lea eax, [ebp - 0x628]
mov ecx, esi
push eax
lea eax, [ebp - 0x2e28]
push eax
push 0
lea eax, [ebp - 0x628]
push eax
push 0x549dfc
call fcn.00442cb0
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b85ea
mov esp, ebp
pop ebp
ret