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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a10
call fcn.0049bd20
mov eax, dword [0x5917ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004c0d00
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push str.birdwp.exe
push dword [esi]
push eax
call ebx
cmp dword [esi + 8], 0
je 0x46b6a2
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x120c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea ecx, [ebp - 0x1a0d]
call fcn.0046ab00
push eax
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0xa0c]
push eax
call ebx
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x1a0d]
call fcn.004691a0
push eax
mov ecx, esi
call fcn.0046bc40
test eax, eax
je 0x46b86c
cmp dword [esi + 0xc], 0
je 0x46b776
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x414]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x1a0d]
call fcn.00469e00
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b70e
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea ecx, [ebp - 0x1a0d]
call fcn.00468960
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x120c]
push eax
call ebx
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x120c]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x1a0d]
call fcn.0046a0a0
push eax
mov ecx, esi
call fcn.0046bc40
test eax, eax
je 0x46b86c
cmp dword [esi + 0x10], 0
je 0x46b87e
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x414]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x1a0d]
call fcn.00469fc0
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b7e2
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1a0c]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea ecx, [ebp - 0x1a0d]
call fcn.00468ce0
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x1a0c]
push eax
call ebx
push 0x208
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0xc14]
push str.Uninstall.exe
push dword [esi]
push eax
call ebx
push 1
push 0
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0x1a0c]
push eax
push 0
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0x1a0d]
call fcn.00469a20
push eax
mov ecx, esi
call fcn.0046bc40
test eax, eax
jne 0x46b87e
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret